From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "alin.s" Newsgroups: gmane.emacs.devel Subject: Re: Watchpoints for emacs lisp. Date: Tue, 11 May 2010 05:54:24 -0700 (PDT) Message-ID: <28523705.post@talk.nabble.com> References: <28512483.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273582477 15056 80.91.229.12 (11 May 2010 12:54:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 May 2010 12:54:37 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 11 14:54:36 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBoyo-0007E3-3B for ged-emacs-devel@m.gmane.org; Tue, 11 May 2010 14:54:34 +0200 Original-Received: from localhost ([127.0.0.1]:51450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBoyn-0002rO-EF for ged-emacs-devel@m.gmane.org; Tue, 11 May 2010 08:54:33 -0400 Original-Received: from [140.186.70.92] (port=47500 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBoyh-0002rH-GQ for Emacs-devel@gnu.org; Tue, 11 May 2010 08:54:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBoyf-0007GD-Tb for Emacs-devel@gnu.org; Tue, 11 May 2010 08:54:27 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:57436) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBoyf-0007Fw-NJ for Emacs-devel@gnu.org; Tue, 11 May 2010 08:54:25 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OBoye-00034W-2t for Emacs-devel@gnu.org; Tue, 11 May 2010 05:54:24 -0700 In-Reply-To: X-Nabble-From: alinsoar@voila.fr X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124700 Archived-At: 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: 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.