unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Watchpoints for emacs lisp.
@ 2010-05-11 13:54 A. Soare
  2010-05-12  1:53 ` Ken Raeburn
  2010-05-12  2:04 ` Stephen J. Turnbull
  0 siblings, 2 replies; 65+ messages in thread
From: A. Soare @ 2010-05-11 13:54 UTC (permalink / raw)
  To: Ken Raeburn; +Cc: Emacs   Dev  [emacs-devel]

> > I insert to the struct Lisp_Symbol a field :watched: .
> 
> So, no support for watching for an element of an array or pair to be changed, or part of a string?

Hm... I thought only to symbols, true. Not to arrays, not to numbers.

Can you use the change of an array if a symbol does not point to it? Probably yes. There exist lambda function (functions without name), but probably one can debug also the change of an array without name.


.....

> > 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 ?
> 
> If you do it this way, I think having a Lisp function take a symbol in which to set the flag, and having a user-callable function which uses (interactive "S") (which asks the user for a symbol name in the main obarray), is probably a good start.  Anything that isn't in the main obarray can be provided directly in lisp by the developer.
> 
> What about changes to the property list, or function value, of a symbol?
> 

Can you figure an algorithm for checking very fast (O (0)) whether a symbol has a given property ?

Yes, surely yes, if property lists would have been implemented with fast search algo, which is not the case of emacs.  


Alin



____________________________________________________

 Les scandales de cannes, les palmes d'or, l'actualité du festival sur voila.fr http://evenementiel.voila.fr/festival-de-cannes2010/






^ permalink raw reply	[flat|nested] 65+ messages in thread
* Watchpoints for emacs lisp.
@ 2010-05-10 16:28 alin.s
  2010-05-11 11:59 ` Richard Stallman
  0 siblings, 1 reply; 65+ messages in thread
From: alin.s @ 2010-05-10 16:28 UTC (permalink / raw)
  To: Emacs-devel


I promised that I can do the watchpoints for emacs lisp when I have some
time.

Here I come back, and I ask whether they are still in the list of
requirements.

I would like to do them , if they are still necessary,


Alin.



-- 
View this message in context: http://old.nabble.com/Watchpoints-for-emacs-lisp.-tp28512483p28512483.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.




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

end of thread, other threads:[~2010-08-10 11:00 UTC | newest]

Thread overview: 65+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-11 13:54 Watchpoints for emacs lisp A. Soare
2010-05-12  1:53 ` Ken Raeburn
2010-05-12  2:04 ` Stephen J. Turnbull
  -- strict thread matches above, loose matches on Subject: below --
2010-05-10 16:28 alin.s
2010-05-11 11:59 ` Richard Stallman
2010-05-11 12:54   ` alin.s
2010-05-11 13:43     ` Ken Raeburn
2010-05-11 14:10     ` Stefan Monnier
2010-05-11 15:37       ` alin.s
2010-05-15 11:16       ` alin.s
2010-05-15 11:24         ` alin.s
2010-05-15 11:44           ` alin.s
2010-05-15 11:56             ` alin.s
2010-05-15 12:43               ` Helmut Eller
2010-05-15 13:06                 ` alin.s
2010-05-15 17:48             ` Stefan Monnier
2010-05-16 13:07               ` alin.s
2010-05-16 13:09                 ` Lennart Borgman
2010-05-16 13:42                   ` alin.s
2010-05-16 16:28                     ` Lennart Borgman
2010-05-16 19:46                       ` alin.s
2010-05-16 20:42                 ` Stefan Monnier
2010-05-16 21:10                   ` alin.s
2010-05-17 13:24                     ` Stefan Monnier
2010-05-15 12:15           ` Andreas Schwab
2010-05-15 17:43         ` Stefan Monnier
2010-05-16 13:05           ` alin.s
2010-05-16 15:03             ` Chad Brown
2010-05-16 19:44               ` alin.s
2010-05-16 21:31               ` alin.s
2010-05-16 22:38                 ` alin.s
2010-05-16 23:47                 ` Lennart Borgman
2010-05-16 23:56                   ` alin.s
2010-05-17 15:52                   ` alin.s
2010-05-17 16:09                     ` Lennart Borgman
2010-05-17 16:40                       ` alin.s
2010-05-17 17:00                         ` Lennart Borgman
2010-05-17 17:29                           ` alin.s
2010-05-17 18:39                             ` alin.s
2010-05-17 18:41                               ` alin.s
2010-05-17 20:22                                 ` alin.s
2010-05-17 18:59                               ` Eli Zaretskii
2010-05-17 19:04                                 ` Lennart Borgman
2010-05-17 19:00                               ` Chad Brown
2010-05-18  8:22                                 ` Adrian Robert
2010-05-18 19:46                                   ` Chad Brown
2010-05-18 22:38                                     ` Andreas Schwab
2010-05-24 14:36                                       ` alin.s
2010-05-24 14:46                                         ` Ken Raeburn
2010-05-26  8:27                                           ` alin.s
2010-05-24 15:12                                         ` alin.s
2010-05-24 17:36                                           ` Jan Djärv
2010-05-24 17:47                                           ` Stefan Monnier
2010-05-26 10:38                                             ` alin.s
2010-05-26 13:46                                               ` Stefan Monnier
2010-05-26 16:49                                                 ` alin.s
2010-05-27 14:08                                                   ` alin.s
2010-05-27 22:05                                                     ` Andreas Schwab
2010-05-28 20:09                                                       ` alin.s
2010-07-06 12:26                                                         ` alin.s
2010-08-10 11:00                                                           ` Stefan Monnier
2010-05-29  4:25                                                       ` tomas
2010-05-19  4:30                                   ` Ken Raeburn
2010-05-19  6:20                                     ` Adrian Robert
2010-05-17 19:56                               ` Andreas Schwab

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).