[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Watchpoints for emacs lisp.
From: |
alin.s |
Subject: |
Re: Watchpoints for emacs lisp. |
Date: |
Tue, 11 May 2010 05:54:24 -0700 (PDT) |
Richard Stallman wrote:
>
> The feature is still desired.
>
I think to do it so:
I insert to the struct Lisp_Symbol a field :watched: .
I write a function whose input it a string S. This function looks for the
given symbol in the corresponding obarray (global and local environment).
When it finds the symbol whose name is S , it sets the flag :watched: to
true.
Afterwards, in ALL functions that are able to change the value of a symbol,
I insert a checkpoint, which looks like that:
<if the symbol to change has the flag :watched: true, that call the
corresponding procedure of the debugger>
Is it ok the algorithm ? In how many obarrays should I look for the given
symbol ?
--
View this message in context:
http://old.nabble.com/Watchpoints-for-emacs-lisp.-tp28512483p28523705.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.
- Watchpoints for emacs lisp., alin.s, 2010/05/10
- Re: Watchpoints for emacs lisp., Richard Stallman, 2010/05/11
- Re: Watchpoints for emacs lisp.,
alin.s <=
- Re: Watchpoints for emacs lisp., Ken Raeburn, 2010/05/11
- Re: Watchpoints for emacs lisp., Stefan Monnier, 2010/05/11
- Re: Watchpoints for emacs lisp., alin.s, 2010/05/11
- Re: Watchpoints for emacs lisp., alin.s, 2010/05/15
- Re: Watchpoints for emacs lisp., alin.s, 2010/05/15
- Re: Watchpoints for emacs lisp., alin.s, 2010/05/15
- Re: Watchpoints for emacs lisp., alin.s, 2010/05/15
- Re: Watchpoints for emacs lisp., Helmut Eller, 2010/05/15
- Re: Watchpoints for emacs lisp., alin.s, 2010/05/15
- Re: Watchpoints for emacs lisp., Stefan Monnier, 2010/05/15