Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-09 Thread Bastien
Matt Lundin m...@imapmail.org writes: Bastien b...@gnu.org writes: I fixed the problem with `org-clock-state'. This should be `org-state'. `state' is a local variable in many org.el functions, I renamed it to `org-state' in org-clock.el and in caller sexp from org.el. Attached please

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-07 Thread Matt Lundin
Bastien b...@gnu.org writes: I fixed the problem with `org-clock-state'. This should be `org-state'. `state' is a local variable in many org.el functions, I renamed it to `org-state' in org-clock.el and in caller sexp from org.el. Attached please find a patch that fixes the docstring of

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-04 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Bastien writes: 1. one about `buffer-substring-filters' We should write a compatibility function to get rid of the first warning. Actually it is a variable and it just needs to be aliased suitably, depending on which Emacs version it encounters. I'm

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-03 Thread Achim Gratz
Bastien writes: 1. one about `buffer-substring-filters' We should write a compatibility function to get rid of the first warning. Actually it is a variable and it just needs to be aliased suitably, depending on which Emacs version it encounters. This should be done with a macro in

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Nick Dokos
Achim Gratz strom...@nexgo.de wrote: Nick Dokos writes: I assume that we are talking about the seven commits Yes, but likely not all of them (or all changes in them). The only problematic ones are where a dynamically scoped variable is renamed and there are a bunch of others that

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes: There is (supposed to be) *one* place somewhere that actually defines it: (defvar foo 1) ... unless foo is dynamically bound into a caller sexp. -- Bastien

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Achim Gratz strom...@nexgo.de writes: 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

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Bastien writes: Well -- I'll be pretty busy next week, so hopefully we can fix this soon... any help welcome! :) Ditto, but you do realize this will be horribly broken in Emacs 24?

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Nick Dokos writes: I assume that we are talking about the seven commits Yes, but likely not all of them (or all changes in them). The only problematic ones are where a dynamically scoped variable is renamed and there are a bunch of others that probably

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Hi Nick, Nick Dokos nicholas.do...@hp.com writes: Agreed, but the point is that each and every variable renaming will need to be checked in the light of these criteria. Bugs like this have the potential of creating havoc for a long time to come. It may be easier to start from a working

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Achim Gratz
Bastien writes: Let's do some heavy testing against current HEAD and let's carefully review code. But let's not panic -- Emacs is still in pretest, that's the whole purpose of a pretest. It looks like you've already took care of the fixes. Anything that you specifically want to review?

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Hi Achim, Achim Gratz strom...@nexgo.de writes: Bastien writes: Let's do some heavy testing against current HEAD and let's carefully review code. But let's not panic -- Emacs is still in pretest, that's the whole purpose of a pretest. It looks like you've already took care of the

[O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Bernt Hansen
Hi Bastien, I updated to master today e917477 ((org-xhtml.el): Removed, 2012-04-01) and am getting errors about org-clock-last-state not defined in my GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian I can see the variable in the source defined

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Achim Gratz
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

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Bastien
Achim Gratz strom...@nexgo.de writes: 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... :-) Well -- I'll be pretty busy next week, so hopefully we can fix

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Nick Dokos
Bernt Hansen be...@norang.ca wrote: Hi Bastien, I updated to master today e917477 ((org-xhtml.el): Removed, 2012-04-01) and am getting errors about org-clock-last-state not defined in my GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Bernt Hansen
Nick Dokos nicholas.do...@hp.com writes: Bernt Hansen be...@norang.ca wrote: Hi Bastien, I updated to master today e917477 ((org-xhtml.el): Removed, 2012-04-01) and am getting errors about org-clock-last-state not defined in my GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Achim Gratz
Bastien writes: Well -- I'll be pretty busy next week, so hopefully we can fix this soon... any help welcome! :) Ditto, but you do realize this will be horribly broken in Emacs 24? Anyway, for that single dynamic state variable: it is let-bound in org.el/org-todo and then dynamically scoped

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Nick Dokos
Achim Gratz strom...@nexgo.de wrote: Bastien writes: Well -- I'll be pretty busy next week, so hopefully we can fix this soon... any help welcome! :) Ditto, but you do realize this will be horribly broken in Emacs 24? Anyway, for that single dynamic state variable: it is let-bound in

Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-01 Thread Achim Gratz
Nick Dokos writes: I assume that we are talking about the seven commits Yes, but likely not all of them (or all changes in them). The only problematic ones are where a dynamically scoped variable is renamed and there are a bunch of others that probably are OK. $ git log --oneline -100 | grep