summaryrefslogtreecommitdiff
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2015-08-20 08:54:45 +0200
committerMartin Rudalics <rudalics@gmx.at>2015-08-20 08:54:45 +0200
commitd0079c9324e575107b8a90944c9012dd3842946c (patch)
treec5768de384324bfac0cd52f0dedb31fb2604cbdf /lisp/wid-edit.el
parent186297de6e0e576af2c52ce96a7fc6af3ba3ffc3 (diff)
downloademacs-d0079c9324e575107b8a90944c9012dd3842946c.tar.gz
In `widget-color--choose-action' quit *Color* window instead of deleting it
* lisp/wid-edit.el (widget-color--choose-action): Quit *Color* window instead of deleting it.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index ac2e9810331..e98ac18fc5e 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -3706,9 +3706,9 @@ example:
(widget-value-set ',(widget-get widget :parent) color)
(let* ((buf (get-buffer "*Colors*"))
(win (get-buffer-window buf 0)))
- (bury-buffer buf)
- (and win (> (length (window-list)) 1)
- (delete-window win)))
+ (if win
+ (quit-window nil win)
+ (bury-buffer buf)))
(pop-to-buffer ,(current-buffer))))))
(defun widget-color-sample-face-get (widget)