From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: org-remember bug? Date: Fri, 30 Oct 2009 18:18:26 +0000 Message-ID: <20091030181826.GA21587@atlantic.linksys.moosehall> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3w3Y-0007ZT-I6 for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 14:18:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3w3S-0007RV-Lw for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 14:18:35 -0400 Received: from [199.232.76.173] (port=50025 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3w3S-0007RF-92 for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 14:18:30 -0400 Received: from arctic.adamspiers.org ([212.13.194.176]:39261) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3w3R-0007O6-Np for emacs-orgmode@gnu.org; Fri, 30 Oct 2009 14:18:30 -0400 Received: from localhost (dsl-217-155-199-114.zen.co.uk [217.155.199.114]) by arctic.adamspiers.org (Postfix) with ESMTP id 9B0292414F for ; Fri, 30 Oct 2009 18:18:27 +0000 (UTC) Content-Disposition: inline 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: org-mode mailing list Hi all, With commit 79bcdbe73667be7ad811c1f2facd419cbef90426 of http://repo.or.cz/r/org-mode.git, remember 2.0, and a value of org-remember-templates similar to the following (I removed some entries which work): (("Procrastination" 80 "* [#B] %T %^{activity}\n :PROPERTIES:\n :thoughts= /feelings: %^{thoughts/feelings}\n :justification: %^{justification}\n :a= ttempted solution: %^{attempted solution}\n :resultant thoughts/feelings: = %^{resultant thoughts/feelings}\n :END:" "~/roaming/notes/Procrastination.= log" bottom nil)) I get this error when I hit C-c C-c in the *Remember* buffer: Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) insert(nil) (cond ((not ...) (if ... ... ... ...) (insert text-before-node-creation) = (when remember-save-after-remembering ... ...) (throw ... t)) ((eq heading = =2E..) (goto-char ...) (or ... ...) (setq org-goto-start-pos ...)) ((eq hea= ding ...) (goto-char ...) (or ... ...) (setq org-goto-start-pos ...)) ((and= ... ...) (goto-char ...) (if ... ... ...)) (t (goto-char ...) (setq org-go= to-start-pos ... heading ...))) (progn (cond (... ... ... ... ...) (... ... ... ...) (... ... ... ...) (.= =2E. ... ...) (t ... ...))) (if heading (progn (cond ... ... ... ... ...))) (when heading (cond (... ... ... ... ...) (... ... ... ...) (... ... ... = =2E..) (... ... ...) (t ... ...))) (save-restriction (widen) (setq reversed (org-notes-order-reversed-p)) (w= hen heading (cond ... ... ... ... ...)) (cond (... ...) (fastp ...) (... ..= =2E) (... ...) (t ...)) (if (not spos) (throw ... nil)) (and visitp (run-wi= th-idle-timer 0.01 nil ...)) (goto-char spos) (cond (... ... ... ...) (... = =2E.. ... ... ...) (... ...) (... ...) (t ... ... ... ...)) (when remember-= save-after-remembering (save-buffer) (if ... ...)) (when org-remember-auto-= remove-backup-files (when backup-file ...) (when org-remember-backup-direct= ory ...))) (save-excursion (save-restriction (widen) (setq reversed ...) (when headi= ng ...) (cond ... ... ... ... ...) (if ... ...) (and visitp ...) (goto-char= spos) (cond ... ... ... ... ...) (when remember-save-after-remembering ...= ...) (when org-remember-auto-remove-backup-files ... ...))) (save-current-buffer (set-buffer (or visiting ...)) (unless (or ... ...) = (error "Target files for notes must be in Org-mode if not filing to top/bot= tom")) (save-excursion (save-restriction ... ... ... ... ... ... ... ... ..= =2E ...))) (with-current-buffer (or visiting (find-file-noselect file)) (unless (or = =2E.. ...) (error "Target files for notes must be in Org-mode if not filing= to top/bottom")) (save-excursion (save-restriction ... ... ... ... ... ...= ... ... ... ...))) (let* ((visitp ...) (backup-file ...) (dummy ...) (previousp ...) (clockp= ...) (fastp ...) (file ...) (heading org-remember-default-headline) (visit= ing ...) (org-startup-folded nil) (org-startup-align-all-tables nil) (org-g= oto-start-pos 1) spos exitcmd level reversed txt text-before-node-creation)= (when (equal current-prefix-arg ...) (setq visitp t)) (when previousp (set= q file ... visiting ... heading ... fastp t)) (when clockp (setq file ... v= isiting ... heading org-clock-heading-for-remember fastp t)) (setq current-= prefix-arg nil) (when org-remember-delete-empty-lines-at-end (goto-char ...= ) (if ... ...)) (goto-char (point-min)) (unless (looking-at org-outline-reg= exp) (setq text-before-node-creation ...) (insert ...) (backward-char 1) (w= hen org-adapt-indentation ...)) (when org-remember-delete-empty-lines-at-en= d (goto-char ...) (if ... ... ...)) (goto-char (point-min)) (setq txt (buff= er-string)) (org-save-markers-in-region (point-min) (point-max)) (set-buffe= r-modified-p nil) (when (and ... ...) (org-refile nil ...) (and visitp ...)= (save-excursion ... ... ...) (throw ... t)) (with-current-buffer (or visit= ing ...) (unless ... ...) (save-excursion ...))) (catch (quote quit) (if org-note-abort (throw ... t)) (let* (... ... ... = =2E.. ... ... ... ... ... ... ... ... spos exitcmd level reversed txt text-= before-node-creation) (when ... ...) (when previousp ...) (when clockp ...)= (setq current-prefix-arg nil) (when org-remember-delete-empty-lines-at-end= ... ...) (goto-char ...) (unless ... ... ... ... ...) (when org-remember-d= elete-empty-lines-at-end ... ...) (goto-char ...) (setq txt ...) (org-save-= markers-in-region ... ...) (set-buffer-modified-p nil) (when ... ... ... ..= =2E ...) (with-current-buffer ... ... ...))) org-remember-handler() run-hook-with-args-until-success(org-remember-handler) remember-region(1 179) remember-finalize() org-remember-finalize() call-interactively(org-remember-finalize nil nil) I tried to debug but got lost in a maze of code I didn't understand. Any ideas? Thanks! Adam