From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: [bug] org-agenda-diary-entry fails on redisplay of the agenda Date: Sun, 30 Sep 2012 19:24:35 +0930 Message-ID: <87ipavbztw.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIGEh-0003vH-Ta for emacs-orgmode@gnu.org; Sun, 30 Sep 2012 05:54:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIGEg-0001Dl-Q6 for emacs-orgmode@gnu.org; Sun, 30 Sep 2012 05:54:55 -0400 Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:58306 helo=va3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIGEg-0001At-Mc for emacs-orgmode@gnu.org; Sun, 30 Sep 2012 05:54:54 -0400 Received: from mail209-va3 (localhost [127.0.0.1]) by mail209-va3-R.bigfish.com (Postfix) with ESMTP id 7AC5D6400CC for ; Sun, 30 Sep 2012 09:54:47 +0000 (UTC) Received: from VA3EHSMHS003.bigfish.com (unknown [10.7.14.254]) by mail209-va3.bigfish.com (Postfix) with ESMTP id 29E63C8007D for ; Sun, 30 Sep 2012 09:54:45 +0000 (UTC) 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 Hello, sometime in the past few weeks, something has changed that has led to problems inserting items in my diary from the agenda view, using "i d" (org-agenda-diary-entry). The traceback is --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument sequencep t) mapcar((lambda (tg) (if (or (and hide-re (string-match hide-re tg)) (and (not add-inherited) (get-text-property 0 (quote inherited) tg))) nil tg)) t) (delq nil (mapcar (function (lambda (tg) (if (or (and hide-re (string-match hide-re tg)) (and (not add-inherited) (get-text-property 0 ... tg))) nil tg))) tags)) (setq tags (delq nil (mapcar (function (lambda (tg) (if (or (and hide-re ...) (and ... ...)) nil tg))) tags))) (progn (if (string-match "\\([ ]+\\)\\(:[[:alnum:]_@#%:]+:\\)[ ]*$" txt) (setq txt (substring txt 0 (match-beginning 0)))) (setq tags (delq nil (mapcar (function (lambda (tg) (if (or ... ...) nil tg))) tags))) (if tags (progn (let ((have-i (get-text-property 0 (quote inherited) (car tags))) i) (setq txt (concat txt " :" (mapconcat (function ...) tags ":") (if have-i "::" ":"))))))) (if (or add-inherited hide-re) (progn (if (string-match "\\([ ]+\\)\\(:[[:alnum:]_@#%:]+:\\)[ ]*$" txt) (setq txt (substring txt 0 (match-beginning 0)))) (setq tags (delq nil (mapcar (function (lambda (tg) (if ... nil tg))) tags))) (if tags (progn (let ((have-i (get-text-property 0 ... ...)) i) (setq txt (concat txt " :" (mapconcat ... tags ":") (if have-i "::" ":")))))))) org-agenda-fix-displayed-tags(#("test 3" 0 6 (org-heading t)) t t nil) (setq txt (org-agenda-fix-displayed-tags txt tags org-agenda-show-inherited-tags org-agenda-hide-tags-regexp)) ... org-agenda-format-item(nil #("test 3" 0 6 (org-heading t)) nil nil t) org-agenda-add-entry-to-org-agenda-diary-file(day #("test 3" 0 6 (org-heading t)) (9 30 2012)) ... org-agenda-diary-entry-in-org-file() ... org-agenda-diary-entry() call-interactively(org-agenda-diary-entry nil nil) --8<---------------cut here---------------end--------------->8--- I've cut out some of the lines. I cannot reproduce this with a minimal emacs so there is something in my configuration that is causing the problem, I guess. I should note that I have set org-agenda-diary-file to point to an org file instead of the default Emacs diary file and that file is based on a date-tree layout. The actual entry does get inserted in the diary; it is the redisplay of the agenda that fails. Inserting into this diary has worked for yonks. >From vc-annotate, I can see that some lines near where the error occurs were changed in the past month with commit 8365b738. However, these don't appear to be anything relevant; not that I can really say this with any certainty, mind you :(. Further searching doesn't highlight anything obvious either. Any advice or help would be welcome! Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.2.50.1 and Org release_7.9.1-452-g7d8a0c