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
3d300447
Commit
3d300447
authored
Aug 20, 2012
by
Glenn Morris
Browse files
* lisp/mail/rmailout.el (rmail-output-read-file-name): Trap errors
in rmail-output-file-alist elements, and report them.
parent
4ce60d2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/mail/rmailout.el
lisp/mail/rmailout.el
+11
-3
No files found.
lisp/ChangeLog
View file @
3d300447
2012-08-20 Glenn Morris <rgm@gnu.org>
* mail/rmailout.el (rmail-output-read-file-name):
Trap and report errors in rmail-output-file-alist elements.
* font-lock.el (font-lock-add-keywords): Doc fix (quote face names
since most non-font-lock faces are not also variables).
...
...
lisp/mail/rmailout.el
View file @
3d300447
...
...
@@ -74,13 +74,21 @@ This uses `rmail-output-file-alist'."
(
widen
)
(
narrow-to-region
beg
end
)
(
let
((
tail
rmail-output-file-alist
)
answer
)
answer
err
)
;; Suggest a file based on a pattern match.
(
while
(
and
tail
(
not
answer
))
(
goto-char
(
point-min
))
(
if
(
re-search-forward
(
caar
tail
)
nil
t
)
;; FIXME trap and report any errors.
(
setq
answer
(
eval
(
cdar
tail
))))
(
setq
answer
(
condition-case
err
(
eval
(
cdar
tail
))
(
error
(
display-warning
:error
(
format
"
Error
evaluating
\
`
rmail-output-file-alist
'
element:\nregexp:
%s\naction:
%s\nerror:
%S\n
"
(caar tail) (cdar tail) err))
nil))))
(setq tail (cdr tail)))
answer))))))
;; If no suggestion, use same file as last time.
...
...
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