LINUX.ORG.RU

Вопрос по внутренним ссылкам в org mode

 ,


0

2

Для внутренних ссылок использовалась конструкция вида <<foo>> [[foo][bar]], но при попытке перехода по ссылке пишет что-то вроде:

tag foo not found. Rebuild table ~/<path>//TAGS?
Как заставить его просто переходить по ссылкам?

Подобное поведение возникло вроде после использования C-c на <<foo>>

Похоже, у тебя вместо перехода по ссылке вызывается функция перехода по ctags тегу.

Покажи вывод C-h k <используемый аккорд>

good_riddance
()
Ответ на: комментарий от good_riddance

У тебя проблема воспроизводится?

Karthago ★★
() автор топика
Ответ на: комментарий от good_riddance
C-c C-o runs the command org-open-at-point, which is an interactive
compiled Lisp function in `org.el'.

It is bound to C-c C-o, <menu-bar> <Org> <Hyperlinks> <Follow Link>.

(org-open-at-point &optional ARG REFERENCE-BUFFER)

:around advice: `ad-Advice-org-open-at-point'

Open link at or after point.
If there is no link at point, this function will search forward up to
the end of the current line.
Normally, files will be opened by an appropriate application.  If the
optional prefix argument ARG is non-nil, Emacs will visit the file.
With a double prefix argument, try to open outside of Emacs, in the
application the system uses for this file type.
Karthago ★★
() автор топика
Ответ на: комментарий от Karthago

org-mode действительно может использовать etags, что для меня новость:

;; Allows org-mode to make use of the Emacs `etags' system.  Defines tag
;; destinations in org-mode files as any text between <<double angled
;; brackets>>. This allows the tags-generation program `exuberant ctags' to
;; parse these files and create tag tables that record where these
;; destinations are found.  Plain [[links]] in org mode files which do not have
;; <<matching destinations>> within the same file will then be interpreted as
;; links to these 'tagged' destinations, allowing seamless navigation between
;; multiple org-mode files.  Topics can be created in any org mode file and
;; will always be found by plain links from other files.  Other file types
;; recognized by ctags (source code files, latex files, etc) will also be
;; available as destinations for plain links, and similarly, org-mode links
;; will be available as tags from source files.  Finally, the function
;; `org-ctags-find-tag-interactive' lets you choose any known tag, using
;; autocompletion, and quickly jump to it.

Полагаю, что эти самые теги нужно сгенерить, тогда проблема решится.

good_riddance
()
Ответ на: комментарий от good_riddance

Файл TAGS генерируется, но он пустой. При каждом переходе по ссылке то же, что и в стартовом посте.

Karthago ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.