[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern bb048dcbca: org-modern-timestamp: Do not hig
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern bb048dcbca: org-modern-timestamp: Do not highlight dates in links |
Date: |
Sat, 14 Sep 2024 18:58:46 -0400 (EDT) |
branch: externals/org-modern
commit bb048dcbcaae19762f0c1097d27027695512fb7b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
org-modern-timestamp: Do not highlight dates in links
---
org-modern.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index 26673b3f02..ebeee2aba5 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -486,7 +486,7 @@ the font.")
(defun org-modern--timestamp ()
"Prettify timestamps."
- (let* ((beg (match-beginning 0))
+ (let* ((beg (1- (match-beginning 1)))
(end (match-end 0))
(tbeg (match-beginning 2))
(tend (match-end 2))
@@ -787,7 +787,7 @@ whole buffer; otherwise, for the line at point."
((pred stringp) `(1 '(face nil display ,org-modern-keyword)))
(_ '(0 (org-modern--keyword)))))))
(when org-modern-timestamp
- '(("\\(?:<\\|\\[\\)\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\(?:
[[:word:]]+\\.?\\)?\\(?: [.+-]+[0-9ymwdh/]+\\)*\\)\\(\\(?: [0-9:-]+\\)?\\(?:
[.+-]+[0-9ymwdh/]+\\)*\\)\\(?:>\\|\\]\\)"
+
'(("\\(?:<\\|^\\[\\|[^]]\\[\\)\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\(?:
[[:word:]]+\\.?\\)?\\(?: [.+-]+[0-9ymwdh/]+\\)*\\)\\(\\(?: [0-9:-]+\\)?\\(?:
[.+-]+[0-9ymwdh/]+\\)*\\)\\(?:>\\|\\]\\)"
(0 (org-modern--timestamp)))
("<[^>]+>\\(-\\)\\(-\\)<[^>]+>\\|\\[[^]]+\\]\\(?1:-\\)\\(?2:-\\)\\[[^]]+\\]"
(1 '(face org-modern-label display #(" " 1 2 (face (:strike-through
t) cursor t))) t)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org-modern bb048dcbca: org-modern-timestamp: Do not highlight dates in links,
ELPA Syncer <=