From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: 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 16:06:38 -0400 Message-ID: <87k2kbyg4x.fsf@alphaville.usersys.redhat.com> References: <87fuuzg7ij.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anXFb-0006c4-1F for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 16:06:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anXFW-00018p-1a for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 16:06:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:39705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anXFV-00017V-R1 for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 16:06:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1anXFT-0005bF-0L for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 22:06:51 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Apr 2016 22:06:50 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Apr 2016 22:06:50 +0200 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 Ian Dunn writes: > 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. I don't know if the patch is good (it probably is), but the *real* problem is what's shown by that backtrace you mentioned, so you should include the backtrace in your bug report (at least in the future). -- Nick