diff options
| author | Eli Zaretskii | 2020-12-19 20:54:11 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-12-19 20:54:11 +0200 |
| commit | 52b30834fb1cf7bb20ed08ec8dc7d2d9b8a770e6 (patch) | |
| tree | 59f93200e61fea5b4a9ff21f2731f38dbeea0701 | |
| parent | b3fe0ac62e97ea2e05fc2767989dbd7e83bc0e5c (diff) | |
| download | emacs-52b30834fb1cf7bb20ed08ec8dc7d2d9b8a770e6.tar.gz emacs-52b30834fb1cf7bb20ed08ec8dc7d2d9b8a770e6.zip | |
* lisp/face-remap.el (face-remap-set-base): Doc fix. (Bug#45264)
| -rw-r--r-- | lisp/face-remap.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/face-remap.el b/lisp/face-remap.el index 028269a4b0c..cfda6428c3a 100644 --- a/lisp/face-remap.el +++ b/lisp/face-remap.el | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | ;; | 33 | ;; |
| 34 | ;; (face RELATIVE_SPECS_1 RELATIVE_SPECS_2 ... BASE_SPECS) | 34 | ;; (face RELATIVE_SPECS_1 RELATIVE_SPECS_2 ... BASE_SPECS) |
| 35 | ;; | 35 | ;; |
| 36 | ;; The "specs" values are a lists of face names or face attribute-value | 36 | ;; The "specs" values are lists of face names or face attribute-value |
| 37 | ;; pairs, and are merged together, with earlier values taking precedence. | 37 | ;; pairs, and are merged together, with earlier values taking precedence. |
| 38 | ;; | 38 | ;; |
| 39 | ;; The RELATIVE_SPECS_* values are added by `face-remap-add-relative' | 39 | ;; The RELATIVE_SPECS_* values are added by `face-remap-add-relative' |
| @@ -183,13 +183,13 @@ to apply on top of the normal definition of FACE." | |||
| 183 | This causes the remappings specified by `face-remap-add-relative' | 183 | This causes the remappings specified by `face-remap-add-relative' |
| 184 | to apply on top of the face specification given by SPECS. | 184 | to apply on top of the face specification given by SPECS. |
| 185 | 185 | ||
| 186 | The remaining arguments, SPECS, should form a list of faces. | 186 | The remaining arguments, SPECS, specify the base of the remapping. |
| 187 | Each list element should be either a face name or a property list | 187 | Each one of SPECS should be either a face name or a property list |
| 188 | of face attribute/value pairs, like in a `face' text property. | 188 | of face attribute/value pairs, like in a `face' text property. |
| 189 | 189 | ||
| 190 | If SPECS is empty, call `face-remap-reset-base' to use the normal | 190 | If SPECS is empty or a single face `eq' to FACE, call `face-remap-reset-base' |
| 191 | definition of FACE as the base remapping; note that this is | 191 | to use the normal definition of FACE as the base remapping; note that |
| 192 | different from SPECS containing a single value nil, which means | 192 | this is different from SPECS containing a single value nil, which means |
| 193 | not to inherit from the global definition of FACE at all." | 193 | not to inherit from the global definition of FACE at all." |
| 194 | (while (and (consp specs) (not (null (car specs))) (null (cdr specs))) | 194 | (while (and (consp specs) (not (null (car specs))) (null (cdr specs))) |
| 195 | (setq specs (car specs))) | 195 | (setq specs (car specs))) |