emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Bug: Agenda has no tasks in master [9.1.13 (release_9.1.13-738-g6731


From: Bernt Hansen
Subject: [O] 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

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 <address@hidden>
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/)



reply via email to

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