emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link
@ 2020-07-22  9:32 Philip Blagoveschensky
  2020-09-04 16:08 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Blagoveschensky @ 2020-07-22  9:32 UTC (permalink / raw)
  To: emacs-orgmode

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

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

[-- Attachment #2: link_broken.png --]
[-- Type: image/png, Size: 9530 bytes --]

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

* Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link
  2020-07-22  9:32 When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link Philip Blagoveschensky
@ 2020-09-04 16:08 ` Bastien
  2020-09-06 17:14   ` Philip Blagoveschensky
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2020-09-04 16:08 UTC (permalink / raw)
  To: Philip Blagoveschensky; +Cc: emacs-orgmode

Hi Philipp,

Philip Blagoveschensky <philip@crabman.me> 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


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

* Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link
  2020-09-04 16:08 ` Bastien
@ 2020-09-06 17:14   ` Philip Blagoveschensky
  2020-09-06 17:22     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Blagoveschensky @ 2020-09-06 17:14 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

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 <bzg@gnu.org>:

> Hi Philipp,
> 
> Philip Blagoveschensky <philip@crabman.me> 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
> 


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

* Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link
  2020-09-06 17:14   ` Philip Blagoveschensky
@ 2020-09-06 17:22     ` Bastien
  2021-04-16  4:51       ` Yukio Siraichi
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2020-09-06 17:22 UTC (permalink / raw)
  To: Philip Blagoveschensky; +Cc: emacs-orgmode

Hi Philip,

Philip Blagoveschensky <philip@crabman.me> 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


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

* Re: When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link
  2020-09-06 17:22     ` Bastien
@ 2021-04-16  4:51       ` Yukio Siraichi
  0 siblings, 0 replies; 5+ messages in thread
From: Yukio Siraichi @ 2021-04-16  4:51 UTC (permalink / raw)
  To: bzg; +Cc: philip, emacs-orgmode

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

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


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

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

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

end of thread, other threads:[~2021-04-16 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-22  9:32 When auto-fill breaks a link into multiple lines, the link is no longer displayed as a link Philip Blagoveschensky
2020-09-04 16:08 ` Bastien
2020-09-06 17:14   ` Philip Blagoveschensky
2020-09-06 17:22     ` Bastien
2021-04-16  4:51       ` Yukio Siraichi

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).