From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Problems with (defvar foo) and Emacs 23 Date: Sun, 01 Apr 2012 22:16:17 +0200 Message-ID: <87aa2vp5ri.fsf@Rainer.invalid> References: <87sjgngtzk.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SERCX-0001Bl-FJ for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 16:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SERCV-0002mH-H8 for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 16:16:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:47633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SERCV-0002lz-AD for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 16:16:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SERCS-00042r-SE for emacs-orgmode@gnu.org; Sun, 01 Apr 2012 22:16:32 +0200 Received: from pd9eb4c09.dip.t-dialin.net ([217.235.76.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Apr 2012 22:16:32 +0200 Received: from Stromeko by pd9eb4c09.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Apr 2012 22:16:32 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bernt Hansen writes: > I can see the variable in the source defined as > > lisp/org-clock.el:(defvar org-clock-state) ;; dynamically scoped into this function > > but I don't get a variable definition with this code in emacs 23.2.1. You aren't supposed to get one, as this should have been pulling in a local variable defined elsewhere (from within another function). > If I change the definition to > > (defvar org-clock-state nil) > > then it works for me. Yes, but the bug introduced by renaming the variable is still there. You do get a variable, but not the one you're supposed to be scoping. > There are _lots_ of these types of definitions with no value in the > org-mode source. Again, the missing value is not the problem. The problem arises when the variable name in the caller and the callee becomes different. I'll let Bastien and Martyn sort that one out... :-) Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada