emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Linking to plain text [9.3.6 (release_9.3.6-471-g9e385d @ c:/Users/awu/.emacs.d/straight/build/org-plus-contrib/)]
@ 2020-04-23  7:26 "Adriane Würfl"
  2020-04-23  8:29 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: "Adriane Würfl" @ 2020-04-23  7:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/html, Size: 1872 bytes --]

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

* Re: Bug: Linking to plain text [9.3.6 (release_9.3.6-471-g9e385d @ c:/Users/awu/.emacs.d/straight/build/org-plus-contrib/)]
  2020-04-23  7:26 Bug: Linking to plain text [9.3.6 (release_9.3.6-471-g9e385d @ c:/Users/awu/.emacs.d/straight/build/org-plus-contrib/)] "Adriane Würfl"
@ 2020-04-23  8:29 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2020-04-23  8:29 UTC (permalink / raw)
  To: Adriane Würfl; +Cc: emacs-orgmode

Hello,

"Adriane Würfl" <adriane.wuerfl@gmx.at> writes:

> Detailed description:
> I link with M-l to store the link and with C-l to insert it (see below for implementation).
> Normally I press M-l at the top of the .org file and it stores the following link: file:~/Documents/.../filename.org
> If the first line is a empty line it works just like mentioned above and how it's supposed to.
> But now if the first line in the file is plain text (eg jsdlj) it links to file:~/Documents/.../filename.org::jsdlj; a behavior not wanted.
> I thought this is only possible with headings (* Heading); (that's why I avoid using them in the first line of an .org file).
> Is this a bug or a newly added feature?

Neither :) I partly rewrote this part of links recently, but I didn't
add any feature. However, I probably uncovered some previous bugs. 

In this case, it seems to be the correct behaviour: see variable
`org-link-context-for-files' for an explanation and a solution.

WDYT?

-- 
Nicolas Goaziou


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

end of thread, other threads:[~2020-04-23  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  7:26 Bug: Linking to plain text [9.3.6 (release_9.3.6-471-g9e385d @ c:/Users/awu/.emacs.d/straight/build/org-plus-contrib/)] "Adriane Würfl"
2020-04-23  8:29 ` Nicolas Goaziou

Code repositories for project(s) associated with this 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).