From mboxrd@z Thu Jan 1 00:00:00 1970 From: Van L Subject: link handling for `file:' fails to stay within Emacs but calls `open file:' with TextEdit Date: Wed, 9 May 2018 13:02:07 +1000 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGFMx-0001Xl-Rn for emacs-orgmode@gnu.org; Tue, 08 May 2018 23:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGFMu-0002k8-PG for emacs-orgmode@gnu.org; Tue, 08 May 2018 23:02:19 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:33217) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGFMu-0002fe-Ii for emacs-orgmode@gnu.org; Tue, 08 May 2018 23:02:16 -0400 Received: from epi.local (123-243-244-176.tpgi.com.au [123.243.244.176]) (Authenticated sender: van@scratch.space) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E70B9100014 for ; Wed, 9 May 2018 05:02:11 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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=E2=80=99 extension ;; to follow `file:=E2=80=99 links without leaving Emacs. ;;;; ------------------------------------ ;; file : a * one ** two *** three [[file:b::*title%20%E4%B8%AD][title =E4=B8=AD]] # Local variables: # mode: org # End: ;;;; ------------------------------------ ;; file : b * work ** title =E4=B8=AD *** chapter # Local variables: # mode: org # End: ;;;; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;; file a.org * one ** two *** three [[file:b.org::*title%20%E4%B8%AD][title =E4=B8=AD]] ;;;; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ;; file b.org * work ** title =E4=B8=AD *** chapter