[Top][All Lists]

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

Re: other-buffer advice on kill-buffer

From: Tim Cross
Subject: Re: other-buffer advice on kill-buffer
Date: Thu, 4 Aug 2011 16:42:30 +1000

On Wed, Aug 3, 2011 at 4:18 PM, David Kastrup <address@hidden> wrote:
> 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.
There is one special case where being able to add advice to more
functions, especially some primitive ones, accessibility. At least two
packages written to make emacs accessible to blind and vision impaired
users achieves this through advising functions. Currently, there are a
couple of places where accessibility is limited because of the problem
of advising primitive functions. So, adding this ability would likely
benefit at least one group of users and do so without any issue for
other users.


reply via email to

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