aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJimmy Aguilar Mena2019-09-21 23:34:40 +0200
committerJimmy Aguilar Mena2019-10-14 14:18:42 +0200
commit424e6f54e5c3592f32016267179171b40dafbb99 (patch)
tree1159d5075e6cac06f938a0a59006e7d2cc67543e /doc
parent38ee12d5a2df150e6ba9023d968d1c49c85ca6e1 (diff)
downloademacs-424e6f54e5c3592f32016267179171b40dafbb99.tar.gz
emacs-424e6f54e5c3592f32016267179171b40dafbb99.zip
Document new :extend face attribute in manuals.
Some stylistic corrections in src/xdisp.c and src/xfaces.c.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/mark.texi5
-rw-r--r--doc/lispref/display.texi22
2 files changed, 27 insertions, 0 deletions
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi
index bbeb4cb039e..f012d72fc2a 100644
--- a/doc/emacs/mark.texi
+++ b/doc/emacs/mark.texi
@@ -23,6 +23,11 @@ When the mark is active, we say also that the region is active; Emacs
23indicates its extent by highlighting the text within it, using the 23indicates its extent by highlighting the text within it, using the
24@code{region} face (@pxref{Face Customization}). 24@code{region} face (@pxref{Face Customization}).
25 25
26This is one of the few faces that has the @code{:extend t} attribute
27by default, which implies that the same face is used to highlight the
28text and space between end of line and the window border. To
29highlight only the text you could set this attribute to @code{nil}.
30
26@cindex deactivating the mark 31@cindex deactivating the mark
27 After certain non-motion commands, including any command that 32 After certain non-motion commands, including any command that
28changes the text in the buffer, Emacs automatically @dfn{deactivates} 33changes the text in the buffer, Emacs automatically @dfn{deactivates}
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 61bd4ce8830..1678d32db0a 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2482,6 +2482,17 @@ faces (@pxref{Displaying Faces}). If the face to inherit from is
2482never merges @code{:inherit} attributes. If a list of faces is used, 2482never merges @code{:inherit} attributes. If a list of faces is used,
2483attributes from faces earlier in the list override those from later 2483attributes from faces earlier in the list override those from later
2484faces. 2484faces.
2485
2486@item :extend
2487Whether or not this face will be extended until the end of the window.
2488The value should be @code{t} to extend until end of the window using
2489this face or @code{nil} fill the space between the end of the line and
2490the end of the window with the default face. When a face is conformed
2491by merging multiple other faces; only those with @code{:extend t} will
2492be merged to conform a new face to extend until end of window. By
2493default only @code{region} and @code{hl-line} have this attribute set
2494to @code{t}.
2495
2485@end table 2496@end table
2486 2497
2487@defun font-family-list &optional frame 2498@defun font-family-list &optional frame
@@ -2842,6 +2853,11 @@ This sets the @code{:inverse-video} attribute of @var{face} to
2842This swaps the foreground and background colors of face @var{face}. 2853This swaps the foreground and background colors of face @var{face}.
2843@end deffn 2854@end deffn
2844 2855
2856@deffn Command set-face-extend face extend &optional frame
2857This sets the @code{:extend} attribute of @var{face} to
2858@var{extend}.
2859@end deffn
2860
2845 The following functions examine the attributes of a face. They 2861 The following functions examine the attributes of a face. They
2846mostly provide compatibility with old versions of Emacs. If you don't 2862mostly provide compatibility with old versions of Emacs. If you don't
2847specify @var{frame}, they refer to the selected frame; @code{t} refers 2863specify @var{frame}, they refer to the selected frame; @code{t} refers
@@ -2900,6 +2916,12 @@ This function returns non-@code{nil} if face @var{face} specifies
2900a non-@code{nil} @code{:inverse-video} attribute. 2916a non-@code{nil} @code{:inverse-video} attribute.
2901@end defun 2917@end defun
2902 2918
2919@defun face-extend-p face &optional frame
2920This function returns non-@code{nil} if face @var{face} specifies
2921a non-@code{nil} @code{:extend} attribute.
2922@end defun
2923
2924
2903@node Displaying Faces 2925@node Displaying Faces
2904@subsection Displaying Faces 2926@subsection Displaying Faces
2905@cindex displaying faces 2927@cindex displaying faces