Skip to content

Commit

Permalink
ebib-citar: Improve buffer handling
Browse files Browse the repository at this point in the history
  • Loading branch information
swflint authored and joostkremers committed May 21, 2024
1 parent d1ee3f5 commit ab5e525
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ebib-citar.el
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ Execute OPERATION given ARGS per `ebib-notes-storage', which see."
(:open-note
(when-let ((resource (citar--select-resource args :notes t)))
(pcase-let ((`(,type . ,descriptor) resource))
(list (funcall (citar--get-notes-config :open) descriptor) 0 nil))))))
(let* ((buffer (save-excursion
(with-current-buffer (funcall (citar--get-notes-config :open) descriptor)
(current-buffer))))
(point (with-current-buffer buffer (point))))
(list buffer point nil)))))))

(defun ebib-citar-entry-function (citekey)
"Open CITEKEY using `ebib'."
Expand Down

0 comments on commit ab5e525

Please sign in to comment.