comparison lisp/mail/rmail.el @ 88211:9b0023f1776c

(rmail-set-attribute): Moved comment into document.
author Alex Schroeder <alex@gnu.org>
date Wed, 18 Jan 2006 22:14:32 +0000
parents 95b10b8c9063
children d78deb813644
comparison
equal deleted inserted replaced
88210:c7e0b3b9c888 88211:9b0023f1776c
1876 (buffer-live-p rmail-view-buffer)) 1876 (buffer-live-p rmail-view-buffer))
1877 (let ((mlp mode-line-process)) 1877 (let ((mlp mode-line-process))
1878 (with-current-buffer rmail-view-buffer 1878 (with-current-buffer rmail-view-buffer
1879 (setq mode-line-process mlp)))))) 1879 (setq mode-line-process mlp))))))
1880 1880
1881 ;; Turn an attribute of a message on or off according to STATE.
1882 ;; ATTR is the name of the attribute, as a string.
1883 ;; MSGNUM is message number to change; nil means current message.
1884 (defun rmail-set-attribute (attr state &optional msgnum) 1881 (defun rmail-set-attribute (attr state &optional msgnum)
1882 "Turn a attribute ATTR of a message on or off according to STATE.
1883 ATTR is a string, MSGNUM is the optional message number. By
1884 default, the current message is changed."
1885 (save-excursion 1885 (save-excursion
1886 (save-restriction 1886 (save-restriction
1887 (let ((attr-index (rmail-desc-get-attr-index attr))) 1887 (let ((attr-index (rmail-desc-get-attr-index attr)))
1888 (set-buffer rmail-buffer) 1888 (set-buffer rmail-buffer)
1889 (or msgnum (setq msgnum rmail-current-message)) 1889 (or msgnum (setq msgnum rmail-current-message))