[Top][All Lists]

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

Re: other-buffer advice on kill-buffer

From: Leo
Subject: Re: other-buffer advice on kill-buffer
Date: Fri, 19 Aug 2011 15:10:02 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8)

On 2011-08-03 05:55 +0800, Richard Stallman wrote:
> 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.

I am interested in getting advice to narrow-to-region to work.

For example:

(defadvice narrow-to-region (before wow activate)
  (message "wow!"))

now uses 'C-x n d' (narrow-to-defun) which calls narrow-to-region and I
see no wow printed in the echo area.

What to do to make it work? Thanks.


reply via email to

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