Fix byte-compilation warnings about 'sqlite-rollback'
* lisp/sqlite.el (sqlite-transaction, sqlite-commit) (sqlite-rollback): Declare. * lisp/emacs-lisp/multisession.el (sqlite-commit) (sqlite-transaction): Remove declaration.
This commit is contained in:
parent
1978b603bc
commit
e6ad97a333
2 changed files with 4 additions and 2 deletions
|
@ -137,8 +137,6 @@ DOC should be a doc string, and ARGS are keywords as applicable to
|
||||||
(declare-function sqlite-select "sqlite.c")
|
(declare-function sqlite-select "sqlite.c")
|
||||||
(declare-function sqlite-open "sqlite.c")
|
(declare-function sqlite-open "sqlite.c")
|
||||||
(declare-function sqlite-pragma "sqlite.c")
|
(declare-function sqlite-pragma "sqlite.c")
|
||||||
(declare-function sqlite-transaction "sqlite.c")
|
|
||||||
(declare-function sqlite-commit "sqlite.c")
|
|
||||||
|
|
||||||
(defvar multisession--db nil)
|
(defvar multisession--db nil)
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
(declare-function sqlite-transaction "sqlite.c")
|
||||||
|
(declare-function sqlite-commit "sqlite.c")
|
||||||
|
(declare-function sqlite-rollback "sqlite.c")
|
||||||
|
|
||||||
(defmacro with-sqlite-transaction (db &rest body)
|
(defmacro with-sqlite-transaction (db &rest body)
|
||||||
"Execute BODY while holding a transaction for DB.
|
"Execute BODY while holding a transaction for DB.
|
||||||
If BODY completes normally, commit the changes and return
|
If BODY completes normally, commit the changes and return
|
||||||
|
|
Loading…
Add table
Reference in a new issue