From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87k2kbyg4x.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 87fuuzg7ij.fsf@gnu.org
Ian Dunn <dunni@gnu.org> 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
next prev parent reply other threads:[~2016-04-05 20:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 19:50 Bug: Agenda: Invalid Function 4 [8.3.4 (release_8.3.4-702-gcd47ab @ ~/.emacs.d/packages/org-mode/lisp/)] Ian Dunn
2016-04-05 20:06 ` Nick Dokos [this message]
2016-04-05 21:34 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2kbyg4x.fsf@alphaville.usersys.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).