all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Detect when variable changes
@ 2017-10-04 18:57 Joe Riel
  2017-10-04 19:40 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Riel @ 2017-10-04 18:57 UTC (permalink / raw)
  To: Help GNU Emacs

Is there a way to detect when a variable changes?
Specifically, the buffer-local variable default-directory
is changing at some point and I'd like to detect 
what code is doing that.

-- 
Joe Riel




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

* Re: Detect when variable changes
  2017-10-04 18:57 Detect when variable changes Joe Riel
@ 2017-10-04 19:40 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2017-10-04 19:40 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Wed, 4 Oct 2017 11:57:18 -0700
> From: Joe Riel <joer@san.rr.com>
> 
> Is there a way to detect when a variable changes?

Emacs 26 has a watchpoint-like facility which you could use for that.



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

end of thread, other threads:[~2017-10-04 19:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04 18:57 Detect when variable changes Joe Riel
2017-10-04 19:40 ` Eli Zaretskii

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.