From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: org-agenda-query-and-cmd results in (wrong-type-argument char-or-string-p nil) when org-agenda-query-string is unset [6.33trans (release_6.33c.27.g1bb0d)]
Date: Thu, 19 Nov 2009 18:17:15 -0500 [thread overview]
Message-ID: <9617.1258672635@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Friedrich Delgado Friedrichs <friedel@nomaden.org> of "Thu, 19 Nov 2009 23:59:43 +0100." <20091119225943.GA4159@taupan.ath.cx>
Friedrich Delgado Friedrichs <friedel@nomaden.org> wrote:
> Hiho!
>
> I can't use the '/' command from the agenda.
>
> Here's a backtrace:
>
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
> insert("Query: " nil "\n")
> (save-window-excursion (if expert (set-buffer ...) (delete-other-windows) (split-window-vertically) (org-switch-to-buffer-other-window ...)) (erase-buffer) (org-set-local (quote org-done-keywords) done-keywords) (insert "Query: " current "\n") (org-agenda-query-op-line op) (insert "\n\n") (org-fast-tag-show-exit exit-after-next) (setq tbl fulltable char 97 cnt 0) (while (setq e ...) (cond ... ... ...)) (setq ntable (nreverse ntable)) (insert "\n") (goto-char (point-min)) (if (and ... ...) (fit-window-to-buffer)) (setq rtn (catch ... ...)) (if rtn current nil))
> (let* ((fulltable ...) (maxlen ...) (fwidth ...) (ncol ...) (expert ...) (exit-after-next org-agenda-query-selection-single-key) (done-keywords org-done-keywords) tbl char cnt e groups ingroup tg c2 c c1 ntable rtn) (save-window-excursion (if expert ... ... ... ...) (erase-buffer) (org-set-local ... done-keywords) (insert "Query: " current "\n") (org-agenda-query-op-line op) (insert "\n\n") (org-fast-tag-show-exit exit-after-next) (setq tbl fulltable char 97 cnt 0) (while ... ...) (setq ntable ...) (insert "\n") (goto-char ...) (if ... ...) (setq rtn ...) (if rtn current nil)))
> org-agenda-query-selection(nil "+" nil (("REMINDER" . 114) ("DONE" . 107) ("CANCELLED" . 99) ("DOING" . 100) ("TODO" . 116)))
> (let ((q ...)) (when q (setq org-agenda-query-string q) (org-agenda-redo)))
> org-agenda-query-generic-cmd("+")
> org-agenda-query-and-cmd()
> call-interactively(org-agenda-query-and-cmd nil nil)
>
> Not sure what's wrong here, because it looks like this works for other
> people.
>
Perhaps that's because you are loading contrib/lisp/org-interactive-query.el,
which redefines keys in the agenda mode map:
(org-defkey org-agenda-mode-map "=" 'org-agenda-query-clear-cmd)
(org-defkey org-agenda-mode-map "/" 'org-agenda-query-and-cmd)
(org-defkey org-agenda-mode-map ";" 'org-agenda-query-or-cmd)
(org-defkey org-agenda-mode-map "\\" 'org-agenda-query-not-cmd)
HTH,
Nick
next prev parent reply other threads:[~2009-11-19 23:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-19 22:59 Bug: org-agenda-query-and-cmd results in (wrong-type-argument char-or-string-p nil) when org-agenda-query-string is unset [6.33trans (release_6.33c.27.g1bb0d)] Friedrich Delgado Friedrichs
[not found] ` <friedel@nomaden.org>
2009-11-19 23:17 ` Nick Dokos [this message]
2009-11-20 11:00 ` Friedrich Delgado Friedrichs
2010-07-15 22:39 ` Patchwork: Patch 138 Accepted Nick Dokos
2010-07-16 9:45 ` Friedrich Delgado
-- strict thread matches above, loose matches on Subject: below --
2010-07-15 17:54 [PATCH] Correct some docstrings [part 2] Philip Rooke
2010-07-15 18:27 ` Patchwork: Patch 138 Accepted Carsten Dominik
2010-07-15 21:28 ` Friedrich Delgado
2010-07-16 12:03 ` Carsten Dominik
2010-07-16 13:44 ` Friedrich Delgado
2010-07-16 15:22 ` Samuel Wales
2010-07-21 12:50 ` Carsten Dominik
2010-07-15 18:28 ` [PATCH] Correct some docstrings [part 2] Carsten Dominik
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=9617.1258672635@alphaville.usa.hp.com \
--to=nicholas.dokos@hp.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).