emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Unable to get file link search to work
@ 2014-02-21  8:02 Alexis
  2014-02-23  2:52 ` Alexis
  0 siblings, 1 reply; 6+ messages in thread
From: Alexis @ 2014-02-21  8:02 UTC (permalink / raw)
  To: emacs-orgmode


Hi all,

i'm running org-mode 8.2.5h in Emacs 24.3.

Say i have file a.org:

  * Main
  ** Group
  *** Firstname Lastname

My reading of

http://orgmode.org/manual/External-links.html#External-links

and

http://orgmode.org/manual/Search-options.html#Search-options

is that i should be able to, in b.org - which resides in the same
directory as a.org - have something like:

  [[file+emacs:a.org::*Firstname]]

such that when i move point over that link, and enter C-c C-o
(i.e. org-open-at-point), i will be taken to a buffer containing a.org,
with point on the 'Firstname Lastname' heading. Instead, what happens is
that a new buffer is created, attached to a new file called, literally,
'a.org::*Firstname'.

Similarly, if in b.org i have something like:

  [[file+emacs:a.org::2]]

i am not taken to line 2 of a.org, but instead to a new buffer attached
to a new file literally called 'a.org::2'.

i have observed this behaviour with
org-link-search-must-match-exact-headline set to either 'query-to-create
or to nil.

What am i doing wrong?


Alexis.

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

* Re: Unable to get file link search to work
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Alexis @ 2014-02-23  2:52 UTC (permalink / raw)
  To: emacs-orgmode


Bump. Any suggestions as to whether the below is me doing something
wrong (more likely) or a bug (less likely)?

Thanks!


Alexis <flexibeast@gmail.com> writes:

> Hi all,
>
> i'm running org-mode 8.2.5h in Emacs 24.3.
>
> Say i have file a.org:
>
>   * Main
>   ** Group
>   *** Firstname Lastname
>
> My reading of
>
> http://orgmode.org/manual/External-links.html#External-links
>
> and
>
> http://orgmode.org/manual/Search-options.html#Search-options
>
> is that i should be able to, in b.org - which resides in the same
> directory as a.org - have something like:
>
>   [[file+emacs:a.org::*Firstname]]
>
> such that when i move point over that link, and enter C-c C-o
> (i.e. org-open-at-point), i will be taken to a buffer containing a.org,
> with point on the 'Firstname Lastname' heading. Instead, what happens is
> that a new buffer is created, attached to a new file called, literally,
> 'a.org::*Firstname'.
>
> Similarly, if in b.org i have something like:
>
>   [[file+emacs:a.org::2]]
>
> i am not taken to line 2 of a.org, but instead to a new buffer attached
> to a new file literally called 'a.org::2'.
>
> i have observed this behaviour with
> org-link-search-must-match-exact-headline set to either 'query-to-create
> or to nil.
>
> What am i doing wrong?
>
>
> Alexis.

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

* Re: Unable to get file link search to work
  2014-02-23  2:52 ` Alexis
@ 2014-02-23  7:19   ` Christian Moe
  2014-02-23  8:31     ` Possible bug? Links using 'file+Emacs:' don't work. (Was: Re: Unable to get file link search to work) Alexis
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Moe @ 2014-02-23  7:19 UTC (permalink / raw)
  To: Alexis; +Cc: emacs-orgmode


Hi,

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.

Yours,
Christian

Alexis writes:

> Bump. Any suggestions as to whether the below is me doing something
> wrong (more likely) or a bug (less likely)?
>
> Thanks!
>
>
> Alexis <flexibeast@gmail.com> writes:
>
>> Hi all,
>>
>> i'm running org-mode 8.2.5h in Emacs 24.3.
>>
>> Say i have file a.org:
>>
>>   * Main
>>   ** Group
>>   *** Firstname Lastname
>>
>> My reading of
>>
>> http://orgmode.org/manual/External-links.html#External-links
>>
>> and
>>
>> http://orgmode.org/manual/Search-options.html#Search-options
>>
>> is that i should be able to, in b.org - which resides in the same
>> directory as a.org - have something like:
>>
>>   [[file+emacs:a.org::*Firstname]]
>>
>> such that when i move point over that link, and enter C-c C-o
>> (i.e. org-open-at-point), i will be taken to a buffer containing a.org,
>> with point on the 'Firstname Lastname' heading. Instead, what happens is
>> that a new buffer is created, attached to a new file called, literally,
>> 'a.org::*Firstname'.
>>
>> Similarly, if in b.org i have something like:
>>
>>   [[file+emacs:a.org::2]]
>>
>> i am not taken to line 2 of a.org, but instead to a new buffer attached
>> to a new file literally called 'a.org::2'.
>>
>> i have observed this behaviour with
>> org-link-search-must-match-exact-headline set to either 'query-to-create
>> or to nil.
>>
>> What am i doing wrong?
>>
>>
>> Alexis.

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

* Possible bug? Links using 'file+Emacs:' don't work. (Was: Re: Unable to get file link search to work)
  2014-02-23  7:19   ` Christian Moe
@ 2014-02-23  8:31     ` Alexis
  2014-02-23 14:14       ` Possible bug? Links using 'file+Emacs:' don't work Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Alexis @ 2014-02-23  8:31 UTC (permalink / raw)
  To: emacs-orgmode


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.

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

* Re: Possible bug? Links using 'file+Emacs:' don't work.
  2014-02-23  8:31     ` Possible bug? Links using 'file+Emacs:' don't work. (Was: Re: Unable to get file link search to work) Alexis
@ 2014-02-23 14:14       ` Nicolas Goaziou
  2014-02-24  1:20         ` Alexis
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-02-23 14:14 UTC (permalink / raw)
  To: Alexis; +Cc: emacs-orgmode

Hello,

Alexis <flexibeast@gmail.com> writes:

> 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.

This should be fixed in master branch.

Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

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

* Re: Possible bug? Links using 'file+Emacs:' don't work.
  2014-02-23 14:14       ` Possible bug? Links using 'file+Emacs:' don't work Nicolas Goaziou
@ 2014-02-24  1:20         ` Alexis
  0 siblings, 0 replies; 6+ messages in thread
From: Alexis @ 2014-02-24  1:20 UTC (permalink / raw)
  To: emacs-orgmode


Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Alexis <flexibeast@gmail.com> writes:
>
>> 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.
>
> This should be fixed in master branch.
>
> Thank you for reporting it.

Hi Nicolas,

Have just tested your fix - works for me. :-) Thanks for fixing this so
quickly!


Alexis.

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

end of thread, other threads:[~2014-02-24  1:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` Possible bug? Links using 'file+Emacs:' don't work. (Was: Re: Unable to get file link search to work) Alexis
2014-02-23 14:14       ` Possible bug? Links using 'file+Emacs:' don't work Nicolas Goaziou
2014-02-24  1:20         ` Alexis

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).