branch: externals/org
commit 3e3b873d3f863e890460dd655ae7fd5f5f0b88b5
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
org-do-emphasis-faces: Make sure that 'invisible property is not sticky
* lisp/org.el (org-do-emphasis-faces): Mark invisible text property in
emphasis markers non-sticky. This is usually not a problem as we
manage invisible text property via font-lock. However subtle bugs may
exist with non-interactive calls to Elisp primitives that inherit text
properties (like `indent-to').
Reported-by: Jens Schmidt <[email protected]>
Link:
https://orgmode.org/list/[email protected]
---
lisp/org.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index 3e60bb569b..0d8b5386c6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5150,8 +5150,11 @@ stacked delimiters is N. Escaping delimiters is not
possible."
(not (org-at-comment-p)))
(add-text-properties (match-end 4) (match-beginning 5)
'(invisible t))
+ ;;
https://orgmode.org/list/[email protected]
+ (org-rear-nonsticky-at (match-beginning 5))
(add-text-properties (match-beginning 3) (match-end 3)
- '(invisible t)))
+ '(invisible t))
+ (org-rear-nonsticky-at (match-end 3)))
(throw :exit t))))))))
(defun org-emphasize (&optional char)