[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kill selection buffer window on quit [PATCH included]
- From: Boruch Baum <boruch_baum@xxxxxxx>
- Date: Mon, 10 Jul 2017 02:41:51 -0400
- X-ml-name: emacs-w3m
- X-mail-count: 12733
When quitting `emacs-w3m' from within the pop-up buffer selection
window, ie. `M-t' followed by 'd' for all buffers, the popped-up
buffer selection window wasn't killing itself. The attached one-line
patch fixes that.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
--- w3m-orig.el 2017-07-10 02:27:56.425854225 -0400
+++ w3m.el 2017-07-10 02:28:04.153715658 -0400
@@ -11011,7 +11011,8 @@
(let ((pos (point))
(buffer (w3m-select-buffer-show-this-line)))
(when (= 1 (count-lines (point-min) (point-max)))
- (w3m-quit force))
+ (w3m-quit force)
+ (delete-window))
(w3m-process-stop buffer)
(w3m-idle-images-show-unqueue buffer)
(kill-buffer buffer)
--- ChangeLog 2017-07-10 01:27:57.477588698 -0400
+++ ChangeLog-new 2017-07-10 02:38:55.387121829 -0400
@@ -1,3 +1,8 @@
+2017-07-10 Boruch Baum <boruch_baum@xxxxxxx>
+
+ * w3m-.el (w3m-select-buffer-delete-buffer): When quitting
+ `emacs-w3m', delete the buffer selection window.
+
2017-07-05 Katsumi Yamaoka <yamaoka@xxxxxxx>
* w3m-form.el (w3m-form-input-textarea-mode-hook): Fix mismatched paren;