fixup! org-do-emphasis-faces: Make sure that 'invisible property is not sticky

This commit is contained in:
Ihor Radchenko 2023-07-19 10:05:30 +03:00
parent 3e3b873d3f
commit 724135ddaf
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 8 additions and 1 deletions

View File

@ -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)