diff options
| author | Kenichi Handa | 2000-03-21 00:31:38 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-03-21 00:31:38 +0000 |
| commit | b32631c868235afa96bd3c25a7c3dfde75edbdf5 (patch) | |
| tree | e57d4f2bfcad3dfff443895ec687c0298c9cffb8 | |
| parent | 91e947ce5204c2ffc62ea8070cbf044def0fe0fe (diff) | |
| download | emacs-b32631c868235afa96bd3c25a7c3dfde75edbdf5.tar.gz emacs-b32631c868235afa96bd3c25a7c3dfde75edbdf5.zip | |
(read-face-font): Fix TABLE arg to completing-read.
(describe-face): Include `font' attribute in the description.
| -rw-r--r-- | lisp/faces.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 4bdc107275f..a7aad7f8e7f 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -897,8 +897,8 @@ of a global face. Value is the new attribute value." | |||
| 897 | "Read the name of a font for FACE on FRAME. | 897 | "Read the name of a font for FACE on FRAME. |
| 898 | If optional argument FRAME Is nil or omitted, use the selected frame." | 898 | If optional argument FRAME Is nil or omitted, use the selected frame." |
| 899 | (let ((completion-ignore-case t)) | 899 | (let ((completion-ignore-case t)) |
| 900 | (completing-read "Set font attributes of face %s from font: " | 900 | (completing-read (format "Set font attributes of face %s from font: " face) |
| 901 | face (x-list-fonts "*" nil frame)))) | 901 | (mapcar 'list (x-list-fonts "*" nil frame))))) |
| 902 | 902 | ||
| 903 | 903 | ||
| 904 | (defun read-all-face-attributes (face &optional frame) | 904 | (defun read-all-face-attributes (face &optional frame) |
| @@ -1036,7 +1036,8 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 1036 | (:strike-through . "Strike-through") | 1036 | (:strike-through . "Strike-through") |
| 1037 | (:box . "Box") | 1037 | (:box . "Box") |
| 1038 | (:inverse-video . "Inverse") | 1038 | (:inverse-video . "Inverse") |
| 1039 | (:stipple . "Stipple"))) | 1039 | (:stipple . "Stipple") |
| 1040 | (:font . "Font or fontset"))) | ||
| 1040 | (max-width (apply #'max (mapcar #'(lambda (x) (length (cdr x))) | 1041 | (max-width (apply #'max (mapcar #'(lambda (x) (length (cdr x))) |
| 1041 | attrs)))) | 1042 | attrs)))) |
| 1042 | (with-output-to-temp-buffer "*Help*" | 1043 | (with-output-to-temp-buffer "*Help*" |