GNU bug report logs - #20600
24.5.3: add-hook - wrong arguments error

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 18 May 2015 05:35:02 UTC

Severity: wishlist

Tags: notabug, wontfix

Found in version 24.5.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Andreas Röhler <andreas.roehler <at> easy-emacs.de>, 20600 <at> debbugs.gnu.org
Subject: bug#20600: 24.5.3: add-hook - wrong arguments error
Date: Mon, 18 May 2015 16:38:42 +0100
> To tell you the truth, I don't see the problem.  Is the problem the
> need to specify a couple of arguments that will be left unused when
> the function is called?  If so, we do it all over the place; we even
> have a special convention for that.

I don't see a problem either, I'm just suggesting an improvement on run-hooks.
The improvement would reduce the number of times you have to define a
wrapper around a function just to use it in a hook, by just not
passing to the function more arguments than it accepts.

Although, to be honest, I don't know how often that would be useful.
Even in the case originally mentioned above it would actually *not*
useful, because `save-buffer` *does* take an optional argument so the
wrapper around it would still be necessary.




This bug report was last modified 10 years and 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.