From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Adriane Würfl" <adriane.wuerfl@gmx.at>
Cc: emacs-orgmode@gnu.org
Subject: 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/)]
Date: Thu, 23 Apr 2020 10:29:15 +0200 [thread overview]
Message-ID: <87sgguk3l0.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <trinity-37ddc3b6-2505-471a-a7ec-5c53952755db-1587626780286@3c-app-gmx-bap50> ("Adriane Würfl"'s message of "Thu, 23 Apr 2020 09:26:20 +0200")
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
prev parent reply other threads:[~2020-04-23 8:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=87sgguk3l0.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=adriane.wuerfl@gmx.at \
--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).