From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: Re: Agenda search C-c a s Date: Sat, 19 Jan 2013 06:54:56 +1100 Message-ID: <878v7qclm7.fsf@breezy.my.home> References: <50F89212.7010207@gmail.com>, , <8738xzgjuu.fsf@breezy.my.home>, <486.1358516369@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwI1k-0000gS-RF for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 14:55:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwI1h-0007g7-JT for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 14:55:00 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:54460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwI1h-0007fh-CN for emacs-orgmode@gnu.org; Fri, 18 Jan 2013 14:54:57 -0500 Received: by mail-pa0-f46.google.com with SMTP id kp14so921815pab.33 for ; Fri, 18 Jan 2013 11:54:56 -0800 (PST) In-reply-to: <486.1358516369@alphaville> 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: nicholas.dokos@hp.com Cc: orgmode Nick Dokos writes: > Alan L Tyree wrote: > >> Emacs version 24.2.1 on Debian Wheezy (with emacs24 from Sid) >> Org org-plus-contrib-20130114 >> >> I started emacs with the min org file as explained in Section 1.4 >> >> C-U M-X org-reload >> >> Loaded an agenda file addr.org and added to agenda >> >> M-x agenda >> >> s >> >> Enter a search term in the minibuffer that I know is in addr.org >> >> Obtain the following backtrace: >> >> Debugger entered--Lisp error: (wrong-type-argument listp t) >> memq(todo t) >> (or (eq org-agenda-show-inherited-tags (quote always)) (memq (quote >> todo) org-agenda-show-inherited-tags) (and (eq >> org-agenda-show-inherited-tags t) (or (eq >> org-agenda-use-tag-inheritance t) (memq (quote todo) >> org-agenda-use-tag-inheritance)))) >> (setq marker (org-agenda-new-marker (point)) category >> (org-get-category) category-pos (get-text-property (point) (quote >> org-category-position)) inherited-tags (or (eq >> org-agenda-show-inherited-tags (quote always)) (memq (quote todo) >> org-agenda-show-inherited-tags) (and (eq >> org-agenda-show-inherited-tags t) (or (eq >> org-agenda-use-tag-inheritance t) (memq (quote todo) >> org-agenda-use-tag-inheritance)))) tags (org-get-tags-at nil (not >> inherited-tags)) txt (org-agenda-format-item "" >> (buffer-substring-no-properties beg1 (point-at-eol)) category tags >> t)) > > In my version of org: > > Org-mode version 7.9.3d (release_7.9.3d-826-gbe0d87.dirty @ /home/nick/elisp/org-mode/lisp/) > > the code (in org-agenda.el:org-search-view, around line 4523) looks like this: > > ,---- > | (or (eq org-agenda-show-inherited-tags 'always) > | (and (listp org-agenda-show-inherited-tags) > | (memq 'todo org-agenda-show-inherited-tags)) > | (and (eq org-agenda-show-inherited-tags t) > | (or (eq org-agenda-use-tag-inheritance t) > | (memq 'todo org-agenda-use-tag-inheritance)))) > `---- > > whereas your backtrace shows that your version is missing the (listp > org-agenda-show-inherited-tags) check. > > I believe commit 3c4df588 fixed this bug, so you will need to upgrade. > Or you can work around it by setting org-agenda-show-inherited-tags > to a list as described in the variable's documentation. > > Nick Thanks very much Nick. Maybe I'll move to the git version. Cheers, Alan -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172385@iptel.org