diff options
| author | Andrew Innes | 1998-06-22 17:21:56 +0000 |
|---|---|---|
| committer | Andrew Innes | 1998-06-22 17:21:56 +0000 |
| commit | 3ce36200dd3b2404ec0a0f0ef31adeb4eeb84536 (patch) | |
| tree | 05d64d40e746d8578358e52eb0d864ef787ec613 | |
| parent | 1e484d64bdb278a6f10be7d8d594ccd60b81c7a7 (diff) | |
| download | emacs-3ce36200dd3b2404ec0a0f0ef31adeb4eeb84536.tar.gz emacs-3ce36200dd3b2404ec0a0f0ef31adeb4eeb84536.zip | |
(internal-face-interactive): Handle case where BOOL is `color'.
| -rw-r--r-- | lisp/term/w32-win.el | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 5ddb14e5384..e7df55c6b96 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -680,15 +680,23 @@ This is in addition to the primary selection.") | |||
| 680 | (or (funcall fn face (selected-frame)) | 680 | (or (funcall fn face (selected-frame)) |
| 681 | (funcall fn 'default (selected-frame))))) | 681 | (funcall fn 'default (selected-frame))))) |
| 682 | (fn-win (intern (concat (symbol-name window-system) "-select-" what))) | 682 | (fn-win (intern (concat (symbol-name window-system) "-select-" what))) |
| 683 | (value | 683 | value) |
| 684 | (if (fboundp fn-win) | 684 | (setq value |
| 685 | (funcall fn-win) | 685 | (cond ((fboundp fn-win) |
| 686 | (if bool | 686 | (funcall fn-win)) |
| 687 | (y-or-n-p (concat "Should face " (symbol-name face) | 687 | ((eq bool 'color) |
| 688 | " be " bool "? ")) | 688 | (completing-read (concat prompt " " (symbol-name face) " to: ") |
| 689 | (read-string (concat prompt " " (symbol-name face) " to: ") | 689 | (mapcar (function (lambda (color) |
| 690 | default))))) | 690 | (cons color color))) |
| 691 | (list face (if (equal value "") nil value)))) | 691 | x-colors) |
| 692 | nil nil nil nil default)) | ||
| 693 | (bool | ||
| 694 | (y-or-n-p (concat "Should face " (symbol-name face) | ||
| 695 | " be " bool "? "))) | ||
| 696 | (t | ||
| 697 | (read-string (concat prompt " " (symbol-name face) " to: ") | ||
| 698 | nil nil default)))) | ||
| 699 | (list face (if (equal value "") nil value)))) | ||
| 692 | 700 | ||
| 693 | ;; Redefine the font selection to use the standard W32 dialog | 701 | ;; Redefine the font selection to use the standard W32 dialog |
| 694 | 702 | ||