From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos 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 Message-ID: <9617.1258672635@alphaville.usa.hp.com> References: <20091119225943.GA4159@taupan.ath.cx> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBGGG-0004rU-5i for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 18:18:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBGGA-0004oW-Je for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 18:17:58 -0500 Received: from [199.232.76.173] (port=55782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBGGA-0004oT-B4 for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 18:17:54 -0500 Received: from g4t0016.houston.hp.com ([15.201.24.19]:7491) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBGGA-0000p1-1x for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 18:17:54 -0500 Received: from smtp2.fc.hp.com (smtp2.fc.hp.com [15.11.136.114]) by g4t0016.houston.hp.com (Postfix) with ESMTP id D860A1401C for ; Thu, 19 Nov 2009 23:16:22 +0000 (UTC) In-Reply-To: Message from Friedrich Delgado Friedrichs of "Thu, 19 Nov 2009 23:59:43 +0100." <20091119225943.GA4159@taupan.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Friedrich Delgado Friedrichs 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