> From: Sławomir Grochowski <slawomir.grochow...@gmail.com> > Cc: yanta...@posteo.net, emacs-orgmode@gnu.org, emacs-de...@gnu.org, > phil...@posteo.net, stefankan...@gmail.com, la...@gnus.org, > hmel...@gmail.com, i...@protesilaos.com > Date: Mon, 08 Apr 2024 09:38:40 +0200 > > > The idea here was that some other function could rebind > > `help-quick-sections' dynamically. That way you avoid the redundant > > arguments (which would all have to be documented). > > Is this really a good practice? > Relying on global variables instead of passing variables as a parameters?
Emacs is full of such practices, so don't worry about that, it's quite common (and considered good practice) in Emacs Lisp. > Eli Zaretskii <e...@gnu.org> writes: > > In any case, we cannot change the signature of help-quick, since it's a > > public function. > > If I can't modify the function `help-quick' how can I make it work? You write a new function with the signature you like and make help-quick call it to do the actual job. Where you want to use the signature of the new function, you call it directly.