From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: [minor bug] Non-character input-event Date: Tue, 27 Sep 2011 11:19:29 +0200 Message-ID: <80mxdqcpge.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, When in agend buffer, pressing / for the filters, and answering with an arr= ow key generates the following error: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "Non-character input-event") read-char() (setq char (read-char)) (if char nil (message "%s by tag [%s ], [TAB], %s[/]:off, [+-]:narrow, [>= =3D= =3D=3D=3D<]:effort: " tag-chars) (setq char (read-char))) (when (me= mber char (quote (60 62 61 63))) (setq effort-op (char-to-string char)) (se= tq alist nil) (unless (equal char 63) (loop for i from 0 to 9 do (setq effo= rt-prompt (concat effort-prompt " [" (if (=3D i 9) "0" (int-to-string ...))= "]" (nth i efforts)))) (message "Effort%s: %s " effort-op effort-prompt) (= setq char (read-char)) (when (or (< char 48) (> char 57)) (error "Need 1-9,= 0 to select effort")))) (when (equal char 9) (unless (local-variable-p (quo= te org-global-tags-completion-table) (current-buffer)) (org-set-local (quot= e org-global-tags-completion-table) (org-global-tags-completion-table))) (l= et ((completion-ignore-case t)) (setq tag (org-icompleting-read "Tag: " org= -global-tags-completion-table)))) (cond ((equal char 13) (org-agenda-filter= -by-tag-show-all) (when org-agenda-auto-exclude-function (setq org-agenda-f= ilter (quote nil)) (dolist (tag (org-agenda-get-represented-tags)) (let ((m= odifier ...)) (if modifier (push modifier org-agenda-filter)))) (if (not (n= ull org-agenda-filter)) (org-agenda-filter-apply org-agenda-filter))) (setq= maybe-refresh t)) ((equal char 47) (org-agenda-filter-by-tag-show-all) (wh= en (get (quote org-agenda-filter) :preset-filter) (org-agenda-filter-apply = org-agenda-filter)) (setq maybe-refresh t)) ((or (equal char 32) (setq a (r= assoc char alist)) (and (>=3D char 48) (<=3D char 57) (setq n (if (=3D char= 48) 9 (- char 48 1)) tag (concat effort-op (nth n efforts)) a (cons tag ni= l))) (and (=3D char 63) (setq tag "?eff") a (cons tag nil)) (and tag (setq = a (cons tag nil)))) (org-agenda-filter-by-tag-show-all) (setq tag (car a)) = (setq org-agenda-filter (cons (concat (if strip "-" "+") tag) (if narrow cu= rrent nil))) (org-agenda-filter-apply org-agenda-filter) (setq maybe-refres= h t)) (t (error "Invalid tag selection character %c" char))) (when (and may= be-refresh (eq org-agenda-clockreport-mode (quote with-filter))) (org-agend= a-redo))) org-agenda-filter-by-tag(nil) call-interactively(org-agenda-filter-by-tag nil nil) --8<---------------cut here---------------end--------------->8--- Best regards, Seb --=20 Sebastien Vauban