aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-07-26 19:06:37 +0000
committerKarl Heuer1999-07-26 19:06:37 +0000
commitec6d44639a9e97c6baa1c28eca60d5a237fe3628 (patch)
tree35e5972d524c388189caaf13b254db23cf5fe996
parentde4075cff3f641a3f4b4f97f49924136eea0818a (diff)
downloademacs-ec6d44639a9e97c6baa1c28eca60d5a237fe3628.tar.gz
emacs-ec6d44639a9e97c6baa1c28eca60d5a237fe3628.zip
(set-mouse-color): If new color is nil,
really respecify the current color.
-rw-r--r--lisp/frame.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index e329a87af37..915f6ff2d40 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -700,7 +700,10 @@ When called interactively, prompt for the name of the color to use.
700To get the frame's current mouse color, use `frame-parameters'." 700To get the frame's current mouse color, use `frame-parameters'."
701 (interactive "sColor: ") 701 (interactive "sColor: ")
702 (modify-frame-parameters (selected-frame) 702 (modify-frame-parameters (selected-frame)
703 (list (cons 'mouse-color color-name)))) 703 (list (cons 'mouse-color
704 (or color-name
705 (cdr (assq 'mouse-color
706 (frame-parameters))))))))
704 707
705(defun set-border-color (color-name) 708(defun set-border-color (color-name)
706 "Set the color of the border of the selected frame to COLOR. 709 "Set the color of the border of the selected frame to COLOR.