diff options
| author | Glenn Morris | 2009-02-12 03:28:37 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-12 03:28:37 +0000 |
| commit | 5c9b1aaadff6035bcf0a28d70becc3b8d00caec8 (patch) | |
| tree | 5ccb334d764ebd5b9f1da21faa922e53e7eb57b5 | |
| parent | 6d60445e9a69c2f4a5953ef287bf4c1cae7f9f47 (diff) | |
| download | emacs-5c9b1aaadff6035bcf0a28d70becc3b8d00caec8.tar.gz emacs-5c9b1aaadff6035bcf0a28d70becc3b8d00caec8.zip | |
(rmail-get-summary-labels): Store any message labels for use in
completion.
| -rw-r--r-- | lisp/mail/rmailsum.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 82dc56ae64f..08f1fc4d89d 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -421,6 +421,8 @@ the message being processed." | |||
| 421 | (setq result (concat "{" result "}"))) | 421 | (setq result (concat "{" result "}"))) |
| 422 | result)) | 422 | result)) |
| 423 | 423 | ||
| 424 | (autoload 'rmail-make-label "rmailkwd") | ||
| 425 | |||
| 424 | (defun rmail-get-summary-labels () | 426 | (defun rmail-get-summary-labels () |
| 425 | "Return a string wrapped in curly braces with the current message labels. | 427 | "Return a string wrapped in curly braces with the current message labels. |
| 426 | Returns nil if there are no labels. The current buffer must | 428 | Returns nil if there are no labels. The current buffer must |
| @@ -429,7 +431,10 @@ processed." | |||
| 429 | (let ((labels (mail-fetch-field rmail-keyword-header))) | 431 | (let ((labels (mail-fetch-field rmail-keyword-header))) |
| 430 | (and labels | 432 | (and labels |
| 431 | (not (string-equal labels "")) | 433 | (not (string-equal labels "")) |
| 432 | (format "{ %s } " labels)))) | 434 | (progn |
| 435 | ;; Intern so that rmail-read-label can offer completion. | ||
| 436 | (mapc 'rmail-make-label (split-string labels ", ")) | ||
| 437 | (format "{ %s } " labels))))) | ||
| 433 | 438 | ||
| 434 | (defun rmail-create-summary (msgnum deleted unseen lines) | 439 | (defun rmail-create-summary (msgnum deleted unseen lines) |
| 435 | "Return the summary line for message MSGNUM. | 440 | "Return the summary line for message MSGNUM. |