Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread Bastien
D writes: > After some I found the culprit! The issue arises from > org-do-emphasis-faces. Fixed in maint, following your suggestion. Thanks! -- Bastien

Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread D
Hi, After some I found the culprit! The issue arises from org-do-emphasis-faces. The bug is caused by the line (font-lock-prepend-text-property (match-beginning 2) (match-end 2) 'face face) which makes the surrounding "~"s part of the box, combined with (add-text-properties (match-end 4) (m

Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread D
Hi, On 12.02.20 18:24, Bastien wrote: > I can reproduce this issue but I have no clue what can be wrong in > Org. Perhaps you can submit this to emacs-de...@gnu.org. Very strange indeed. In that case I'll try poking around the code a bit more (I think there is a lot I can learn from investigatin

Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread Bastien
Hi, D writes: > Org mode version 9.1.9 (release_9.1.9-65-g5e4542) > > minimal setup: > (setq org-hide-emphasis-markers t) > (set-face-attribute 'org-code nil :box '(:line-width 1)) > > an example file mwe.org: > ~sample text~ > > This reproduces the issue reliably. I can reproduce this issue bu

Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-04 Thread D
> Can you provide an emacs and org version, the value of the variables > at stake and an reproducible example? Hi, naturally, I just wasn't at all sure I just overlooked something obvious and it's actually common knowledge. Naturally, using emacs -Q GNU Emacs 26.3 (build 1, x86_64-redhat-linux-

Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-04 Thread Bastien
Hi, D writes: > org-hide-emphasis-markers has a > strange interaction with faces like org-code: when trying to draw a box > around an emphasized expression it does not draw the right border. Can you provide an emacs and org version, the value of the variables at stake and an reproducible exampl

Weird face behavior with org-hide-emphasis-markers enabled

2020-02-04 Thread D
Hi all, maybe I overlooked something in the archives, but I can't find this issue having been brought up yet. org-hide-emphasis-markers has a strange interaction with faces like org-code: when trying to draw a box around an emphasized expression it does not draw the right border. Cheers, D.