help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: `M-.' can't skip to the corresponding DEFUN from within the Apropos


From: Hongyi Zhao
Subject: Re: `M-.' can't skip to the corresponding DEFUN from within the Apropos buffer.
Date: Tue, 6 Jul 2021 08:46:36 +0800

On Tue, Jul 6, 2021 at 8:29 AM Emanuel Berg via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> >>> (add-hook 'apropos-mode-hook
> >>>    (lambda ()
> >>>       (add-hook 'xref-backend-functions
> >>>          #'elisp--xref-backend 0 t)))
> >>
> >> Based on my tries, passing nil or 0 as the third argument
> >> is equivalent. Thank you again.
> >
> > For this case, according to my understanding, the 3rd
> > argument used here is just as a placeholder.
>
> C-h f add-hook RET
>
>   DEPTH defaults to 0.
>
> That means, it is better to send nil than 0 if you want the
> default value. If you pass 0 is sounds like that's the value
> you have computed for your purposes. Well, if it IS, only then
> you should pass it.

Wonderful explanation. Thanks again.

HY
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

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