diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-03-03 11:32:34 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-03-03 11:36:09 +0100 |
commit | 7f740b87d8d18a64f578837096f5faf7c9e26ad8 (patch) | |
tree | 25b04a84703f2df9b55506f427406bead9ad18c2 /lisp/gnus/message.el | |
parent | 841614c72272146fff1b9afa05d52150da6d6e66 (diff) | |
download | emacs-7f740b87d8d18a64f578837096f5faf7c9e26ad8.tar.gz |
Remove ineffective uses of condition-case
* lisp/gnus/message.el (message-setup-1):
* lisp/progmodes/cc-engine.el (c-forward-single-comment):
* lisp/progmodes/ruby-mode.el (ruby-add-log-current-method):
Eliminate uses of condition-case without handlers. These seem to have
been there for quite a long time. This change does not affect the
behaviour of the code and makes some warnings go away.
Diffstat (limited to 'lisp/gnus/message.el')
-rw-r--r-- | lisp/gnus/message.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index f4cfffa2e8a..8d3fe010af4 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -6862,10 +6862,9 @@ are not included." (defun message-setup-1 (headers &optional yank-action actions return-action) (dolist (action actions) - (condition-case nil - ;; FIXME: Use functions rather than expressions! - (add-to-list 'message-send-actions - `(apply #',(car action) ',(cdr action))))) + ;; FIXME: Use functions rather than expressions! + (add-to-list 'message-send-actions + `(apply #',(car action) ',(cdr action)))) (setq message-return-action return-action) (setq message-reply-buffer (if (and (consp yank-action) |