New answers tagged

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