[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19324: 25.0.50; add-function and nil
From: |
Stefan Monnier |
Subject: |
bug#19324: 25.0.50; add-function and nil |
Date: |
Wed, 10 Dec 2014 21:48:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> 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.
Ah, right, damn: the (local <foo>) causes the insertion of a "proxy
function" which runs the global value, but that doesn't check if
it's nil.
IOW it only works for :override.
Stefan
- bug#19324: 25.0.50; add-function and nil, Leo Liu, 2014/12/08
- bug#19324: 25.0.50; add-function and nil, Stefan Monnier, 2014/12/10
- bug#19324: 25.0.50; add-function and nil, Leo Liu, 2014/12/10
- bug#19324: 25.0.50; add-function and nil,
Stefan Monnier <=
- bug#19324: 25.0.50; add-function and nil, Leo Liu, 2014/12/10
- bug#19324: 25.0.50; add-function and nil, Stefan Monnier, 2014/12/11
- bug#19324: 25.0.50; add-function and nil, Leo Liu, 2014/12/11
- bug#19324: 25.0.50; add-function and nil, Stefan Monnier, 2014/12/11
- bug#19324: 25.0.50; add-function and nil, Leo Liu, 2014/12/11