all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Internal links not working?
@ 2014-10-15 16:52 Marcin Borkowski
  2014-10-15 17:34 ` Marco Wahl
  2014-10-15 18:16 ` Marcin Borkowski
  0 siblings, 2 replies; 7+ messages in thread
From: Marcin Borkowski @ 2014-10-15 16:52 UTC (permalink / raw)
  To: Org Mode List

I have this test file:

========================
#+TITLE: Link testing

* Heading
:PROPERTIES:
:CUSTOM_ID: link-target
:END:

* Second heading
<<target>>
* Third heading
* Fourth heading
Testing linking to precise targets, not headings:
<<Third heading>>
* Links
[[#link-target]]
[[target]]
[[Second heading]]
[[Third heading]]
========================

When I C-c C-o (or mouse-1) on any of the links under the last heading,
I am being asked for a TAGS table.

What am I doing wrong?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

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

* Re: Internal links not working?
  2014-10-15 16:52 Internal links not working? Marcin Borkowski
@ 2014-10-15 17:34 ` Marco Wahl
  2014-10-15 18:03   ` Marcin Borkowski
  2014-10-15 18:16 ` Marcin Borkowski
  1 sibling, 1 reply; 7+ messages in thread
From: Marco Wahl @ 2014-10-15 17:34 UTC (permalink / raw)
  To: emacs-orgmode

Hi Marcin,

> I have this test file:
>
> ========================
>
> #+TITLE: Link testing
>
> * Heading
> :PROPERTIES:
> :CUSTOM_ID: link-target
> :END:
>
> * Second heading
> <<target>>
> * Third heading
> * Fourth heading
> Testing linking to precise targets, not headings:
> <<Third heading>>
> * Links
> [[#link-target]]
> [[target]]
> [[Second heading]]
> [[Third heading]]
> ========================
>
> When I C-c C-o (or mouse-1) on any of the links under the last heading,
> I am being asked for a TAGS table.

All those links work as expected here.

C-h k C-c C-o says

--8<---------------cut here---------------start------------->8---
C-c C-o runs the command org-open-at-point (found in org-mode-map),
which is an interactive compiled Lisp function in `org.el'.
--8<---------------cut here---------------end--------------->8---

What does C-h k C-c C-o say in your case?  Possibly you managed to
shadow the binding somehow.



Ciao,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2

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

* Re: Internal links not working?
  2014-10-15 17:34 ` Marco Wahl
@ 2014-10-15 18:03   ` Marcin Borkowski
  0 siblings, 0 replies; 7+ messages in thread
From: Marcin Borkowski @ 2014-10-15 18:03 UTC (permalink / raw)
  To: emacs-orgmode


On 2014-10-15, at 19:34, Marco Wahl wrote:

> Hi Marcin,
>
>> I have this test file:
>>
>> ========================
>>
>> #+TITLE: Link testing
>>
>> * Heading
>> :PROPERTIES:
>> :CUSTOM_ID: link-target
>> :END:
>>
>> * Second heading
>> <<target>>
>> * Third heading
>> * Fourth heading
>> Testing linking to precise targets, not headings:
>> <<Third heading>>
>> * Links
>> [[#link-target]]
>> [[target]]
>> [[Second heading]]
>> [[Third heading]]
>> ========================
>>
>> When I C-c C-o (or mouse-1) on any of the links under the last heading,
>> I am being asked for a TAGS table.
>
> All those links work as expected here.
>
> C-h k C-c C-o says
>
> --8<---------------cut here---------------start------------->8---
> C-c C-o runs the command org-open-at-point (found in org-mode-map),
> which is an interactive compiled Lisp function in `org.el'.
> --8<---------------cut here---------------end--------------->8---
>
> What does C-h k C-c C-o say in your case?  Possibly you managed to
> shadow the binding somehow.

No.  (I checked it earlier, and re-checked it now.  The binding is
fine.)

> Ciao,  Marco

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

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

* Re: Internal links not working?
  2014-10-15 16:52 Internal links not working? Marcin Borkowski
  2014-10-15 17:34 ` Marco Wahl
@ 2014-10-15 18:16 ` Marcin Borkowski
  2014-10-15 21:27   ` Marco Wahl
  1 sibling, 1 reply; 7+ messages in thread
From: Marcin Borkowski @ 2014-10-15 18:16 UTC (permalink / raw)
  To: Org Mode List


On 2014-10-15, at 18:52, Marcin Borkowski wrote:

> I have this test file:
>
> ========================
> #+TITLE: Link testing
>
> * Heading
> :PROPERTIES:
> :CUSTOM_ID: link-target
> :END:
>
> * Second heading
> <<target>>
> * Third heading
> * Fourth heading
> Testing linking to precise targets, not headings:
> <<Third heading>>
> * Links
> [[#link-target]]
> [[target]]
> [[Second heading]]
> [[Third heading]]
> ========================
>
> When I C-c C-o (or mouse-1) on any of the links under the last heading,
> I am being asked for a TAGS table.
>
> What am I doing wrong?
>
> TIA,

I instrumented for Edebug the org-open-at-point function, and I found
the culprit: the value of org-open-link-functions is

(org-ctags-find-tag org-ctags-ask-rebuild-tags-file-then-find-tag
org-ctags-ask-append-topic)

here.  I don't need to add that I never customized that variable...

What is even more strange, when I try to M-x set-variable, it somehow
gets changed to org-ctags-open-link-functions (i.e., I want to change
org-open-link-functions, so I enter this at the prompt, and the next
prompt - the one for the value - displays the name of the other
variable...).

Really strange.  Any ideas what might have happened?

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

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

* Re: Internal links not working?
  2014-10-15 18:16 ` Marcin Borkowski
@ 2014-10-15 21:27   ` Marco Wahl
  2014-10-15 21:43     ` Marcin Borkowski
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Wahl @ 2014-10-15 21:27 UTC (permalink / raw)
  To: emacs-orgmode

>> #+TITLE: Link testing
>>
>> * Heading
>> :PROPERTIES:
>> :CUSTOM_ID: link-target
>> :END:
>>
>> * Second heading
>> <<target>>
>> * Third heading
>> * Fourth heading
>> Testing linking to precise targets, not headings:
>> <<Third heading>>
>> * Links
>> [[#link-target]]
>> [[target]]
>> [[Second heading]]
>> [[Third heading]]

>> When I C-c C-o (or mouse-1) on any of the links under the last heading,
>> I am being asked for a TAGS table.

> I instrumented for Edebug the org-open-at-point function, and I found
> the culprit: the value of org-open-link-functions is
>
> (org-ctags-find-tag org-ctags-ask-rebuild-tags-file-then-find-tag
> org-ctags-ask-append-topic)

Looks like this setting goes back to Org module org-ctags.  Possibly you
want just switch off the ctags module via

M-x customize-variable org-modules

Of course you could also study org-ctags and try to understand its
benefits.


Regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2

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

* Re: Internal links not working?
  2014-10-15 21:27   ` Marco Wahl
@ 2014-10-15 21:43     ` Marcin Borkowski
  2014-10-20 13:29       ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Marcin Borkowski @ 2014-10-15 21:43 UTC (permalink / raw)
  To: emacs-orgmode


On 2014-10-15, at 23:27, Marco Wahl wrote:

>>> #+TITLE: Link testing
>>>
>>> * Heading
>>> :PROPERTIES:
>>> :CUSTOM_ID: link-target
>>> :END:
>>>
>>> * Second heading
>>> <<target>>
>>> * Third heading
>>> * Fourth heading
>>> Testing linking to precise targets, not headings:
>>> <<Third heading>>
>>> * Links
>>> [[#link-target]]
>>> [[target]]
>>> [[Second heading]]
>>> [[Third heading]]
>
>>> When I C-c C-o (or mouse-1) on any of the links under the last heading,
>>> I am being asked for a TAGS table.
>
>> I instrumented for Edebug the org-open-at-point function, and I found
>> the culprit: the value of org-open-link-functions is
>>
>> (org-ctags-find-tag org-ctags-ask-rebuild-tags-file-then-find-tag
>> org-ctags-ask-append-topic)
>
> Looks like this setting goes back to Org module org-ctags.  Possibly you
> want just switch off the ctags module via
>
> M-x customize-variable org-modules
>
> Of course you could also study org-ctags and try to understand its
> benefits.

Funny thing - I /never/ turned this module on!  The only thing connected
with tag tables in Emacs I do is I sometimes accidentally hit M-. or
something like that.

> Regards,  Marco

Thanks for your effort!

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

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

* Re: Internal links not working?
  2014-10-15 21:43     ` Marcin Borkowski
@ 2014-10-20 13:29       ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2014-10-20 13:29 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: emacs-orgmode

Hi Marcin,

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> Funny thing - I /never/ turned this module on!  The only thing connected
> with tag tables in Emacs I do is I sometimes accidentally hit M-. or
> something like that.

Can you check that M-. (or some other command) is not adding those
functions in the hook behind your back?

-- 
 Bastien

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

end of thread, other threads:[~2014-10-20 13:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15 16:52 Internal links not working? Marcin Borkowski
2014-10-15 17:34 ` Marco Wahl
2014-10-15 18:03   ` Marcin Borkowski
2014-10-15 18:16 ` Marcin Borkowski
2014-10-15 21:27   ` Marco Wahl
2014-10-15 21:43     ` Marcin Borkowski
2014-10-20 13:29       ` Bastien

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.