emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3] RFC: eldoc-documentation-functions hook


From: John Wiegley
Subject: Re: [PATCH v3] RFC: eldoc-documentation-functions hook
Date: Tue, 19 Jul 2016 21:50:17 -0700
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.95 (darwin)

>>>>> Mark Oteiza <address@hidden> writes:

> Ok, then perhaps something to the effect of
> (defun run-single-function-hook (hook)
>   (let ((global-hook (default-value hook))
>         (local-hook (when (local-variable-p hook) (symbol-value hook))))
>     (or (and (functionp local-hook) (funcall local-hook))
>         (and (functionp global-hook) (funcall global-hook)))))

> can instead be used. Haven't bothered looking to see if this is useful
> outside of eldoc…

Hi Mark,

I'd like to steer this discussion away from -function vs. -functions, to get
at the underlying concern you've expressed. Is it that the use of nadvice in
cases like these seems heavyweight? I'm wonder if
eldoc-documentation-functions has become something of a red herring, when
really the point you were making is more fundamental.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



reply via email to

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