emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan L Tyree <alantyree@gmail.com>
To: nicholas.dokos@hp.com
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Agenda search C-c a s
Date: Sat, 19 Jan 2013 06:54:56 +1100	[thread overview]
Message-ID: <878v7qclm7.fsf@breezy.my.home> (raw)
In-Reply-To: <486.1358516369@alphaville>


Nick Dokos writes:

> Alan L Tyree <alantyree@gmail.com> 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

      reply	other threads:[~2013-01-18 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18  0:06 Agenda search C-c a s Alan L Tyree
2013-01-18  4:07 ` Nick Dokos
2013-01-18  5:07   ` Alan L Tyree
2013-01-18 13:39     ` Nick Dokos
2013-01-18 19:54       ` Alan L Tyree [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878v7qclm7.fsf@breezy.my.home \
    --to=alantyree@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).