all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] Incorrect timestamp face in a heading if previous body contains link to such a heading [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]
@ 2022-04-11 20:22 Hanspeter Gisler
  2022-04-12 15:39 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Hanspeter Gisler @ 2022-04-11 20:22 UTC (permalink / raw)
  To: emacs-orgmode

OBSERVED BEHAVIOR
=================

The following 2 files 'correct_face_rendering.org' and
'incorrect_face_rendering.org' render the 3rd headings timestamp face
differently, once correctly and once incorrectly.

correct_face_rendering.org
--------------------------

* ~ [2022-04-11 Mo] teading 1 - referred to by some other heading's body
:PROPERTIES:
:ID:       41482d18-460a-4803-81dc-f4512b771151
:END:
* ~ [2022-04-11 Mo] Heading 2 - referring to Heading 1
Link to: [[id:41482d18-460a-4803-81dc-f4512b771151][~ [2022-04-11 Mo] Heading 1 - referred to by some other heading's body]]
* ~ [2022-04-11 Mo] Heading 3's timestamp face is correct


incorrect_face_rendering.org
----------------------------

* [2022-04-11 Mo] Heading 1 - referred to by some other heading's body
:PROPERTIES:
:ID:       9549d52f-439d-4011-ad72-9a9a7baad58b
:END:
* [2022-04-11 Mo] Heading 2 - referring to Heading 1
Link to: [[id:9549d52f-439d-4011-ad72-9a9a7baad58b][[2022-04-11 Mo] Heading 1 - referred to by some other heading's body]] 
* [2022-04-11 Mo] Heading 3's timestamp face is incorrect


EXPECTED BEHAVIOR
=================

With both files, org should render the headings timestamp face correctly.


SYSTEM
======

Emacs  : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6)
 of 2022-04-04
Package: Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)


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

* Re: [BUG] Incorrect timestamp face in a heading if previous body contains link to such a heading [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]
  2022-04-11 20:22 [BUG] Incorrect timestamp face in a heading if previous body contains link to such a heading [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)] Hanspeter Gisler
@ 2022-04-12 15:39 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-04-12 15:39 UTC (permalink / raw)
  To: Hanspeter Gisler; +Cc: emacs-orgmode

Hanspeter Gisler <hpgisleropen@bluewin.ch> writes:

> OBSERVED BEHAVIOR
> =================
>
> The following 2 files 'correct_face_rendering.org' and
> 'incorrect_face_rendering.org' render the 3rd headings timestamp face
> differently, once correctly and once incorrectly.
>
> incorrect_face_rendering.org
> ----------------------------
>
> * [2022-04-11 Mo] Heading 1 - referred to by some other heading's body
> :PROPERTIES:
> :ID:       9549d52f-439d-4011-ad72-9a9a7baad58b
> :END:
> * [2022-04-11 Mo] Heading 2 - referring to Heading 1
> Link to: [[id:9549d52f-439d-4011-ad72-9a9a7baad58b][[2022-04-11 Mo] Heading 1 - referred to by some other heading's body]] 
> * [2022-04-11 Mo] Heading 3's timestamp face is incorrect

Confirmed.

This is yet another example (among many before) where our current
fontification engine is failing.

See https://orgmode.org/list/87ee7c9quk.fsf@localhost

The fix is WIP. Current version is at
https://github.com/yantar92/org/tree/feature/org-font-lock-element

Your example is fontified correctly in the WIP version :)

Best,
Ihor



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

end of thread, other threads:[~2022-04-12 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-11 20:22 [BUG] Incorrect timestamp face in a heading if previous body contains link to such a heading [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)] Hanspeter Gisler
2022-04-12 15:39 ` Ihor Radchenko

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.