[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 724135ddaf 1/2: fixup! org-do-emphasis-faces: Make
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 724135ddaf 1/2: fixup! org-do-emphasis-faces: Make sure that 'invisible property is not sticky |
Date: |
Wed, 19 Jul 2023 03:58:45 -0400 (EDT) |
branch: externals/org
commit 724135ddafa43fd48e762efd7c4502f84f24fea1
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
fixup! org-do-emphasis-faces: Make sure that 'invisible property is not
sticky
---
lisp/org.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index 0d8b5386c6..7da82a1f64 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5154,7 +5154,14 @@ stacked delimiters is N. Escaping delimiters is not
possible."
(org-rear-nonsticky-at (match-beginning 5))
(add-text-properties (match-beginning 3) (match-end 3)
'(invisible t))
- (org-rear-nonsticky-at (match-end 3)))
+ ;; FIXME: This would break current behavior with point
+ ;; being adjusted before hidden emphasis marker when
+ ;; using M-b. A proper fix would require custom
+ ;; syntax function that will mark emphasis markers as
+ ;; word constituents where appropriate.
+ ;; https://orgmode.org/list/87edl41jf0.fsf@localhost
+ ;; (org-rear-nonsticky-at (match-end 3))
+ )
(throw :exit t))))))))
(defun org-emphasize (&optional char)