Carsten, On Fri, 3 Apr 2009 11:45:44 +0200 Carsten Dominik <carsten.domi...@gmail.com> wrote:
> > Hm, that works for links to files, but strangely it doesn't for > > links to headings in 6.25: > > True, > > and I have no idea why that is so. Very strange bug, one > of those only Nick Dokos can find :-) you didn't count me in :-). Attached is the patch against org.el (from 6.25b) Andreas
7445,7450c7445,7451 < (with-temp-buffer < (let ((org-inhibit-startup t)) < (org-mode) < (insert s) < (goto-char (point-min)) < (org-open-at-point arg)))) --- > (let ((reference-buffer (current-buffer))) > (with-temp-buffer > (let ((org-inhibit-startup t)) > (org-mode) > (insert s) > (goto-char (point-min)) > (org-open-at-point arg reference-buffer))))) 7452c7453 < (defun org-open-at-point (&optional in-emacs) --- > (defun org-open-at-point (&optional in-emacs reference-buffer) 7515a7517,7518 > ;; if called in a temporary buffer (from org-open-link-from-string), switch back to original buffer > (cond (reference-buffer (switch-to-buffer reference-buffer)))
_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode