all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* link handling for `file:' fails to stay within Emacs but calls `open file:' with TextEdit
@ 2018-05-09  3:02 Van L
  2018-05-24 22:57 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Van L @ 2018-05-09  3:02 UTC (permalink / raw)
  To: emacs-orgmode

Hello.

The link handling for org mode behaves unexpectedly where a file sets
org mode according to `Local variables:' at the end of the file.

In the following, a.org and b.org files work as expected using M-x
org-store-link and M-x org-insert-link for `file:' link.

Without the .org filename extension, following the link calls

  `open file:' which leads to Org Mode opening the file with TextEdit

under mac os, Emacs 26.1 rc-1.


;;;; ------------------------------------

;; running	: Emacs.app/Contents/MacOS/Emacs -Q
;; problem	: This two file arrangment for `Emacs -Q' *fails* to follow the link.
;; expect	: Emacs to open a link to org file.
;; unexpected	: Emacs calls TextEdit to open org file.
;; solution	: if file a and b are called a.org and b.org then there is no problem.

;; Solution needs org files named without the `.org’ extension
;; to follow `file:’ links without leaving Emacs.


;;;; ------------------------------------
;; file		: a


* one

** two

*** three

[[file:b::*title%20%E4%B8%AD][title 中]]

# Local variables:
# mode: org
# End:


;;;; ------------------------------------
;; file : b

* work

** title 中

*** chapter


# Local variables:
# mode: org
# End:

;;;; ============================================================
;; file a.org

* one

** two

*** three

[[file:b.org::*title%20%E4%B8%AD][title 中]]





;;;; ============================================================
;; file b.org

* work

** title 中

*** chapter

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

end of thread, other threads:[~2018-05-26 15:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-09  3:02 link handling for `file:' fails to stay within Emacs but calls `open file:' with TextEdit Van L
2018-05-24 22:57 ` Nicolas Goaziou
2018-05-25  3:01   ` Van L
2018-05-26 10:34     ` Nicolas Goaziou
2018-05-26 12:18       ` Van L
2018-05-26 12:31         ` Nicolas Goaziou
2018-05-26 12:38           ` Van L
2018-05-26 15:27         ` Eric S Fraga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.