emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Philipp Kiefer <phil.kiefer@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded.
Date: Thu, 16 Feb 2023 22:26:10 +0100	[thread overview]
Message-ID: <96becf12-9a5a-2fc2-0105-a41528be1f66@gmail.com> (raw)
In-Reply-To: <87y1ppwt9v.fsf@localhost>


[-- Attachment #1.1: Type: text/plain, Size: 1776 bytes --]

Hi Ihor,

Sorry for the delay, but I had to weed out my init.el to make sure none 
of the settings were interfering with the problem I was describing.

Please find attached a sample Org file with the bug description and 
steps to reproduce the issue at the bottom of the file. (Also pasting it 
in here: Collapse all trees, then start at the bottommost heading, and 
use ^c^p repeatedly to go up through the headings to the top. Point will 
jump right over Trees 2 and 3 to 1.)

I can reproduce with this minimal init.el using Emacs GNU Emacs 27.2 
(build 1, x86_64-w64-mingw32)
  of 2021-03-26 and Org mode version 9.6.1:

-----

(desktop-save-mode 1)
(setq org-hide-emphasis-markers t)
(with-current-buffer " *load*"
   (goto-char (point-max)))

------

I use the last command ("with...") to skip all the rest of my init.el. 
The problem goes away when I set org-hide-emphasis-markers to nil.

A further and likely related issue is that point often jumps to the 
beginning of the next line when I click the mouse to position point at 
the end of a heading. This can not be reproduced in the sample file, I 
think, but I could send you a screencast showing the problem. This issue 
also goes away when setting org-hide-emphasis-markers to nil.

Thanks for looking into this and please let me know if you can reproduce 
or have any further questions.

Best regards,

Philipp

On 26.01.2023 10:15, Ihor Radchenko wrote:
> Philipp Kiefer<phil.kiefer@gmail.com>  writes:
>
>> ...
>> If any of the conditions listed above are untrue, e. g. I set
>> 'org-hide-emphasis-markers' to nil, or remove the markers from heading A
>> the problem goes away.
>>
>> I hope you can reproduce it based on this description.
> I would help if you provided an example of the described heading.
>

[-- Attachment #1.2: Type: text/html, Size: 2701 bytes --]

[-- Attachment #2: test.org --]
[-- Type: text/plain, Size: 334 bytes --]

* 1
** 1.1
*** 1.1.1
**** 1.1.1.1
**** 1.1.1.2
*** 1.2.1
** 1.2
* *2*
** 2.1
*** 2.1.1
*** 2.1.2
** 2.2
* *3*
** 3.1
*** 3.1.1
*** 3.1.2
*** 3.1.3
** 3.2
* 
* Collapse all trees, then start down here, and use ^c^p repeatedly to go up through the headings to the top. Point will jump right over Trees 2 and 3 to 1.

  parent reply	other threads:[~2023-02-16 21:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96becf12-9a5a-2fc2-0105-a41528be1f66@gmail.com \
    --to=phil.kiefer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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/org-mode.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).