diff options
| author | Karl Heuer | 1999-07-26 19:06:37 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-07-26 19:06:37 +0000 |
| commit | ec6d44639a9e97c6baa1c28eca60d5a237fe3628 (patch) | |
| tree | 35e5972d524c388189caaf13b254db23cf5fe996 | |
| parent | de4075cff3f641a3f4b4f97f49924136eea0818a (diff) | |
| download | emacs-ec6d44639a9e97c6baa1c28eca60d5a237fe3628.tar.gz emacs-ec6d44639a9e97c6baa1c28eca60d5a237fe3628.zip | |
(set-mouse-color): If new color is nil,
really respecify the current color.
| -rw-r--r-- | lisp/frame.el | 5 |
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. | |||
| 700 | To get the frame's current mouse color, use `frame-parameters'." | 700 | To 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. |