emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alexis <flexibeast@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87sira2psd.fsf@gmail.com> (raw)
In-Reply-To: <m2y512qosj.fsf@uio.no>


Christian Moe <mail@christianmoe.com> 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.

  reply	other threads:[~2014-02-23  8:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21  8:02 Unable to get file link search to work Alexis
2014-02-23  2:52 ` Alexis
2014-02-23  7:19   ` Christian Moe
2014-02-23  8:31     ` Alexis [this message]
2014-02-23 14:14       ` Possible bug? Links using 'file+Emacs:' don't work Nicolas Goaziou
2014-02-24  1:20         ` Alexis

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=87sira2psd.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --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).