I have a function that executes
save-excursion from within an Org Agenda buffer, but it doesn't return the point to the agenda buffer once the body of the excursion finishes executing. Here is the function I call:
(defun link-headline-from-agenda () "From an agenda window, link the corresponding headline to the selected file." (interactive) (save-excursion (org-agenda-goto) (link-headline)))
Is there a way to make save-excursion work as expected or get similar behavior inside an org agenda buffer?