New answers tagged org-link
1
[This answer is meant as a tutorial introduction to how one would debug problems like the OP's, so it is more detailed than the "answer" which is just the setting
of browse-url-browser-function below. But I have always found answers of the sort "Do this - problem solved" unsatisfactory: I like to understand what's going on. YMMV, in which ...
2
This should do it.
(defun foo ()
(interactive)
(add-hook 'next-error-hook 'toto)
(let ((thisbuf (current-buffer)))
(next-error)
(switch-to-buffer thisbuf))
(remove-hook 'next-error-hook 'toto))
(defun toto ()
(message "Current buffer: %s" (current-buffer))
(org-store-link nil))
It fixes three problems:
(current-buffer) ...
1
You need to enable ID links by customizing the option org-id-link-to-org-use-id. The doc string of the variable says:
Non-nil means storing a link to an Org file will use entry IDs.
The variable can have the following values:
t
Create an ID if needed to make a link to the current entry.
create-if-interactive
If ‘org-store-link’ is called directly (...
Top 50 recent answers are included
Related Tags
org-link × 105org-mode × 86
org-export × 6
org-capture × 6
hyperlinks × 6
org-ref × 5
dired × 3
org-table × 3
org-babel × 2
org-agenda × 2
debugging × 2
regular-expressions × 2
microsoft-windows × 2
html × 2
images × 2
comment × 2
pdf-tools × 2
org-roam × 2
key-bindings × 1
latex × 1
buffers × 1
helm × 1
fonts × 1
search × 1
font-lock × 1