[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 32b9251 5/5: Parse titleless headlines with a tag c
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 32b9251 5/5: Parse titleless headlines with a tag correctly |
Date: |
Wed, 29 Sep 2021 07:57:22 -0400 (EDT) |
branch: externals/org
commit 32b92518861291d57d6222e321bce7dee1430730
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Bastien <bzg@gnu.org>
Parse titleless headlines with a tag correctly
* lisp/org-element.el (org-element-headline-parser): Do not treat tag
as headline title in headlines like "* :tag:".
---
lisp/org-element.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 2dfbaea..1c971b2 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -1021,7 +1021,10 @@ Assume point is at beginning of the headline."
(commentedp
(and (let (case-fold-search) (looking-at org-comment-string))
(goto-char (match-end 0))))
- (title-start (point))
+ (title-start (prog1 (point)
+ (unless (or todo priority commentedp)
+ ;; Headline like "* :tag:"
+ (skip-syntax-backward " \t"))))
(tags (when (re-search-forward
"[ \t]+\\(:[[:alnum:]_@#%:]+:\\)[ \t]*$"
(line-end-position)
- [elpa] externals/org updated (8db21e6 -> 32b9251), ELPA Syncer, 2021/09/29
- [elpa] externals/org 33799db 2/5: doc/org-manual.org: End sentences with two spaces, fix indentation, ELPA Syncer, 2021/09/29
- [elpa] externals/org 31929f5 4/5: Merge branch 'bugfix', ELPA Syncer, 2021/09/29
- [elpa] externals/org cb408a5 3/5: etc/ORG-NEWS: Remove a spurious phrase, ELPA Syncer, 2021/09/29
- [elpa] externals/org 6dcddb1 1/5: doc/org-manual.org: Fix Shakespeare's sonnet, ELPA Syncer, 2021/09/29
- [elpa] externals/org 32b9251 5/5: Parse titleless headlines with a tag correctly,
ELPA Syncer <=