emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Alan L Tyree <alantyree@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Agenda search C-c a s
Date: Fri, 18 Jan 2013 08:39:29 -0500	[thread overview]
Message-ID: <486.1358516369@alphaville> (raw)
In-Reply-To: Message from Alan L Tyree <alantyree@gmail.com> of "Fri, 18 Jan 2013 16:07:05 +1100." <8738xzgjuu.fsf@breezy.my.home>

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

  reply	other threads:[~2013-01-18 13:39 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 [this message]
2013-01-18 19:54       ` Alan L Tyree

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=486.1358516369@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=alantyree@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).