all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.
@ 2023-01-23 21:58 Philipp Kiefer
  2023-01-24  3:52 ` Ruijie Yu via General discussions about Org-mode.
  2023-01-24 11:34 ` Ihor Radchenko
  0 siblings, 2 replies; 17+ messages in thread
From: Philipp Kiefer @ 2023-01-23 21:58 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

Org mode version 9.6.1, GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)

Please see the two screenshots here for illustration:

https://imgur.com/a/7EuUi0J <https://imgur.com/a/7EuUi0J>

(I'm assuming it's not a good idea - or not even possible - to send 
e-mail attachments to the list?)

This is the relevant code from my init.el that seems to be causing this 
issue:

(require 'org-habit nil t) ; relevant?
(defun org-add-my-extra-fonts ()
   "Add alert and overdue fonts."
   (add-to-list 'org-font-lock-extra-keywords 
'("\\(³\\)\\([^\n\r\t]+\\)\\(³\\)" (1 '(face org-habit-alert-face 
invisible nil)) (2 'org-habit-alert-face t) (3 '(face 
org-habit-alert-face invisible nil))) t)
   (add-to-list 'org-font-lock-extra-keywords 
'("\\(§\\)\\([^\n\r\t]+\\)\\(§\\)" (1 '(face org-habit-overdue-face 
invisible nil)) (2 'org-habit-overdue-face t) (3 '(face 
org-habit-overdue-face invisible nil))) t)
   (add-to-list 'org-font-lock-extra-keywords 
'("\\(@\\)\\([^\n\r\t]+\\)\\(@\\)" (1 '(face org-habit-clear-face 
invisible nil)) (2 'org-habit-clear-face t) (3 '(face 
org-habit-clear-face invisible nil))) t))
(add-hook 'org-font-lock-set-keywords-hook #'org-add-my-extra-fonts)

Can you reproduce it?

Thanks!

[-- Attachment #2: Type: text/html, Size: 1982 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-02-18 22:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-23 21:58 [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded Philipp Kiefer
2023-01-24  3:52 ` Ruijie Yu via General discussions about Org-mode.
2023-01-24 11:36   ` Ihor Radchenko
2023-01-24 14:13   ` Philipp Kiefer
2023-01-24 11:34 ` Ihor Radchenko
2023-01-24 17:37   ` Philipp Kiefer
2023-01-24 17:56     ` Ihor Radchenko
2023-01-25 10:37       ` Philipp Kiefer
2023-01-24 18:07     ` Ihor Radchenko
     [not found]       ` <29a87ef7-c094-8885-6ae6-2548563c7583@gmail.com>
     [not found]         ` <78025786-639a-9ddd-bd7c-400f5e84da53@gmail.com>
     [not found]           ` <87y1ppwt9v.fsf@localhost>
2023-02-16 21:26             ` Philipp Kiefer
2023-02-17 12:01               ` Ihor Radchenko
2023-02-17 17:55                 ` Philipp Kiefer
2023-02-17 18:25                   ` Ihor Radchenko
2023-02-17 20:11                     ` Philipp Kiefer
2023-02-18 10:41                       ` Ihor Radchenko
2023-02-18 11:20                         ` Philipp Kiefer
2023-02-18 22:07                     ` bug#61612: 28.2; Point jumping to next line on mouse click beyond end of line Philipp Kiefer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.