branch: externals/org commit 724135ddafa43fd48e762efd7c4502f84f24fea1 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@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)