all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with after-change-functions hook
@ 2006-03-19  4:28 user240
  0 siblings, 0 replies; 6+ messages in thread
From: user240 @ 2006-03-19  4:28 UTC (permalink / raw)



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)

but the resulting hook appears to be global, as the function take effect on
all buffers!? What do I do to restrict the hook to the buffer that the mode
function was run?

--
View this message in context: http://www.nabble.com/Problem-with-after-change-functions-hook-t1305186.html#a3477857
Sent from the Emacs - Help forum at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-29  5:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.11.1142742504.3795.help-gnu-emacs@gnu.org>
2006-03-21 17:04 ` Problem with after-change-functions hook Stefan Monnier
2006-03-26  1:38   ` user240
     [not found]   ` <mailman.37.1143337105.9694.help-gnu-emacs@gnu.org>
2006-03-26  4:46     ` Stefan Monnier
2006-03-27 21:19       ` user240
     [not found]       ` <mailman.42.1143494361.2481.help-gnu-emacs@gnu.org>
2006-03-29  5:27         ` Stefan Monnier
2006-03-19  4:28 user240

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.