[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org fa198cbbe4: org-agenda-search-headline-for-time: Ig
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org fa198cbbe4: org-agenda-search-headline-for-time: Ignore all the timestamps in headings |
Date: |
Sat, 6 Jan 2024 09:58:40 -0500 (EST) |
branch: externals/org
commit fa198cbbe4c98698ff7d683aed2b947aeea6544a
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-agenda-search-headline-for-time: Ignore all the timestamps in headings
* lisp/org-agenda.el (org-agenda-format-item): When
`org-agenda-search-headline-for-time' is non-nil, exclude timestamps
in headings from searching the time.
(org-agenda-search-headline-for-time): Remove warning about timestamps
in headings from the docstring.
* etc/ORG-NEWS (~org-agenda-search-headline-for-time~ now ignores all
the timestamp in headings): Announce the change.
Reported-by: rameiko87@posteo.net
Link: https://orgmode.org/list/dc5c0aa3748f5d7ad8b79bea674266e7@posteo.net
---
etc/ORG-NEWS | 8 ++++++++
lisp/org-agenda.el | 13 ++++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index a44872559c..2f12f3e691 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -13,6 +13,14 @@ Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
* Version 9.7 (not released yet)
** Important announcements and breaking changes
+*** ~org-agenda-search-headline-for-time~ now ignores all the timestamp in
headings
+
+Previously, ~org-agenda-search-headline-for-time~ made Org agenda
+match anything resembling time inside headings. Even when the time
+was a part of a timestamp.
+
+Now, all the timestamps in headings are ignored when searching the time.
+
*** ODT export no longer opens the exported file in the background
ODT exporter used to open the exported file in ~archive-mode~ "for
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 2dcaef7231..f0e270d7a3 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1537,10 +1537,7 @@ value, don't limit agenda view by outline level."
"Non-nil means search headline for a time-of-day.
If the headline contains a time-of-day in one format or another, it will
be used to sort the entry into the time sequence of items for a day.
-Some people have time stamps in the headline that refer to the creation
-time or so, and then this produces an unwanted side effect. If this is
-the case for your, use this variable to turn off searching the headline
-for a time."
+Timestamps in the headline will be ignored."
:group 'org-agenda-time-grid
:type 'boolean)
@@ -6967,7 +6964,13 @@ Any match of REMOVE-RE will be removed from TXT."
time
(ts (when dotime (concat
(if (stringp dotime) dotime "")
- (and org-agenda-search-headline-for-time txt))))
+ (and org-agenda-search-headline-for-time
+ ;; Do not search inside
+ ;; timestamps. They are handled
+ ;; separately.
+ (replace-regexp-in-string
+ org-ts-regexp-both ""
+ txt)))))
(time-of-day (and dotime (org-get-time-of-day ts)))
stamp plain s0 s1 s2 rtn srp l
duration breadcrumbs)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org fa198cbbe4: org-agenda-search-headline-for-time: Ignore all the timestamps in headings,
ELPA Syncer <=