unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Confusion about first-change-hook
@ 2012-12-18 19:59 David Engster
  2012-12-18 20:43 ` Stefan Monnier
  2012-12-18 21:01 ` Jambunathan K
  0 siblings, 2 replies; 6+ messages in thread
From: David Engster @ 2012-12-18 19:59 UTC (permalink / raw)
  To: emacs-devel

I wanted to do something very simple: Activate whitespace-mode only when
I start editing a buffer. So I looked into the manual and found
`first-change-hook', which seemed exactly what I wanted.

However, I soon saw that whitespace-mode got immediately activated in my
C++ buffers. The reason is that changing a text property apparently
already counts as "changing the buffer". Is this really the desired
behavior? If so, what else is there to achieve the above? Should I file
a wishlist-bug for something like 'buffer-modified-hook'?

-David



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

end of thread, other threads:[~2012-12-19  1:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 19:59 Confusion about first-change-hook David Engster
2012-12-18 20:43 ` Stefan Monnier
2012-12-18 21:00   ` David Engster
2012-12-19  1:01     ` Stefan Monnier
2012-12-18 21:01 ` Jambunathan K
2012-12-18 21:09   ` David Engster

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).