Hi there :)
 
I use a higly customized Emacs with org-mode. Lately I have a problem when creating Links between .org files. Rather than linking to the general file, the link will be to a specific position (not intended).
I know this is is a build-in function with Headings, but lately this even happens with plain text.
 
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?

Implementation in customized init.el file (no further changes were made to the linking functions):
;; Links & Embedding
(advice-add #'org-insert-link :after #'org-display-inline-images)
(global-set-key (kbd "C-l") 'org-insert-link)
(global-set-key (kbd "M-l") 'org-store-link)

Emacs  : GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Package: Org mode version 9.3.6 (release_9.3.6-471-g9e385d @ c:/Users/awu/.emacs.d/straight/build/org-plus-contrib/)
 
 
Disposition-Notification-To: adriane.wue...@gmx.at

Reply via email to