From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Leo Liu <sdl.web@gmail.com>
Cc: 19324@debbugs.gnu.org
Subject: bug#19324: 25.0.50; add-function and nil
Date: Wed, 10 Dec 2014 21:48:51 -0500 [thread overview]
Message-ID: <jwv61dirjgn.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87bnnbt342.fsf@gmail.com> (Leo Liu's message of "Thu, 11 Dec 2014 08:57:33 +0800")
> 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
next prev parent reply other threads:[~2014-12-11 2:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 4:55 bug#19324: 25.0.50; add-function and nil Leo Liu
2014-12-10 19:54 ` Stefan Monnier
2014-12-11 0:57 ` Leo Liu
2014-12-11 2:48 ` Stefan Monnier [this message]
2014-12-11 3:54 ` Leo Liu
2014-12-11 17:01 ` Stefan Monnier
2014-12-11 17:46 ` Leo Liu
2014-12-11 19:11 ` Stefan Monnier
2014-12-12 0:44 ` Leo Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv61dirjgn.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=19324@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).