Show
Ignore:
Timestamp:
04/07/07 15:49:28 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/erc/erc-stamp.el

    r4190 r4200  
    148148      (when (and (fboundp erc-insert-away-timestamp-function) 
    149149                 erc-away-timestamp-format 
    150                  (with-current-buffer (erc-server-buffer) erc-away
     150                 (erc-away-time
    151151                 (not erc-timestamp-format)) 
    152152        (funcall erc-insert-away-timestamp-function 
     
    204204    (unless ignore-p (setq erc-timestamp-last-inserted string)) 
    205205    (erc-put-text-property 0 len 'field 'erc-timestamp s) 
     206    (erc-put-text-property 0 len 'invisible 'timestamp s) 
    206207    (insert s))) 
    207208 
     
    320321  (erc-munge-invisibility-spec)) 
    321322 
     323(defun erc-toggle-timestamps () 
     324  "Hide or show timestamps in ERC buffers. 
     325 
     326Note that timestamps can only be shown for a message using this 
     327function if `erc-timestamp-format' was set and timestamping was 
     328enabled when the message was inserted." 
     329  (interactive) 
     330  (if erc-hide-timestamps 
     331      (setq erc-hide-timestamps nil) 
     332    (setq erc-hide-timestamps t)) 
     333  (mapc (lambda (buffer) 
     334          (with-current-buffer buffer 
     335            (erc-munge-invisibility-spec))) 
     336        (erc-buffer-list))) 
     337 
    322338(defun erc-echo-timestamp (before now) 
    323339  "Print timestamp text-property of an IRC message.