From: Eli Zaretskii <eliz@gnu.org>
To: YH Tan <astyh83@gmail.com>
Cc: 44469@debbugs.gnu.org
Subject: bug#44469: 27.1; Fontlock markup disappers when visual line is active
Date: Thu, 05 Nov 2020 17:45:08 +0200 [thread overview]
Message-ID: <83tuu3ajuj.fsf@gnu.org> (raw)
In-Reply-To: <D013E5E1-11BE-4665-989A-73B7D3F4E757@gmail.com> (message from YH Tan on Thu, 5 Nov 2020 16:19:18 +0800)
> From: YH Tan <astyh83@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?
next prev parent reply other threads:[~2020-11-05 15:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 8:19 bug#44469: 27.1; Fontlock markup disappers when visual line is active YH Tan
2020-11-05 15:45 ` Eli Zaretskii [this message]
[not found] ` <E1C2DB7A-BB07-458A-BC31-9BB6EA4535C4@gmail.com>
[not found] ` <83o8kbah7b.fsf@gnu.org>
[not found] ` <72167C73-58C0-43FD-B206-BB6BA354AD18@gmail.com>
2020-11-05 17:53 ` Eli Zaretskii
[not found] ` <912592A2-07BB-4D26-BFAB-2DB3EDA6E9BD@gmail.com>
2020-11-06 14:11 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83tuu3ajuj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=44469@debbugs.gnu.org \
--cc=astyh83@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).