Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link

2021-04-16 Thread Yukio Siraichi

Hi Bastien.

I'm also having the same issue here.

Emacs: GNU Emacs 27.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.5) of 2021-04-16
Package: Org mode version 9.4.4 (release_9.4.4 @ 
/home/user/.local/share/emacs/27.2.50/lisp/org/)


I've been able to reproduce with 'emacs -Q' (file is attached).
Apparently, whether emacs can display the link correctly or not depends 
on the number of characters before breaking the link with a newline.
If you remove one character before the newline, it works as expected. If 
you 'C-c C-l' in the link, it also works as expected until you close the 
file and open again, which goes back to not working.


Am I missing anything?

--

Yukio

.Arbitrary 497 characters before the newline in the middle of the 
link...
[[h][The link
here]]


Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link

2020-09-06 Thread Bastien
Hi Philip,

Philip Blagoveschensky  writes:

> Do you mean that I can probably fix it by changing what fonts I use?

Nope, I mean the issue might come from the way Emacs add faces like
bold, etc (aka "fontification".)

> If so, I'd rather do that than tinker with emacs trying to make a
> reproducible recipe.

A reproducible recipe is like immutable gold to this community: it
means that everyone can reproduce your problem and that everyone can
try fixing it: otherwise Linus's law "given enough eyeballs..." does
not really hold anymore.

Just saying :)

-- 
 Bastien



Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link

2020-09-06 Thread Philip Blagoveschensky
Do you mean that I can probably fix it by changing what fonts I use? If so, I'd 
rather do that than tinker with emacs trying to make a reproducible recipe.
-- 
Regards,

Philip Blagoveschensky

4 сент. 2020 г. 19:08:19 Bastien :

> Hi Philipp,
> 
> Philip Blagoveschensky  writes:
> 
>> Sometimes org-mode breaks links into multiple lines: sometimes
>> Auto-Fill   does this, sometimes me invoking org-fill-paragraph does
>> this. When it happens, org-mode displays them incorrectly, but only
>> after I reload the file (see the attached screenshot, there's a
>> newline symbol before the word "field"). How do I either
>> 
>> - Make it stop breaking links?
>> - Make it display them correctly even if they are broken?
> 
> I think I see what you mean, because I sometimes have broken links
> too, but would you care to provide a reproducible recipe, so that we
> can see what goes wrong when?  This is probably more due to an Emacs
> fontification limitation than an Org issue.
> 
> Thanks,
> 
> -- 
> Bastien
> 



Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link

2020-09-04 Thread Bastien
Hi Philipp,

Philip Blagoveschensky  writes:

> Sometimes org-mode breaks links into multiple lines: sometimes
> Auto-Fill   does this, sometimes me invoking org-fill-paragraph does
> this. When it happens, org-mode displays them incorrectly, but only
> after I reload the file (see the attached screenshot, there's a
> newline symbol before the word "field"). How do I either
>
> - Make it stop breaking links?
> - Make it display them correctly even if they are broken?

I think I see what you mean, because I sometimes have broken links
too, but would you care to provide a reproducible recipe, so that we
can see what goes wrong when?  This is probably more due to an Emacs
fontification limitation than an Org issue.

Thanks,

-- 
 Bastien



When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link

2020-07-22 Thread Philip Blagoveschensky
Sometimes org-mode breaks links into multiple lines: sometimes Auto-Fill 
 does this, sometimes me invoking org-fill-paragraph does this. When it 
happens, org-mode displays them incorrectly, but only after I reload the 
file (see the attached screenshot, there's a newline symbol before the 
word "field"). How do I either


- Make it stop breaking links?
- Make it display them correctly even if they are broken?

I've been told that they are supposed to be displayed as links even when 
multiline, and that something in my configuration must be broken. Does 
anyone know what causes this?


Emacs  : GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
 of 2019-09-23, modified by Debian
Package: Org mode version 9.3.6 (9.3.6-elpa @ 
/home/username/.emacs.d/elpa/org-9.3.6/)


Also, I use org-roam 1.2.0.
--
Regards,
Philip Blagoveschensky