Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5c9b1aaa
Commit
5c9b1aaa
authored
Feb 12, 2009
by
Glenn Morris
Browse files
(rmail-get-summary-labels): Store any message labels for use in
completion.
parent
6d60445e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lisp/mail/rmailsum.el
lisp/mail/rmailsum.el
+6
-1
No files found.
lisp/mail/rmailsum.el
View file @
5c9b1aaa
...
...
@@ -421,6 +421,8 @@ the message being processed."
(
setq
result
(
concat
"{"
result
"}"
)))
result
))
(
autoload
'rmail-make-label
"rmailkwd"
)
(
defun
rmail-get-summary-labels
()
"Return a string wrapped in curly braces with the current message labels.
Returns nil if there are no labels. The current buffer must
...
...
@@ -429,7 +431,10 @@ processed."
(
let
((
labels
(
mail-fetch-field
rmail-keyword-header
)))
(
and
labels
(
not
(
string-equal
labels
""
))
(
format
"{ %s } "
labels
))))
(
progn
;; Intern so that rmail-read-label can offer completion.
(
mapc
'rmail-make-label
(
split-string
labels
", "
))
(
format
"{ %s } "
labels
)))))
(
defun
rmail-create-summary
(
msgnum
deleted
unseen
lines
)
"Return the summary line for message MSGNUM.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment