emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Debugger entered--Lisp error: (void-variable org-keys)
@ 2012-08-29 15:40 Rainer Stengele
  2012-08-29 16:21 ` Nick Dokos
  0 siblings, 1 reply; 18+ messages in thread
From: Rainer Stengele @ 2012-08-29 15:40 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

having upgraded to

Org-mode version 7.9 (release_7.9-132-g31268a @
c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)

being in agenda I want to jump to another date with "j".
Choosing the date and pressing enter gives me this:


Debugger entered--Lisp error: (void-variable org-keys)
  (and org-keys (stringp org-match))
  (cond ((and org-keys (stringp org-match)) (format "*Org
Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org
Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*"))
  (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match))
(format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format
"*Org Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*")))
  (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and
org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys
org-match)) (org-keys (format "*Org Agenda(%s)*" org-keys)) (t "*Org
Agenda(a)*"))))
  (catch (quote exit) (if org-agenda-sticky (setq org-agenda-buffer-name
(cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*"
org-keys org-match)) (org-keys (format "*Org Agenda(%s)*" org-keys)) (t
"*Org Agenda(a)*")))) (org-agenda-prepare "Day/Week") (setq start-day
(or start-day org-agenda-start-day)) (if org-agenda-overriding-arguments
(setq arg (car org-agenda-overriding-arguments) start-day (nth 1
org-agenda-overriding-arguments) span (nth 2
org-agenda-overriding-arguments))) (if (stringp start-day) (setq
start-day (time-to-days (org-read-date nil t start-day)))) (setq
org-agenda-last-arguments (list arg start-day span))
(org-compile-prefix-format (quote agenda)) (org-set-sorting-strategy
(quote agenda)) (let* ((span (org-agenda-ndays-to-span (or span
org-agenda-ndays org-agenda-span))) (today (org-today)) (sd (or
start-day today)) (ndays (org-agenda-span-to-ndays span sd))
(org-agenda-start-on-weekday (if (eq ndays 7)
org-agenda-start-on-weekday)) (thefiles (org-agenda-files nil (quote
ifmode))) (files thefiles) (start (if (or (null
org-agenda-start-on-weekday) (< ndays 7)) sd (let* ((nt ...) (n1
org-agenda-start-on-weekday) (d ...)) (- sd (+ ... d))))) (day-numbers
(list start)) (day-cnt 0) (inhibit-redisplay (not debug-on-error))
(org-agenda-show-log-scoped org-agenda-show-log) s e rtn rtnall file
date d start-pos end-pos todayp clocktable-start clocktable-end filter)
(setq org-agenda-redo-command (list (quote org-agenda-list) (list (quote
quote) arg) start-day (list (quote quote) span))) (dotimes (n (1-
ndays)) (push (1+ (car day-numbers)) day-numbers)) (setq day-numbers
(nreverse day-numbers)) (setq clocktable-start (car day-numbers)
clocktable-end (1+ (or (org-last day-numbers) 0))) (org-set-local (quote
org-starting-day) (car day-numbers)) (org-set-local (quote org-arg-loc)
arg) (org-set-local (quote org-agenda-current-span)
(org-agenda-ndays-to-span span)) (unless org-agenda-compact-blocks (let*
((d1 (car day-numbers)) (d2 (org-last day-numbers)) (w1
(org-days-to-iso-week d1)) (w2 (org-days-to-iso-week d2))) (setq s
(point)) (if org-agenda-overriding-header (insert (org-add-props
(copy-sequence org-agenda-overriding-header) nil (quote face) (quote
org-agenda-structure)) "\n") (insert (org-agenda-span-name span)
"-agenda" (if (< ... 350) (if ... ... ...) "") ":\n")))
(add-text-properties s (1- (point)) (list (quote face) (quote
org-agenda-structure) (quote org-date-line) t))
(org-agenda-mark-header-line s)) (while (setq d (pop day-numbers)) (setq
date (calendar-gregorian-from-absolute d) s (point)) (if (or (setq
todayp (= d today)) (and (not start-pos) (= d sd))) (setq start-pos
(point)) (if (and start-pos (not end-pos)) (setq end-pos (point))))
(setq files thefiles rtnall nil) (while (setq file (pop files)) (catch
(quote nextfile) (org-check-agenda-file file) (let
((org-agenda-entry-types org-agenda-entry-types)) (unless
org-agenda-include-deadlines (setq org-agenda-entry-types ...)) (cond
(... ...) (org-agenda-show-log-scoped ...) (t ...))) (setq rtnall
(append rtnall rtn)))) (if org-agenda-include-diary (let
((org-agenda-search-headline-for-time t)) (require (quote diary-lib))
(setq rtn (org-get-entries-from-diary date)) (setq rtnall (append rtnall
rtn)))) (if (or rtnall org-agenda-show-all-dates) (progn (setq day-cnt
(1+ day-cnt)) (insert (if (stringp org-agenda-format-date)
(format-time-string org-agenda-format-date ...) (funcall
org-agenda-format-date date)) "\n") (put-text-property s (1- (point))
(quote face) (org-agenda-get-day-face date)) (put-text-property s (1-
(point)) (quote org-date-line) t) (put-text-property s (1- (point))
(quote org-agenda-date-header) t) (put-text-property s (1- (point))
(quote org-day-cnt) day-cnt) (when todayp (put-text-property s (1- ...)
(quote org-today) t)) (setq rtnall (org-agenda-add-time-grid-maybe
rtnall ndays todayp)) (if rtnall (insert (org-finalize-agenda-entries
rtnall) "\n")) (put-text-property s (1- (point)) (quote day) d)
(put-text-property s (1- (point)) (quote org-day-cnt) day-cnt)))) (when
(and org-agenda-clockreport-mode clocktable-start) (let
((org-agenda-files (org-agenda-files nil (quote ifmode))) (p
(copy-sequence org-agenda-clockreport-parameter-plist)) tbl) (setq p
(org-plist-delete p :block)) (setq p (plist-put p :tstart
clocktable-start)) (setq p (plist-put p :tend clocktable-end)) (setq p
(plist-put p :scope (quote agenda))) (when (and (eq
org-agenda-clockreport-mode (quote with-filter)) (setq filter (or
org-agenda-tag-filter-while-redo ...))) (setq p (plist-put p :tags
(mapconcat ... filter "")))) (setq tbl (apply (quote org-get-clocktable)
p)) (insert tbl))) (goto-char (point-min)) (or org-agenda-multi
(org-agenda-fit-window-to-buffer)) (unless (and (pos-visible-in-window-p
(point-min)) (pos-visible-in-window-p (point-max))) (goto-char (1-
(point-max))) (recenter -1) (if (not (pos-visible-in-window-p (or
start-pos 1))) (progn (goto-char (or start-pos 1)) (recenter 1))))
(goto-char (or start-pos 1)) (add-text-properties (point-min)
(point-max) (quote (org-agenda-type agenda))) (if (eq
org-agenda-show-log-scoped (quote clockcheck))
(org-agenda-show-clocking-issues)) (org-finalize-agenda) (setq
buffer-read-only t) (message "")))
  org-agenda-list(nil "2012-08-22")
  org-agenda-goto-date("2012-08-22")
  call-interactively(org-agenda-goto-date nil nil)


Can anybody help?

Rainer

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 15:40 Debugger entered--Lisp error: (void-variable org-keys) Rainer Stengele
@ 2012-08-29 16:21 ` Nick Dokos
  2012-08-29 17:40   ` Rainer Stengele
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2012-08-29 16:21 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode

Rainer Stengele <rainer.stengele@online.de> wrote:

> Hi,
> 
> having upgraded to
> 
> Org-mode version 7.9 (release_7.9-132-g31268a @
> c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)
> 
> being in agenda I want to jump to another date with "j".
> Choosing the date and pressing enter gives me this:
> 
> 
> Debugger entered--Lisp error: (void-variable org-keys)

Just upgraded to that version and I cannot reproduce the problem.
Does a ``make autoloads'', followed by M-x org-reload (or restarting
emacs) fix it?

Nick

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 16:21 ` Nick Dokos
@ 2012-08-29 17:40   ` Rainer Stengele
  2012-08-29 17:57     ` Bastien
  2012-08-29 18:02     ` Achim Gratz
  0 siblings, 2 replies; 18+ messages in thread
From: Rainer Stengele @ 2012-08-29 17:40 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Am 29.08.2012 18:21, schrieb Nick Dokos:
> Rainer Stengele <rainer.stengele@online.de> wrote:
> 
>> Hi,
>>
>> having upgraded to
>>
>> Org-mode version 7.9 (release_7.9-132-g31268a @
>> c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)
>>
>> being in agenda I want to jump to another date with "j".
>> Choosing the date and pressing enter gives me this:
>>
>>
>> Debugger entered--Lisp error: (void-variable org-keys)
> 
> Just upgraded to that version and I cannot reproduce the problem.
> Does a ``make autoloads'', followed by M-x org-reload (or restarting
> emacs) fix it?
> 
> Nick
> 
> 
> 
No, that didn't help.
I have the same error on my machine at home after upgrading (Windows XP).

Rainer

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 17:40   ` Rainer Stengele
@ 2012-08-29 17:57     ` Bastien
  2012-08-29 18:02     ` Achim Gratz
  1 sibling, 0 replies; 18+ messages in thread
From: Bastien @ 2012-08-29 17:57 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: nicholas.dokos, emacs-orgmode

Hi Rainer,

Rainer Stengele <rainer.stengele@online.de> writes:

> I have the same error on my machine at home after upgrading (Windows
> XP).

Try recompiling with `make' then M-x org-reload RET

-- 
 Bastien

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 17:40   ` Rainer Stengele
  2012-08-29 17:57     ` Bastien
@ 2012-08-29 18:02     ` Achim Gratz
  2012-08-29 18:13       ` Nick Dokos
  1 sibling, 1 reply; 18+ messages in thread
From: Achim Gratz @ 2012-08-29 18:02 UTC (permalink / raw)
  To: emacs-orgmode

Rainer Stengele writes:
> No, that didn't help.
> I have the same error on my machine at home after upgrading (Windows XP).

Well, then do M-x toggle-debug-on-error before going to the agenda and
post the backtrace.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 18:02     ` Achim Gratz
@ 2012-08-29 18:13       ` Nick Dokos
  2012-08-29 18:30         ` Achim Gratz
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2012-08-29 18:13 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim Gratz <Stromeko@nexgo.de> wrote:

> Rainer Stengele writes:
> > No, that didn't help.
> > I have the same error on my machine at home after upgrading (Windows XP).
> 
> Well, then do M-x toggle-debug-on-error before going to the agenda and
> post the backtrace.
> 

There was a backtrace in Rainer's original message complaining about org-keys
not being defined. If I had to guess, I'd say it looks like a frankenstein build
to me, but I'm really not sure.

Nick

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 18:13       ` Nick Dokos
@ 2012-08-29 18:30         ` Achim Gratz
  2012-08-29 20:25           ` Rainer Stengele
  2012-08-30  5:42           ` Bastien
  0 siblings, 2 replies; 18+ messages in thread
From: Achim Gratz @ 2012-08-29 18:30 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos writes:
> There was a backtrace in Rainer's original message complaining about
> org-keys not being defined. If I had to guess, I'd say it looks like a
> frankenstein build to me, but I'm really not sure.

Yes, but he's since re-made the autoloads file at least and the new
backtrace might be different.

Anyway, org-keys is defined in org-agenda and it looks like most if not
all of the backtrace is also from org-agenda, and it's been a recent
addition by Bastien… it seems that it is declared as a dynamic variable
but not bound in all autoloaded functions, so there definitely are
codepaths that might find this variable undefined.  I don't know if
something would preclude the declaration be changed to e definition with
nil as a value, but I think Bastien would know.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 18:30         ` Achim Gratz
@ 2012-08-29 20:25           ` Rainer Stengele
  2012-08-29 20:46             ` Nick Dokos
  2012-08-30  5:42           ` Bastien
  1 sibling, 1 reply; 18+ messages in thread
From: Rainer Stengele @ 2012-08-29 20:25 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Am 29.08.2012 20:30, schrieb Achim Gratz:
> Nick Dokos writes:
>> There was a backtrace in Rainer's original message complaining about
>> org-keys not being defined. If I had to guess, I'd say it looks like a
>> frankenstein build to me, but I'm really not sure.
> 
> Yes, but he's since re-made the autoloads file at least and the new
> backtrace might be different.
> 
> Anyway, org-keys is defined in org-agenda and it looks like most if not
> all of the backtrace is also from org-agenda, and it's been a recent
> addition by Bastien… it seems that it is declared as a dynamic variable
> but not bound in all autoloaded functions, so there definitely are
> codepaths that might find this variable undefined.  I don't know if
> something would preclude the declaration be changed to e definition with
> nil as a value, but I think Bastien would know.
> 
> 
> Regards,
> Achim.
> 

I use sticky Agenda since some months.
Doing a "org-toggle-sticky-agenda" and calling any agenda function makes the error disappear!

example of one of my sticky Agendas:
..
	("01" "agenda - prio A,B todos - sorted prio up - 1 day"  ;;
	 (
	  (agenda "prio ABC agenda"
		  (
		   ;;		   (org-agenda-skip-function
		   ;; (lambda nil
		   ;;   (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\|#B\\|#C\\]")))
		   (org-agenda-span 'day)
		   ;; (org-agenda-span 1)
		   (org-agenda-start-with-log-mode t)
		   (org-agenda-overriding-header "Today's Agenda  + Prio A todos ")))

	  (alltodo "todos Prio A+B"
		   ((org-agenda-skip-function
		     (lambda nil
		       (or (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\|#B\\]")
		       ;; (org-agenda-skip-entry-if 'todo '("MOVED"))
		       ;; (org-agenda-skip-entry-if 'todo 'done)
			   (org-agenda-skip-entry-if 'scheduled 'deadline ))))))
 	
	  )
	 ((org-agenda-sorting-strategy '(time-up priority-down todo-state-up))))
..




Here is my currrent backtrace, make autoloads does not change anything:


Debugger entered--Lisp error: (void-variable org-keys)
  (and org-keys (stringp org-match))
  (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*"))
  (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org Agenda(%s)*" org-keys)) (t "*Org
Agenda(a)*")))
  (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org
Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*"))))
  (catch (quote exit) (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys
(format "*Org Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*")))) (org-agenda-prepare "Day/Week") (setq start-day (or start-day org-agenda-start-day)) (if
org-agenda-overriding-arguments (setq arg (car org-agenda-overriding-arguments) start-day (nth 1 org-agenda-overriding-arguments) span (nth 2 org-agenda-overriding-arguments))) (if
(stringp start-day) (setq start-day (time-to-days (org-read-date nil t start-day)))) (setq org-agenda-last-arguments (list arg start-day span)) (org-compile-prefix-format (quote
agenda)) (org-set-sorting-strategy (quote agenda)) (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-span))) (today (org-today)) (sd (or start-day today))
(ndays (org-agenda-span-to-ndays span sd)) (org-agenda-start-on-weekday (if (eq ndays 7) org-agenda-start-on-weekday)) (thefiles (org-agenda-files nil (quote ifmode))) (files
thefiles) (start (if (or (null org-agenda-start-on-weekday) (< ndays 7)) sd (let* ((nt ...) (n1 org-agenda-start-on-weekday) (d ...)) (- sd (+ ... d))))) (day-numbers (list start))
(day-cnt 0) (inhibit-redisplay (not debug-on-error)) (org-agenda-show-log-scoped org-agenda-show-log) s e rtn rtnall file date d start-pos end-pos todayp clocktable-start
clocktable-end filter) (setq org-agenda-redo-command (list (quote org-agenda-list) (list (quote quote) arg) start-day (list (quote quote) span))) (dotimes (n (1- ndays)) (push (1+
(car day-numbers)) day-numbers)) (setq day-numbers (nreverse day-numbers)) (setq clocktable-start (car day-numbers) clocktable-end (1+ (or (org-last day-numbers) 0)))
(org-set-local (quote org-starting-day) (car day-numbers)) (org-set-local (quote org-arg-loc) arg) (org-set-local (quote org-agenda-current-span) (org-agenda-ndays-to-span span))
(unless org-agenda-compact-blocks (let* ((d1 (car day-numbers)) (d2 (org-last day-numbers)) (w1 (org-days-to-iso-week d1)) (w2 (org-days-to-iso-week d2))) (setq s (point)) (if
org-agenda-overriding-header (insert (org-add-props (copy-sequence org-agenda-overriding-header) nil (quote face) (quote org-agenda-structure)) "\n") (insert (org-agenda-span-name
span) "-agenda" (if (< ... 350) (if ... ... ...) "") ":\n"))) (add-text-properties s (1- (point)) (list (quote face) (quote org-agenda-structure) (quote org-date-line) t))
(org-agenda-mark-header-line s)) (while (setq d (pop day-numbers)) (setq date (calendar-gregorian-from-absolute d) s (point)) (if (or (setq todayp (= d today)) (and (not start-pos)
(= d sd))) (setq start-pos (point)) (if (and start-pos (not end-pos)) (setq end-pos (point)))) (setq files thefiles rtnall nil) (while (setq file (pop files)) (catch (quote
nextfile) (org-check-agenda-file file) (let ((org-agenda-entry-types org-agenda-entry-types)) (unless org-agenda-include-deadlines (setq org-agenda-entry-types ...)) (cond (...
...) (org-agenda-show-log-scoped ...) (t ...))) (setq rtnall (append rtnall rtn)))) (if org-agenda-include-diary (let ((org-agenda-search-headline-for-time t)) (require (quote
diary-lib)) (setq rtn (org-get-entries-from-diary date)) (setq rtnall (append rtnall rtn)))) (if (or rtnall org-agenda-show-all-dates) (progn (setq day-cnt (1+ day-cnt)) (insert
(if (stringp org-agenda-format-date) (format-time-string org-agenda-format-date ...) (funcall org-agenda-format-date date)) "\n") (put-text-property s (1- (point)) (quote face)
(org-agenda-get-day-face date)) (put-text-property s (1- (point)) (quote org-date-line) t) (put-text-property s (1- (point)) (quote org-agenda-date-header) t) (put-text-property s
(1- (point)) (quote org-day-cnt) day-cnt) (when todayp (put-text-property s (1- ...) (quote org-today) t)) (setq rtnall (org-agenda-add-time-grid-maybe rtnall ndays todayp)) (if
rtnall (insert (org-finalize-agenda-entries rtnall) "\n")) (put-text-property s (1- (point)) (quote day) d) (put-text-property s (1- (point)) (quote org-day-cnt) day-cnt)))) (when
(and org-agenda-clockreport-mode clocktable-start) (let ((org-agenda-files (org-agenda-files nil (quote ifmode))) (p (copy-sequence org-agenda-clockreport-parameter-plist)) tbl)
(setq p (org-plist-delete p :block)) (setq p (plist-put p :tstart clocktable-start)) (setq p (plist-put p :tend clocktable-end)) (setq p (plist-put p :scope (quote agenda))) (when
(and (eq org-agenda-clockreport-mode (quote with-filter)) (setq filter (or org-agenda-tag-filter-while-redo ...))) (setq p (plist-put p :tags (mapconcat ... filter "")))) (setq tbl
(apply (quote org-get-clocktable) p)) (insert tbl))) (goto-char (point-min)) (or org-agenda-multi (org-agenda-fit-window-to-buffer)) (unless (and (pos-visible-in-window-p
(point-min)) (pos-visible-in-window-p (point-max))) (goto-char (1- (point-max))) (recenter -1) (if (not (pos-visible-in-window-p (or start-pos 1))) (progn (goto-char (or start-pos
1)) (recenter 1)))) (goto-char (or start-pos 1)) (add-text-properties (point-min) (point-max) (quote (org-agenda-type agenda))) (if (eq org-agenda-show-log-scoped (quote
clockcheck)) (org-agenda-show-clocking-issues)) (org-finalize-agenda) (setq buffer-read-only t) (message "")))
  org-agenda-list(nil "2012-08-22")
  org-agenda-goto-date("2012-08-22")
  call-interactively(org-agenda-goto-date nil nil)

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 20:25           ` Rainer Stengele
@ 2012-08-29 20:46             ` Nick Dokos
  2012-08-30  6:08               ` Nick Dokos
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2012-08-29 20:46 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: Achim Gratz, emacs-orgmode

Rainer Stengele <rainer.stengele@online.de> wrote:


> I use sticky Agenda since some months.
> Doing a "org-toggle-sticky-agenda" and calling any agenda function makes the error disappear!
> 

OK - that clarifies things: I don't use sticky agenda, so that explains
why I didn't get the error. Looking at the backtrace a bit more also
shows it clearly - 50/50 hindsight is such a blessing - but I didn't
look at it carefully the first time. I guess Achim's suggestion of
giving it an initial value in the defvar should work, but I don't
understand how org-keys is supposed to work.

Nick

> Here is my currrent backtrace, make autoloads does not change anything:
> 
> Debugger entered--Lisp error: (void-variable org-keys)
>   (and org-keys (stringp org-match))
>   (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*"))
>   (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org Agenda(%s)*" org-keys)) (t "*Org
> Agenda(a)*")))
>   (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) (format "*Org Agenda(%s:%s)*" org-keys org-match)) (org-keys (format "*Org
> Agenda(%s)*" org-keys)) (t "*Org Agenda(a)*"))))
>   ...
>   org-agenda-list(nil "2012-08-22")
>   org-agenda-goto-date("2012-08-22")
>   call-interactively(org-agenda-goto-date nil nil)
> 

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 18:30         ` Achim Gratz
  2012-08-29 20:25           ` Rainer Stengele
@ 2012-08-30  5:42           ` Bastien
  2012-08-30  8:28             ` Rainer Stengele
  1 sibling, 1 reply; 18+ messages in thread
From: Bastien @ 2012-08-30  5:42 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim Gratz <Stromeko@nexgo.de> writes:

> I don't know if
> something would preclude the declaration be changed to e definition with
> nil as a value, but I think Bastien would know.

I don't have any steady theory about this, but as a convention I try to
(defvar [var] nil) for dynamically bound vars in the current file and to 
(defvar [var]) for variables declared in other files.  I just cleaned-up
org-agenda.el a bit wrt this.

Thanks for the heads up,

-- 
 Bastien

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-29 20:46             ` Nick Dokos
@ 2012-08-30  6:08               ` Nick Dokos
  0 siblings, 0 replies; 18+ messages in thread
From: Nick Dokos @ 2012-08-30  6:08 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> wrote:

> shows it clearly - 50/50 hindsight is such a blessing - but I didn't

optometrically suspect: 20/20 hindsight is perhaps preferable...

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30  5:42           ` Bastien
@ 2012-08-30  8:28             ` Rainer Stengele
  2012-08-30  8:58               ` Bastien
  0 siblings, 1 reply; 18+ messages in thread
From: Rainer Stengele @ 2012-08-30  8:28 UTC (permalink / raw)
  To: Bastien; +Cc: Achim Gratz, emacs-orgmode

Am 30.08.2012 07:42, schrieb Bastien:
> Achim Gratz <Stromeko@nexgo.de> writes:
> 
>> I don't know if
>> something would preclude the declaration be changed to e definition with
>> nil as a value, but I think Bastien would know.
> 
> I don't have any steady theory about this, but as a convention I try to
> (defvar [var] nil) for dynamically bound vars in the current file and to 
> (defvar [var]) for variables declared in other files.  I just cleaned-up
> org-agenda.el a bit wrt this.
> 
> Thanks for the heads up,
> 
Thanks Bastien, no more "Lisp error"!

Now - being in a sticky agenda and jumping to another date via "j" the
agenda command called is not the one I was in.
Example:

I am in "Org Agenda(01)", jump to yesterday and get "Org Agenda(a)",
which of course is not what I want.

This looks like a bug.

Thanks again,
Rainer

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30  8:28             ` Rainer Stengele
@ 2012-08-30  8:58               ` Bastien
  2012-08-30  9:24                 ` Rainer Stengele
  0 siblings, 1 reply; 18+ messages in thread
From: Bastien @ 2012-08-30  8:58 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: Achim Gratz, emacs-orgmode

Rainer Stengele <rainer.stengele@online.de> writes:

> Now - being in a sticky agenda and jumping to another date via "j" the
> agenda command called is not the one I was in.
> Example:
>
> I am in "Org Agenda(01)", jump to yesterday and get "Org Agenda(a)",
> which of course is not what I want.
>
> This looks like a bug.

Indeed -- should be fixed now.   Perhaps Charles' bug was the same.

Thanks,

-- 
 Bastien

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30  8:58               ` Bastien
@ 2012-08-30  9:24                 ` Rainer Stengele
  2012-08-30  9:52                   ` Bastien
  0 siblings, 1 reply; 18+ messages in thread
From: Rainer Stengele @ 2012-08-30  9:24 UTC (permalink / raw)
  To: Bastien; +Cc: Achim Gratz, emacs-orgmode

Am 30.08.2012 10:58, schrieb Bastien:
> Rainer Stengele <rainer.stengele@online.de> writes:
> 
>> Now - being in a sticky agenda and jumping to another date via "j" the
>> agenda command called is not the one I was in.
>> Example:
>>
>> I am in "Org Agenda(01)", jump to yesterday and get "Org Agenda(a)",
>> which of course is not what I want.
>>
>> This looks like a bug.
> 
> Indeed -- should be fixed now.   Perhaps Charles' bug was the same.
> 
> Thanks,
> 
Sorry but - no.
Agenda now changes to "*Org Agenda*", does not stay with the chosen
sticky one.

Thanks for looking at this,
Rainer

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30  9:24                 ` Rainer Stengele
@ 2012-08-30  9:52                   ` Bastien
  2012-08-30 10:05                     ` Rainer Stengele
  0 siblings, 1 reply; 18+ messages in thread
From: Bastien @ 2012-08-30  9:52 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: Achim Gratz, emacs-orgmode

Rainer Stengele <rainer.stengele@online.de> writes:

> Sorry but - no.
> Agenda now changes to "*Org Agenda*", does not stay with the chosen
> sticky one.

Well, should be now.  Thanks!

-- 
 Bastien

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30  9:52                   ` Bastien
@ 2012-08-30 10:05                     ` Rainer Stengele
  2012-08-30 11:25                       ` Bastien
  0 siblings, 1 reply; 18+ messages in thread
From: Rainer Stengele @ 2012-08-30 10:05 UTC (permalink / raw)
  To: Bastien; +Cc: Achim Gratz, emacs-orgmode

Am 30.08.2012 11:52, schrieb Bastien:
> Rainer Stengele <rainer.stengele@online.de> writes:
> 
>> Sorry but - no.
>> Agenda now changes to "*Org Agenda*", does not stay with the chosen
>> sticky one.
> 
> Well, should be now.  Thanks!
> 

The name of the agenda buffer now is correct, but the contents is not.

Being in "Org Agenda(01)" and moving to yesterday and back again to
today with "b" and "f" I get the correct results of my custom agenda
function.
Jumping to yesterday and back to today with "j" I miss all the todos in
my view so I am afraid that the real custom agenda command is not executed.

Rainer

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30 10:05                     ` Rainer Stengele
@ 2012-08-30 11:25                       ` Bastien
  2012-08-30 12:30                         ` Rainer Stengele
  0 siblings, 1 reply; 18+ messages in thread
From: Bastien @ 2012-08-30 11:25 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: Achim Gratz, emacs-orgmode

Rainer Stengele <rainer.stengele@online.de> writes:

> The name of the agenda buffer now is correct, but the contents is not.
>
> Being in "Org Agenda(01)" and moving to yesterday and back again to
> today with "b" and "f" I get the correct results of my custom agenda
> function.
> Jumping to yesterday and back to today with "j" I miss all the todos in
> my view so I am afraid that the real custom agenda command is not
> executed.

I see.  I've pushed a new fix.  Thanks for your patience,

-- 
 Bastien

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

* Re: Debugger entered--Lisp error: (void-variable org-keys)
  2012-08-30 11:25                       ` Bastien
@ 2012-08-30 12:30                         ` Rainer Stengele
  0 siblings, 0 replies; 18+ messages in thread
From: Rainer Stengele @ 2012-08-30 12:30 UTC (permalink / raw)
  To: Bastien; +Cc: Achim Gratz, emacs-orgmode

Am 30.08.2012 13:25, schrieb Bastien:
> Rainer Stengele <rainer.stengele@online.de> writes:
> 
>> The name of the agenda buffer now is correct, but the contents is not.
>>
>> Being in "Org Agenda(01)" and moving to yesterday and back again to
>> today with "b" and "f" I get the correct results of my custom agenda
>> function.
>> Jumping to yesterday and back to today with "j" I miss all the todos in
>> my view so I am afraid that the real custom agenda command is not
>> executed.
> 
> I see.  I've pushed a new fix.  Thanks for your patience,
> 
Bastien, thanks a lot, works perfectly!
Let me (!) thank you for your patience!

Rainer

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

end of thread, other threads:[~2012-08-30 12:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-29 15:40 Debugger entered--Lisp error: (void-variable org-keys) Rainer Stengele
2012-08-29 16:21 ` Nick Dokos
2012-08-29 17:40   ` Rainer Stengele
2012-08-29 17:57     ` Bastien
2012-08-29 18:02     ` Achim Gratz
2012-08-29 18:13       ` Nick Dokos
2012-08-29 18:30         ` Achim Gratz
2012-08-29 20:25           ` Rainer Stengele
2012-08-29 20:46             ` Nick Dokos
2012-08-30  6:08               ` Nick Dokos
2012-08-30  5:42           ` Bastien
2012-08-30  8:28             ` Rainer Stengele
2012-08-30  8:58               ` Bastien
2012-08-30  9:24                 ` Rainer Stengele
2012-08-30  9:52                   ` Bastien
2012-08-30 10:05                     ` Rainer Stengele
2012-08-30 11:25                       ` Bastien
2012-08-30 12:30                         ` Rainer Stengele

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).