GNU bug report logs -
#15965
24.3.50; [PATCH] eww: ask confirmation before quitting
Previous Next
Reported by: Kenjiro NAKAYAMA <knakayam <at> redhat.com>
Date: Sun, 24 Nov 2013 15:39:01 UTC
Severity: wishlist
Tags: patch
Found in version 24.3.50
Done: Ted Zlatanov <tzz <at> lifelogs.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
eww should ask "yes or no" before quitting, since only "q" key to quit is
easy to mistake.
Signed-off-by: Kenjiro NAKAYAMA <knakayam <at> redhat.com>
* net/eww.el (eww-quit): ask confirmation before quitting eww
---
lisp/net/eww.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 86e0977..265f6c8 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -403,8 +403,10 @@ word(s) will be searched for via `eww-search-prefix'."
(defun eww-quit ()
"Exit the Emacs Web Wowser."
(interactive)
- (setq eww-history nil)
- (kill-buffer (current-buffer)))
+ (if (y-or-n-p "quit eww? ")
+ (progn
+ (setq eww-history nil)
+ (kill-buffer (current-buffer)))))
(defun eww-back-url ()
"Go to the previously displayed page."
--
1.8.3.1
This bug report was last modified 11 years and 233 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.