Fix: (org-ql-view-refresh) Rename buffer uniquely

This is sort of a workaround or preventative measure as much as it is
a fix.  It seemed to be necessary when I was testing bookmark
loading in org-sidebar.
This commit is contained in:
Adam Porter 2020-11-05 11:21:33 -06:00
parent f88fb549a3
commit 94be07244c

View file

@ -332,7 +332,9 @@ update search arguments."
;; Now in the results buffer.
(rename-buffer (format "%s %s*"
org-ql-view-buffer-name-prefix
(or org-ql-view-title org-ql-view-query)))
(or org-ql-view-title org-ql-view-query))
;; Avoid any errors in case a buffer by this name already exists.
'unique)
(goto-char (point-min))
(or (when (search-forward current-line nil t)
(beginning-of-line))