diff options
| author | Richard M. Stallman | 2007-09-22 11:26:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-09-22 11:26:23 +0000 |
| commit | cc2fba21ba9c85726a8cedaf548f438f82fb38e4 (patch) | |
| tree | 60f5bdef58522ffe9737f5365b7e8c8a6859797b | |
| parent | d2f95fcaf907bcf7c494af208429e061de821eed (diff) | |
| download | emacs-cc2fba21ba9c85726a8cedaf548f438f82fb38e4.tar.gz emacs-cc2fba21ba9c85726a8cedaf548f438f82fb38e4.zip | |
(widget-specify-button): Don't merge mouse-face with neighbouring buttons.
| -rw-r--r-- | lisp/wid-edit.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index abb7fb6631e..50df4bd56c6 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -405,7 +405,17 @@ new value.") | |||
| 405 | (unless (widget-get widget :suppress-face) | 405 | (unless (widget-get widget :suppress-face) |
| 406 | (overlay-put overlay 'face (widget-apply widget :button-face-get)) | 406 | (overlay-put overlay 'face (widget-apply widget :button-face-get)) |
| 407 | (overlay-put overlay 'mouse-face | 407 | (overlay-put overlay 'mouse-face |
| 408 | (widget-apply widget :mouse-face-get))) | 408 | ;; Make new list structure for the mouse-face value |
| 409 | ;; so that different widgets will have | ||
| 410 | ;; different `mouse-face' property values | ||
| 411 | ;; and will highlight separately. | ||
| 412 | (let ((mouse-face-value | ||
| 413 | (widget-apply widget :mouse-face-get))) | ||
| 414 | ;; If it's a list, copy it. | ||
| 415 | (if (listp mouse-face-value) | ||
| 416 | (copy-sequence mouse-face-value) | ||
| 417 | ;; If it's a symbol, put it in a list. | ||
| 418 | (list mouse-face-value))))) | ||
| 409 | (overlay-put overlay 'pointer 'hand) | 419 | (overlay-put overlay 'pointer 'hand) |
| 410 | (overlay-put overlay 'follow-link follow-link) | 420 | (overlay-put overlay 'follow-link follow-link) |
| 411 | (overlay-put overlay 'help-echo help-echo))) | 421 | (overlay-put overlay 'help-echo help-echo))) |