From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexis Subject: Possible bug? Links using 'file+Emacs:' don't work. (Was: Re: Unable to get file link search to work) Date: Sun, 23 Feb 2014 19:31:46 +1100 Message-ID: <87sira2psd.fsf@gmail.com> References: <87wqgogafj.fsf@gmail.com> <87vbw635h5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHUTe-0007T4-QV for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 03:32:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHUTZ-0007As-03 for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 03:31:58 -0500 Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:44383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHUTY-0007AR-Pu for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 03:31:52 -0500 Received: by mail-pb0-f43.google.com with SMTP id ma3so2591301pbc.16 for ; Sun, 23 Feb 2014 00:31:51 -0800 (PST) Received: from localhost (ppp118-209-38-145.lns20.mel4.internode.on.net. [118.209.38.145]) by mx.google.com with ESMTPSA id tu3sm91116108pab.1.2014.02.23.00.31.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 23 Feb 2014 00:31:50 -0800 (PST) In-reply-to: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Christian Moe writes: > Just to say, I reproduce it, so I think it's a bug. Note, the below > only happens for me when using "file+emacs:" to force opening in > emacs. The links work with regular "file:" links, or just starting the > link with "./" Since my .org files open with emacs anyway, I normally > wouldn't add "+emacs". But the manual suggests I could. Hi Christian, Thanks for taking the time to look into this! i was using 'file+emacs:' because when i just used 'file:', the .org file would be opened using 'less', not Emacs. As a result of your email, i checked out the documentation for org-open-at-point; it said that providing a prefix argument would force opening in Emacs. So i removed the '+emacs' from my example link, and then tried opening it via C-u C-c C-o - and it worked! i checked the value of org-file-apps, to see why org-open-at-point was using 'less', rather than Emacs, to open .org files. It turns out there was a typo in how i was setting the value of org-file-apps, causing it to have a nonsense value - and i guess this caused org-mode to fall back to using 'less' as a default. Setting the value of org-file-apps to a correct value - including ("org" . emacs) as part of it - resulted in 'file:' links being opened in Emacs, rather than with 'less'. However, 'file+emacs:' links still exhibit the incorrect behaviour i described in my original email, and which you experienced also. So it looks like there is indeed a bug here - or, the 'file+emacs:' example should be removed from section 4.3 of the Org manual. Thanks again! Alexis.