From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tudor Gabriel Subject: Re: org-mode crashes with this stacktrace: Date: Thu, 11 Jun 2009 09:11:46 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0171489145==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEeSO-0007Sr-2M for emacs-orgmode@gnu.org; Thu, 11 Jun 2009 03:12:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEeSK-0007Qq-11 for emacs-orgmode@gnu.org; Thu, 11 Jun 2009 03:12:15 -0400 Received: from [199.232.76.173] (port=46418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEeSJ-0007Qm-BD for emacs-orgmode@gnu.org; Thu, 11 Jun 2009 03:12:11 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:34801) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEeSI-0001Ib-NG for emacs-orgmode@gnu.org; Thu, 11 Jun 2009 03:12:11 -0400 Received: by bwz5 with SMTP id 5so1174221bwz.42 for ; Thu, 11 Jun 2009 00:12:08 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Tudor Gabriel , emacs-orgmode@gnu.org --===============0171489145== Content-Type: multipart/alternative; boundary=001485f199224c358c046c0d4f35 --001485f199224c358c046c0d4f35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for your quick answer and sorry for the long dump, don't know which lines are relevant. (require 'org-install) (require 'remember) (org-remember-insinuate) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (add-hook 'org-agenda-mode-hook ;; eval-after-load "org" (lambda () (define-prefix-command 'org-todo-state-map) (flyspell-mode 1) (define-key org-agenda-mode-map "\C-n" 'next-line) (define-key org-agenda-keymap "\C-n" 'next-line) (define-key org-agenda-mode-map "\C-p" 'previous-line) (define-key org-agenda-keymap "\C-p" 'previous-line))) ;; Custom Key Bindings (global-set-key (kbd "") 'org-agenda) (global-set-key (kbd "") 'my-org-todo) (global-set-key (kbd "") 'widen) (global-set-key (kbd "") 'set-truncate-lines) (global-set-key (kbd "") 'org-cycle-agenda-files) (global-set-key (kbd " b") 'bbdb) (global-set-key (kbd " c") 'calendar) (global-set-key (kbd " f") 'boxquote-insert-file) (global-set-key (kbd " g") 'gnus) (global-set-key (kbd " o") 'org-occur) (global-set-key (kbd " r") 'boxquote-region) (global-set-key (kbd " u") (lambda () (interactive) (untabify (point-min) (point-max)))) (global-set-key (kbd " v") 'visible-mode) (global-set-key (kbd "C-") 'previous-buffer) (global-set-key (kbd "C-x n r") 'narrow-to-region) (global-set-key (kbd "C-") 'next-buffer) (global-set-key (kbd "") 'org-clock-goto) (global-set-key (kbd "C-s-") 'my-save-then-publish) (global-set-key (kbd "C-M-r") 'org-remember) (define-key mode-specific-map [?a] 'org-agenda) ;; Start clock if a remember buffer includes :CLOCK-IN: (add-hook 'remember-mode-hook 'my-start-clock-if-needed 'append) (defun my-start-clock-if-needed () (save-excursion (goto-char (point-min)) (when (re-search-forward " *:CLOCK-IN: *" nil t) (replace-match "") (org-clock-in)))) (setq org-completion-use-ido t) (setq org-refile-targets (quote ((org-agenda-files :maxlevel . 5) (nil :maxlevel . 5)))) (setq org-refile-use-outline-path (quote file)) (setq org-remember-clock-out-on-exit nil) (setq org-clock-out-remove-zero-time-clocks t) (setq org-agenda-clockreport-parameter-plist (quote (:link nil :maxlevel 2))) (setq org-columns-default-format "%80ITEM(Task) %10Effort(Effort){:} %10CLOCKSUM") (setq org-global-properties (quote (("Effort_ALL" . "0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 8:00")))) (setq org-clock-persistence-insinuate) (setq org-clock-history-length 35) (setq org-clock-in-resume t) (setq org-clock-in-switch-to-state "STARTED") (setq org-clock-into-drawer t) (setq org-clock-out-remove-zero-time-clocks t) (setq org-clock-out-when-done nil) (setq org-clock-persist t) (setq org-remember-store-without-prompt t) (setq org-remember-default-headline "Tasks") (setq org-remember-templates (quote (("todo" ?t "* TODO %? %u %a" "/home/tudor/org/tasks.org" bottom nil) ("note" ?n "* %? :NOTE: %u %a" nil bottom nil) ("phone" ?p "* PHONE %:name - %:compan= y - :PHONE: Contact Info: %a %u :CLOCK-IN: %?" "/home/tudor/org/phone.org" bottom nil)))) (add-hook 'remember-mode-hook 'org-remember-apply-template) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-agenda-files (quote ("/home/tudor/org/hobby.org" "/home/tudor/org/ tasks.org" "/home/tudor/org/ardendo.org" "/home/tudor/org/home.org"))) '(org-agenda-ndays 7) '(org-agenda-show-all-dates t) '(org-agenda-skip-deadline-if-done t) '(org-agenda-skip-scheduled-if-done t) '(org-agenda-start-on-weekday nil) '(org-cycle-separator-lines 1) '(org-fast-tag-selection-single-key (quote expert)) '(org-log-done (quote note)) '(org-log-states-order-reverse nil) '(org-remember-store-without-prompt t) '(org-reverse-note-order nil) '(remember-annotation-functions (quote (org-remember-annotation))) '(remember-handler-functions (quote (org-remember-handler)))) (setq org-log-done (quote note)) (setq org-log-into-drawer nil) (setq org-todo-keywords (quote ((sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!/!)") (sequence "WAITING(w@/!)" "LATER(L!)" "PROJECT(P@)" "OPEN(O@") "|" "CANCELLED(c@/!)"))) (setq org-todo-keyword-faces (quote (("TODO" :foreground "red" :weight bold= ) ("STARTED" :foreground "blue" :weight bold) ("DONE" :foreground "forest green" :weight bold) ("WAITING" :foreground "orange" :weight bold) ("LATER" :foreground "magenta" :weight bold) ("CANCELLED" :foreground "forest green" :weight bold) ("OPEN" :foreground "blue" :weight bold) ("PROJECT" :foreground "red" :weight bold)))) (setq org-todo-state-tags-triggers (quote (("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t) ("NEXT")) ("LATER" ("WAITING" . t)) (done ("NEXT") ("WAITING")) ("TODO" ("WAITING") ("CANCELLED")) ("STARTED" ("WAITING")) ("PROJECT" ("CANCELLED") ("PROJECT" . t))))) (setq org-clock-in-switch-to-state "STARTED") 2009/6/11 Carsten Dominik > This must be a problem in your setup, maybe or org-TODO-keywords, maybe > using a bad #+TODO: line in one of the agenda files. Show us you setup! > > - Carsten > > On Jun 10, 2009, at 9:12 PM, Tudor Gabriel wrote: > > I'm trying to learn org-mode. >> Each time I try to open agenda buffer, I get that error. >> >> If I can provide any additional info, please, don't hesitate to ask. >> >> Debugger entered--Lisp error: (wrong-type-argument listp "|") >> org-set-regexps-and-options() >> org-mode() >> set-auto-mode-0(org-mode nil) >> set-auto-mode() >> normal-mode(t) >> after-find-file(nil t) >> find-file-noselect-1(# "~/org/hobby.org" nil nil >> "~/org/hobby.org" (174122 2053)) >> find-file-noselect("/home/tudor/org/hobby.org") >> org-get-agenda-file-buffer("/home/tudor/org/hobby.org") >> org-prepare-agenda-buffers(("/home/tudor/org/hobby.org" >> "/home/tudor/org/tasks.org" "/home/tudor/org/ardendo.org" >> "/home/tudor/org/home.org")) >> org-prepare-agenda("Day/Week") >> org-agenda-list(nil) >> call-interactively(org-agenda-list) >> byte-code("=C6 =C7=C6=C8=C9 \"\" p =CA=CB ! =C6 @=C6 A B=C6 C D E= > >> org-agenda(nil) >> call-interactively(org-agenda nil nil) >> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > --001485f199224c358c046c0d4f35 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for your quick answer and sorry for the long dump, don't know wh= ich lines are relevant.

(require 'org-install)
(require '= remember)
(org-remember-insinuate)
(add-to-list 'auto-mode-alist = '("\\.org$" . org-mode))
(add-hook 'org-agenda-mode-hook
;; eval-after-load "org"=A0=A0 (lambda ()
=A0=A0=A0=A0 (define-prefix-command 'org-todo-st= ate-map)
=A0=A0=A0=A0 (flyspell-mode 1)
=A0=A0=A0=A0 (define-key org-= agenda-mode-map "\C-n" 'next-line)
=A0=A0=A0=A0 (define-key org-agenda-keymap "\C-n" 'next-line)=
=A0=A0=A0=A0 (define-key org-agenda-mode-map "\C-p" 'prev= ious-line)
=A0=A0=A0=A0 (define-key org-agenda-keymap "\C-p" &= #39;previous-line)))

;; Custom Key Bindings
(global-set-key (kbd "<f12>")= 'org-agenda)
(global-set-key (kbd "<f5>") 'my-o= rg-todo)
(global-set-key (kbd "<S-f5>") 'widen)
(global-set-key (kbd "<f7>") 'set-truncate-lines)
(g= lobal-set-key (kbd "<f8>") 'org-cycle-agenda-files)
= (global-set-key (kbd "<f9> b") 'bbdb)
(global-set-ke= y (kbd "<f9> c") 'calendar)
(global-set-key (kbd "<f9> f") 'boxquote-insert-file)(global-set-key (kbd "<f9> g") 'gnus)
(global-set-= key (kbd "<f9> o") 'org-occur)
(global-set-key (kbd = "<f9> r") 'boxquote-region)
(global-set-key (kbd "<f9> u") (lambda () (interactive) (un= tabify (point-min) (point-max))))
(global-set-key (kbd "<f9> = v") 'visible-mode)
(global-set-key (kbd "C-<f9>"= ;) 'previous-buffer)
(global-set-key (kbd "C-x n r") 'narrow-to-region)
(global= -set-key (kbd "C-<f10>") 'next-buffer)
(global-set-k= ey (kbd "<f11>") 'org-clock-goto)
(global-set-key (k= bd "C-s-<f12>") 'my-save-then-publish)
(global-set-key (kbd "C-M-r") 'org-remember)
(define-key m= ode-specific-map [?a] 'org-agenda)

;; Start clock if a remember = buffer includes :CLOCK-IN:
(add-hook 'remember-mode-hook 'my-sta= rt-clock-if-needed 'append)

(defun my-start-clock-if-needed ()
=A0 (save-excursion
=A0=A0=A0 = (goto-char (point-min))
=A0=A0=A0 (when (re-search-forward " *:CLOC= K-IN: *" nil t)
=A0=A0=A0=A0=A0 (replace-match "")
=A0= =A0=A0=A0=A0 (org-clock-in))))

(setq org-completion-use-ido t)
(setq org-refile-targets (quote ((or= g-agenda-files :maxlevel . 5) (nil :maxlevel . 5))))
(setq org-refile-us= e-outline-path (quote file))

(setq org-remember-clock-out-on-exit ni= l)
(setq org-clock-out-remove-zero-time-clocks t)
(setq org-agenda-clockrep= ort-parameter-plist (quote (:link nil :maxlevel 2)))
(setq org-columns-d= efault-format "%80ITEM(Task) %10Effort(Effort){:} %10CLOCKSUM") (setq org-global-properties (quote (("Effort_ALL" . "0:10 0:= 30 1:00 2:00 3:00 4:00 5:00 6:00 8:00"))))

(setq org-clock-pers= istence-insinuate)
(setq org-clock-history-length 35)
(setq org-clock= -in-resume t)
(setq org-clock-in-switch-to-state "STARTED")
(setq org-clock-= into-drawer t)
(setq org-clock-out-remove-zero-time-clocks t)
(setq o= rg-clock-out-when-done nil)
(setq org-clock-persist t)
(setq org-reme= mber-store-without-prompt t)
(setq org-remember-default-headline "Tasks")
(setq org-remembe= r-templates (quote (("todo" ?t "* TODO %?
=A0 %u
=A0 %= a" "/home/tudor/org/tasks.org&qu= ot; bottom nil)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ("note" ?n "* %?=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 :NOTE:
=A0 %u
=A0 %a" nil bott= om nil)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ("phone" ?p "*= PHONE %:name - %:company -=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 :P= HONE:
=A0 Contact Info: %a
=A0 %u
=A0 :CLOCK-IN:
=A0 %?" "/hom= e/tudor/org/phone.org" bottom nil))))=


(add-hook 'remember-mode-hook 'org-remember-apply-templ= ate)

(custom-set-variables
=A0 ;; custom-set-variables was added by Custo= m.
=A0 ;; If you edit it by hand, you could mess it up, so be careful.=A0 ;; Your init file should contain only one such instance.
=A0 ;; If= there is more than one, they won't work right.
=A0'(org-agenda-files (quote ("/home/tudor/org/hobby.org" "/home/tudor/org/tasks.org" "/home/tudor/org/ardendo.org" "/home/tudor/org/home.org")))
=A0'(org-agenda-ndays 7)
=A0'(org-agenda-show-all-dates t)
= =A0'(org-agenda-skip-deadline-if-done t)
=A0'(org-agenda-skip-sc= heduled-if-done t)
=A0'(org-agenda-start-on-weekday nil)
=A0'= (org-cycle-separator-lines 1)
=A0'(org-fast-tag-selection-single-key (quote expert))
=A0'(org-= log-done (quote note))
=A0'(org-log-states-order-reverse nil)
=A0= '(org-remember-store-without-prompt t)
=A0'(org-reverse-note-ord= er nil)
=A0'(remember-annotation-functions (quote (org-remember-annotation)))=A0'(remember-handler-functions (quote (org-remember-handler))))
<= br>(setq org-log-done (quote note))
(setq org-log-into-drawer nil)
(setq org-todo-keywords (quote ((sequence "TODO(t)" "STARTED= (s)" "|" "DONE(d!/!)")
=A0(sequence "WAITI= NG(w@/!)" "LATER(L!)" "PROJECT(P@)" "OPEN(O@&= quot;) "|" "CANCELLED(c@/!)")))

(setq org-todo-keyword-faces (quote (("TODO" :foreground &quo= t;red" :weight bold)
=A0("STARTED" :foreground "blue= " :weight bold)
=A0("DONE" :foreground "forest green= " :weight bold)
=A0("WAITING" :foreground "orange" :weight bold)
=A0= ("LATER" :foreground "magenta" :weight bold)
=A0(&qu= ot;CANCELLED" :foreground "forest green" :weight bold)
= =A0("OPEN" :foreground "blue" :weight bold)
=A0("PROJECT" :foreground "red" :weight bold))))
(setq org-todo-state-tags-triggers
=A0=A0=A0=A0=A0 (quote (("CANCE= LLED" ("CANCELLED" . t))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 ("WAITING" ("WAITING" . t) ("NEXT")= )
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ("LATER" ("WAITING&q= uot; . t))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (done ("NEXT&quo= t;) ("WAITING"))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (&quo= t;TODO" ("WAITING") ("CANCELLED"))
=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 ("STARTED" ("WAITING"))
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ("PROJECT" ("CANCELL= ED") ("PROJECT" . t)))))

(setq org-clock-in-switch-to= -state "STARTED")



2009/= 6/11 Carsten Dominik <carsten.dominik@gmail.com>
This must be a pr= oblem in your setup, maybe or org-TODO-keywords, maybe
using a bad #+TODO: line in one of the agenda files. =A0Show us you setup!<= br>
- Carsten

On Jun 10, 2009, at 9:12 PM, Tudor Gabriel wrote:

I'm trying to learn org-mode.
Each time I try to open agenda buffer, I get that error.

If I can provide any additional info, please, don't hesitate to ask.
Debugger entered--Lisp error: (wrong-type-argument listp "|")
=A0org-set-regexps-and-options()
=A0org-mode()
=A0set-auto-mode-0(org-mode nil)
=A0set-auto-mode()
=A0normal-mode(t)
=A0after-find-file(nil t)
=A0find-file-noselect-1(#<buffer hobby.org> "~/org/hobby.org" nil nil
"~/org/hobby.org&qu= ot; (174122 2053))
=A0find-file-noselect("/home/tudor/org/hobby.org")
=A0org-get-agenda-file-buffer("/home/tudor/org/hobby.org")
=A0org-prepare-agenda-buffers(("/home/tudor/org/hobby.org"
"/home/tudor/org/tasks.= org" "/home/tudor/org/ardendo.org"
"/home/tudor/org/home.or= g"))
=A0org-prepare-agenda("Day/Week")
=A0org-agenda-list(nil)
=A0call-interactively(org-agenda-list)
=A0byte-code("=C6 =A0 =A0=C7=C6=C8=C9 =A0 \"\" p =CA=CB ! = =C6 =A0@=C6 A B=C6 C D E>
=A0org-agenda(nil)
=A0call-interactively(org-agenda nil nil)



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--001485f199224c358c046c0d4f35-- --===============0171489145== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0171489145==--