[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Agenda: Invalid Function 4 [8.3.4 (release_8.3.4-702-gcd47ab @

From: Ian Dunn
Subject: [O] Bug: Agenda: Invalid Function 4 [8.3.4 (release_8.3.4-702-gcd47ab @ ~/.emacs.d/packages/org-mode/lisp/)]
Date: Tue, 05 Apr 2016 15:50:12 -0400

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See


Your bug report will be posted to the Org-mode mailing list.

        For some time now, I've been noticing that org-agenda-redo (the
'g' key in the Agenda buffer, since it isn't *exactly* the same) often
fails with the error "Invalid Function 4".  I looked into this, and
discovered that it only happened when I used a tag view list with only
TODO items.  A backtrace showed that the issue was the redo command, and
I believe I have solved the problem with the following patch:

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e9f3505..2f7241b 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4852,7 +4852,7 @@ The prefix arg TODO-ONLY limits the search to TODO 
       (setq org-agenda-query-string match)
       (setq org-agenda-redo-command
            (list 'org-tags-view
-                 org--matcher-tags-todo-only
+                 (list 'quote org--matcher-tags-todo-only)
                  `(if current-prefix-arg nil ,org-agenda-query-string)))
       (setq files (org-agenda-files nil 'ifmode)
            rtnall nil)

If my patch doesn't work, I at least hope it helps everyone figure out
the real problem.

Thank you for your time.

Ian Dunn

Emacs  : GNU Emacs (x86_64-unknown-linux-gnu, GTK+ Version 3.14.13)
 of 2016-04-04
Package: Org-mode version 8.3.4 (release_8.3.4-702-gcd47ab @ 

current state:
 org-tab-first-hook '(org-hide-block-toggle-maybe 
 org-speed-command-hook '(org-speed-command-default-hook 
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
 org-directory "~/Documents/org"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]