diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-26 16:27:43 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-26 16:27:43 +0100 |
| commit | fa047b4a5acd0fc4fb076371629ee1e43d4cd5a1 (patch) | |
| tree | 0331caa3a6654892584a8da73a445e79ef44717b /compat-27.el | |
| parent | f6c5ffc6485ea2d2b0c65e7189895ec06124792e (diff) | |
Add face-extend-pfeature/face-extend
Diffstat (limited to 'compat-27.el')
| -rw-r--r-- | compat-27.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/compat-27.el b/compat-27.el index 5d23529..4f2541d 100644 --- a/compat-27.el +++ b/compat-27.el @@ -393,6 +393,25 @@ the minibuffer was activated, and execute the forms." (with-selected-window window ,@body))) +;;;; Defined in faces.el + +(compat-defun set-face-extend (face extend-p &optional frame) + "Specify whether face FACE should be extended. +EXTEND-P nil means FACE explicitly doesn't extend after EOL. +EXTEND-P t means FACE extends after EOL. + +FRAME nil or not specified means change face on all frames. +Use `set-face-attribute' to \"unspecify\" underlining." + (ignore face extend-p frame)) + +(compat-defun face-extend-p (face &optional frame inherit) + "Return non-nil if FACE specifies a non-nil extend. +If the optional argument FRAME is given, report on face FACE in that frame. +If FRAME is t, report on the defaults for face FACE (for new frames). +If FRAME is omitted or nil, use the selected frame. +Optional argument INHERIT is passed to `face-attribute'." + (ignore face frame inherit)) + ;;;; Defined in image.el (compat-defun image--set-property (image property value) ;; <compat-tests:image-property> |
