help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Problem with after-change-functions hook


From: Stefan Monnier
Subject: Re: Problem with after-change-functions hook
Date: Tue, 21 Mar 2006 12:04:08 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I am trying to create a hook so as to run a function when a certain buffer
> changes. I put this in a mode definition function:

> (add-hook 'after-change-functions 'function nil t)

Other than the use of the name `function', this looks correct.

> but the resulting hook appears to be global, as the function take effect on
> all buffers!?

That shouldn't be the case.  What makes you think this is the case?
What does C-h v after-change-functions RET say when called in the buffer
(the one where you want the hook to be active)?


        Stefan


reply via email to

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