Function: erc--insert-timestamp-left
erc--insert-timestamp-left is a byte-compiled function defined in
erc-stamp.el.gz.
Signature
(erc--insert-timestamp-left &rest ARGS)
Implementations
(erc--insert-timestamp-left STRING (NIL ((&context . erc-stamp--display-margin-mode) eql t))) in `erc-stamp.el'.
Undocumented
(erc--insert-timestamp-left STRING) in `erc-stamp.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-stamp.el.gz
(cl-defmethod erc--insert-timestamp-left (string)
(goto-char (point-min))
(let* ((ignore-p (and erc-timestamp-only-if-changed-flag
(string-equal string erc-timestamp-last-inserted)))
(len (length string))
(s (if ignore-p (make-string len ? ) string)))
(unless ignore-p (setq erc-timestamp-last-inserted string))
(erc-put-text-property 0 len 'field 'erc-timestamp s)
(erc-put-text-property 0 len 'invisible erc-stamp--invisible-property s)
(insert s)))