[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19324: 25.0.50; add-function and nil

From: Leo Liu
Subject: bug#19324: 25.0.50; add-function and nil
Date: Thu, 11 Dec 2014 08:57:33 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (CentOS Linux 7 (Core))

On 2014-12-10 14:54 -0500, Stefan Monnier wrote:
> - Make sure all the functions you add use either :override or :around
>   and check that the orig is not nil before calling it.

Yes, I had expected this to work and obviously not so filed this bug.
Otherwise it is not a bad workaround.

Go to a buffer in text mode where the default
eldoc-documentation-function is nil and eval

  (add-function :around (local 'eldoc-documentation-function)
                        (lambda (orig) (or (and orig (funcall orig)) (ignore))))

Move around to get the error.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]