emacs-devel
[Top][All Lists]
Advanced

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

Re: other-buffer advice on kill-buffer


From: David Kastrup
Subject: Re: other-buffer advice on kill-buffer
Date: Wed, 03 Aug 2011 08:18:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     That's not correct.  You can advise a primitive function, but the
>     advice will only affect calls to that function made from Lisp, not
>     calls from other primitives.
>
> It may be that in a few special cases
> we should modify calls within C code to some primitive functions
> so that they call the Lisp symbol.
> That way, it would work to advise those functions.
>
> To do this for all the primitive functions would be impossible, I
> think, and certainly not worth the pain.  But there might be a few
> functions for which this would be particularly useful, and it might be
> worth doing this for them.

If it is worth making it advisable, it is worth giving it a hook.

The problem is that advice is intended for adding functionality that has
not been imagined previously.  So it is hard to think of a case where
one would explicitly make a function advisable.

-- 
David Kastrup




reply via email to

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