emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/sqlite 1cdccfd 1/2: Move init functions around


From: Lars Ingebrigtsen
Subject: scratch/sqlite 1cdccfd 1/2: Move init functions around
Date: Tue, 14 Dec 2021 04:07:48 -0500 (EST)

branch: scratch/sqlite
commit 1cdccfda8181973324c1194eb85b2b56385fe93a
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Move init functions around
---
 lisp/emacs-lisp/multisession.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/multisession.el b/lisp/emacs-lisp/multisession.el
index 5b89a92..a4c8f8b 100644
--- a/lisp/emacs-lisp/multisession.el
+++ b/lisp/emacs-lisp/multisession.el
@@ -207,6 +207,7 @@ DOC should be a doc string, and ARGS are keywords as 
applicable to
       (setf (multisession--cached-value object) value))))
 
 (cl-defmethod multisession--backend-values ((_type (eql sqlite)))
+  (multisession--ensure-db)
   (sqlite-select
    multisession--db
    "select package, key, value from multisession order by package, key"))
@@ -333,7 +334,6 @@ DOC should be a doc string, and ARGS are keywords as 
applicable to
 (defun list-multisession-values ()
   "List all values in the \"multisession\" database."
   (interactive)
-  (multisession--ensure-db)
   (pop-to-buffer (get-buffer-create "*Multisession*"))
   (multisession-edit-mode)
   (multisession-edit-mode--revert)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]