Add confirmation to sqlite-mode-delete

* lisp/sqlite-mode.el (sqlite-mode-delete): Add confirmation.
This commit is contained in:
Lars Ingebrigtsen 2021-12-11 09:28:57 +01:00
parent d727796e1f
commit cabb049a50

View file

@ -187,6 +187,8 @@
(when (or (not (consp table))
(not (eq (car table) 'row)))
(user-error "No row under point"))
(unless (yes-or-no-p "Really delete the row under point? ")
(error "Not deleting"))
(sqlite-execute
sqlite--db
(format "delete from %s where %s"