diff options
| author | Boris Goldowsky | 1995-04-11 15:56:53 +0000 |
|---|---|---|
| committer | Boris Goldowsky | 1995-04-11 15:56:53 +0000 |
| commit | da627a7158412938f36b1531ba87f3dad7478585 (patch) | |
| tree | 3732fa1da14adb7be7a57c9383613c0ce43b6313 | |
| parent | 21ba0e68efc3960e82d3e876a4ebc34e66ca2b95 (diff) | |
| download | emacs-da627a7158412938f36b1531ba87f3dad7478585.tar.gz emacs-da627a7158412938f36b1531ba87f3dad7478585.zip | |
(facemenu-read-color): Don't ignore PROMPT arg. Make arg optional.
(facemenu-unlisted-faces): Add font-lock faces to default value.
| -rw-r--r-- | lisp/facemenu.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 1128d84bcdb..0f7dcd99c0f 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -124,7 +124,10 @@ This should be nil to put them at the top of the menu, or t to put them | |||
| 124 | just before \"Other\" at the end.") | 124 | just before \"Other\" at the end.") |
| 125 | 125 | ||
| 126 | (defvar facemenu-unlisted-faces | 126 | (defvar facemenu-unlisted-faces |
| 127 | '(modeline region secondary-selection highlight scratch-face) | 127 | '(modeline region secondary-selection highlight scratch-face |
| 128 | font-lock-comment-face font-lock-string-face font-lock-keyword-face | ||
| 129 | font-lock-function-name-face font-lock-variable-name-face | ||
| 130 | font-lock-type-face font-lock-reference-face) | ||
| 128 | "List of faces not to include in the Face menu. | 131 | "List of faces not to include in the Face menu. |
| 129 | Set this before loading facemenu.el, or call `facemenu-update' after | 132 | Set this before loading facemenu.el, or call `facemenu-update' after |
| 130 | changing it. | 133 | changing it. |
| @@ -375,9 +378,9 @@ This sets the `read-only' text property; it can be undone with | |||
| 375 | (setq props (cdr (cdr props)))))))) | 378 | (setq props (cdr (cdr props)))))))) |
| 376 | 379 | ||
| 377 | ;;;###autoload | 380 | ;;;###autoload |
| 378 | (defun facemenu-read-color (prompt) | 381 | (defun facemenu-read-color (&optional prompt) |
| 379 | "Read a color using the minibuffer." | 382 | "Read a color using the minibuffer." |
| 380 | (let ((col (completing-read (or "Color: ") | 383 | (let ((col (completing-read (or prompt "Color: ") |
| 381 | (or facemenu-color-alist | 384 | (or facemenu-color-alist |
| 382 | (if (eq 'x window-system) | 385 | (if (eq 'x window-system) |
| 383 | (mapcar 'list (x-defined-colors)))) | 386 | (mapcar 'list (x-defined-colors)))) |