GNU bug report logs -
#44469
27.1; Fontlock markup disappers when visual line is active
Previous Next
Reported by: YH Tan <astyh83 <at> gmail.com>
Date: Thu, 5 Nov 2020 15:10:01 UTC
Severity: normal
Found in version 27.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 44469 <at> debbugs.gnu.org (full text, mbox):
> From: YH Tan <astyh83 <at> gmail.com>
> Date: Thu, 5 Nov 2020 16:19:18 +0800
>
> I have the following setting in my `.emacs.d` folder.
>
> ```
> (defface org-commentary
> '((t :foreground "tan1"))
> "Face for commentary text in org mode")
>
> (defface org-commentary-delimiter
> '((t :foreground "tan4"))
> "Face for commentary text delimiter in org mode")
>
> (defun org-add-my-extra-markup ()
> (add-to-list 'org-font-lock-extra-keywords
> `(,(rx (group "{{")
> (group (+? anything))
> (group "}}"))
> (1 '(face org-commentary-delimiter)) ;; use '(face default invisible t) to make invisible
> (2 '(face org-commentary))
> (3 '(face org-commentary-delimiter)))))
>
> (add-hook 'org-font-lock-set-keywords-hook #'org-add-my-extra-markup)
> ```
>
> As can be seen in the sample org document below, syntax highlighting is
> unstable for the Chinese text - color disappers when the visual line is
> selected.
Could be bug#43363. Can you try the latest emacs-27 branch of the
Emacs Git repository?
This bug report was last modified 4 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.