Olivier Galibert <galibert(a)pobox.com> writes:
The Great Erik Naggum sayeth:
| Lambda lets you generate anonymous functions. You use it when you don't
| need/want to give a name to function, so why the "very sparingly"?
oh, my advice here was limited to Emacs Lisp. since the Emacs Lisp byte
code object doesn't identity itself (I have tried to make it do that, so
error messages would be a little easier on the programmer and user), it
is much more convenient with named functions.
It would probably be doable with XEmacs and its compiled-function
objects, but Erik is too self-contained to look at XEmacs without
ranting.
I can't try to duplicate his work because he didn't specify what he
meant by "byte code object identifying itself".
also, using anonymous functions in hooks is a bad idea since they
are hard to remove. binding a key to an anonymous (and
interactive) function is equally a bad idea.
IMHO, it does make sense.
It does, but in the specific NEWS example it looks better to use the
anonymous function than to cons up a new function only for that
purpose.
In fact, the best thing would be if a `gdb-highlight-mode' existed as
a minor mode, so we could simply autoload `add-minor-mode'. However,
I don't feel like changing Jamie's code right now. I don't want to
die young.
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Thou Who might be our Father Who perhaps may be in Heaven...
-- Roger Zelazny