summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Porter <adam@alphapapa.net>2018-08-31 19:16:44 -0500
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-09-02 14:28:45 +0200
commit83fa313cf8becdff277617ccf778f168eef1f522 (patch)
tree4f06d2779c0e21bd86a63fed49f533a563e99f31
parentcbb7be9c2561b0fdf3f72938e819fb4fe0e3bc00 (diff)
downloadorg-mode-83fa313cf8becdff277617ccf778f168eef1f522.tar.gz
Fix logbook list bullets with 2+ spaces
* lisp/org-agenda.el (org-agenda-get-progress): Accept multiple spaces between the list bullet and "State" in the state-change regexp. Previously, logbook list entries with more than one space between the bullet and the beginning of the entry would be ignored. I.e., if a bullet is defined in org-list-two-spaces-after-bullet-regexp, two spaces will be inserted after the bullet, and that prevents state-changed entries from appearing in the Agenda Log Mode view.
-rw-r--r--lisp/org-agenda.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index eaeddb6..a60fb60 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5733,7 +5733,7 @@ then those holidays will be skipped."
(when (memq 'closed items) (concat "\\<" org-closed-string))
(when (memq 'clock items) (concat "\\<" org-clock-string))
(when (memq 'state items)
- (format "- State \"%s\".*?" org-todo-regexp)))))
+ (format "- +State \"%s\".*?" org-todo-regexp)))))
(parts-re (if parts (mapconcat 'identity parts "\\|")
(error "`org-agenda-log-mode-items' is empty")))
(regexp (concat