From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org, Aaron Ecay <aaronecay@gmail.com>
Subject: Bug: Agenda has no tasks in master [9.1.13 (release_9.1.13-738-g673165.dirty @ c:/D-Drive/bin/org-mode/lisp/)]
Date: Fri, 11 May 2018 15:40:03 -0400 [thread overview]
Message-ID: <87603urnfw.fsf@norang.ca> (raw)
Hi Aaron,
I updated to the latest master this morning and my agenda no longer has
any tasks in it.
I think this commit breaks my agenda:
commit c9dd7a6a9de34b8094ad6a419260fcc1214cc791 (HEAD)
Author: Aaron Ecay <aaronecay@gmail.com>
Date: Thu May 10 01:35:08 2018 +0100
org-agenda: one-armed .if. -> .when.
* lisp/org-agenda.el (org-agenda-mode):
(org-agenda-undo, org-agenda):
(org-agenda-get-restriction-and-command):
(org-batch-agenda-csv, org-fix-agenda-info):
(org-agenda-get-some-entry-text):
(org-agenda-prepare, org-agenda-finalize):
(org-agenda-fontify-priorities, org-agenda-entry-text-hide):
(org-agenda-list, org-agenda-ndays-to-span):
(org-search-view, org-todo-list):
(org-tags-view, org-modify-diary-entry-string):
(org-agenda-get-day-entries, org-agenda-get-progress):
(org-agenda-get-deadlines, org-prefix-category-max-length):
(org-agenda-format-item, org-agenda-fix-displayed-tags):
(org-compile-prefix-format):
(org-agenda-before-sorting-filter-function):
(org-agenda-limit-interactively, org-cmp-time):
(org-agenda-set-restriction-lock-from-agenda):
(org-agenda-get-represented-tags, org-agenda-filter-apply):
(org-agenda-filter-top-headline-apply):
(org-agenda-remove-filter, org-agenda-compute-starting-span):
(org-unhighlight, org-unhighlight-once):
(org-agenda-show-tags, org-agenda-check-no-diary):
(org-agenda-date-later-minutes, org-agenda-diary-entry-in-org-file):
(org-agenda-add-entry-to-org-agenda-diary-file):
(org-agenda-bulk-unmark, org-agenda-to-appt): Convert .if. without
.else. to .when,. or .unless. in the case of .(if (not ...)).
(org-batch-agenda-csv): Also convert while-catch to dolist.
(org-agenda-prepare): Also simplify a quasiquoted structure.
(org-agenda-entry-text-hide): Also convert a bogus .mapcar. to
.mapc..
(org-compile-prefix-format): Also convert sequential .if.s to
.cl-case..
The following hunk is NOT a one-armed if and you lost the else part
(the last - line):
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index c5f0bbd29..2f93d4b0b 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4750,13 +4750,13 @@ The prefix arg TODO-ONLY limits the search to
TODO entries."
(when (and (stringp match) (not (string-match "\\S-" match)))
(setq match nil))
(catch 'exit
- (if org-agenda-sticky
- (setq org-agenda-buffer-name
- (if (stringp match)
- (format "*Org Agenda(%s:%s)*"
- (or org-keys (or (and todo-only "M") "m"))
match)
- (format "*Org Agenda(%s)*" (or (and todo-only "M")
"m")))))
- (setq matcher (org-make-tags-matcher match))
+ ;; TODO: this code is repeated a lot...
+ (when org-agenda-sticky
+ (setq org-agenda-buffer-name
+ (if (stringp match)
+ (format "*Org Agenda(%s:%s)*"
+ (or org-keys (or (and todo-only "M") "m"))
match)
+ (format "*Org Agenda(%s)*" (or (and todo-only "M")
"m")))))
;; Prepare agendas (and `org-tag-alist-for-agenda') before
;; expanding tags within `org-make-tags-matcher'
(org-agenda-prepare (concat "TAGS " match))
When I revert this change my agenda works again.
Please fix :)
Thanks,
Bernt
Emacs : GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17
Package: Org mode version 9.1.13 (release_9.1.13-738-g673165.dirty @ c:/D-Drive/bin/org-mode/lisp/)
next reply other threads:[~2018-05-11 19:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-11 19:40 Bernt Hansen [this message]
2018-05-11 19:58 ` Bug: Agenda has no tasks in master [9.1.13 (release_9.1.13-738-g673165.dirty @ c:/D-Drive/bin/org-mode/lisp/)] Nicolas Goaziou
2018-05-11 20:55 ` Bernt Hansen
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=87603urnfw.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=aaronecay@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).