[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using command-error-function in emacspeak
From: |
Stefan Monnier |
Subject: |
Re: using command-error-function in emacspeak |
Date: |
Tue, 05 Nov 2013 14:01:12 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> (add-function command-error-function something) ;; forgive me wrong syntax
> here should do the same as
> (setq command-error-function something)
> in case when command-error-function is nil beforehand.
But that can't be right.
E.g.
(add-function :before command-error-function
(lambda (&rest _ignore)
(cl-incf command-error-function-counter)))
Should not affect Emacs's behavior other than to keep a counter of calls
to command-error-function. But
(setq command-error-function
(lambda (&rest _ignore) (cl-incf command-error-function-counter))
will not do that, since it will instead silence all the
command-error messages.
Stefan