emacs-devel
[Top][All Lists]
Advanced

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

Re: master cabb049: Add confirmation to sqlite-mode-delete


From: Stefan Kangas
Subject: Re: master cabb049: Add confirmation to sqlite-mode-delete
Date: Sat, 11 Dec 2021 11:14:28 +0100

Lars Ingebrigtsen <larsi@gnus.org> writes:

> diff --git a/lisp/sqlite-mode.el b/lisp/sqlite-mode.el
> index 6714f41..61398c1 100644
> --- a/lisp/sqlite-mode.el
> +++ b/lisp/sqlite-mode.el
> @@ -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"))

Should this perhaps be a 'user-error' given that it is a direct result
of user input (and not a programming error)?



reply via email to

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