all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15965: 24.3.50; [PATCH] eww: ask confirmation before quitting
@ 2013-11-24 14:12 Kenjiro NAKAYAMA
  2013-12-01 14:21 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Kenjiro NAKAYAMA @ 2013-11-24 14:12 UTC (permalink / raw)
  To: 15965

eww should ask "yes or no" before quitting, since only "q" key to quit is
easy to mistake.

Signed-off-by: Kenjiro NAKAYAMA <knakayam@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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#15965: 24.3.50; [PATCH] eww: ask confirmation before quitting
  2013-11-24 14:12 bug#15965: 24.3.50; [PATCH] eww: ask confirmation before quitting Kenjiro NAKAYAMA
@ 2013-12-01 14:21 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-12-01 14:21 UTC (permalink / raw)
  To: Kenjiro NAKAYAMA; +Cc: 15965

Kenjiro NAKAYAMA <knakayam@redhat.com> writes:

> eww should ask "yes or no" before quitting, since only "q" key to quit is
> easy to mistake.
>
> Signed-off-by: Kenjiro NAKAYAMA <knakayam@redhat.com>
>
>         * net/eww.el (eww-quit): ask confirmation before quitting eww

After some discussion on emacs-devel, this patch has been reverted.
Special mode buffers (like dired and eww) shouldn't query the user
before exiting.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-01 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-24 14:12 bug#15965: 24.3.50; [PATCH] eww: ask confirmation before quitting Kenjiro NAKAYAMA
2013-12-01 14:21 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.