From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Dunn Subject: 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 Message-ID: <87fuuzg7ij.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anX0C-000815-6z for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 15:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anX09-0005vC-0o for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 15:51:04 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anX08-0005v8-Tc for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 15:51:00 -0400 Received: from cpe-172-101-130-147.rochester.res.rr.com ([172.101.130.147]:51287 helo=ian.sbroc.net) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1anX08-00050R-Gs for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 15:51:00 -0400 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 http://orgmode.org/manual/Feedback.html#Feedback 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 entries." (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 25.1.50.1 (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 @ ~/.emacs.d/packages/org-mode/lisp/) current state: ============== (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-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-src-mode-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-babel-execute-safely-maybe) org-directory "~/Documents/org" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) 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) )