aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2022-06-20 16:05:05 +0300
committerEli Zaretskii2022-06-20 16:05:05 +0300
commit0c8bc8e6d93d901c96770f798f41cb6aaafdb678 (patch)
tree58ac5f9a8899fce094542140ac4a9385b9f92403
parent4cc2f820b500ed2f8fad9baa2cf4a057f271a006 (diff)
downloademacs-0c8bc8e6d93d901c96770f798f41cb6aaafdb678.tar.gz
emacs-0c8bc8e6d93d901c96770f798f41cb6aaafdb678.zip
; Fix recent change of documentation of face-remap
* lisp/face-remap.el (text-scale-adjust): * doc/emacs/display.texi (Text Scale): Fix wording of recent changes to documentation.
-rw-r--r--doc/emacs/display.texi32
-rw-r--r--lisp/face-remap.el2
2 files changed, 20 insertions, 14 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index e0651558452..fbff1d4eb69 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -855,7 +855,7 @@ would be selected if you click a mouse or press @key{RET}.
855@section Text Scale 855@section Text Scale
856 856
857@cindex adjust buffer font size 857@cindex adjust buffer font size
858@cindex font size, increase or decrease 858@cindex font size of @code{default} face, increase or decrease
859@findex text-scale-adjust 859@findex text-scale-adjust
860@kindex C-x C-+ 860@kindex C-x C-+
861@kindex C-x C-- 861@kindex C-x C--
@@ -863,21 +863,27 @@ would be selected if you click a mouse or press @key{RET}.
863@kindex C-x C-0 863@kindex C-x C-0
864@kindex C-wheel-down 864@kindex C-wheel-down
865@kindex C-wheel-up 865@kindex C-wheel-up
866 To increase the font size in the current buffer, type @kbd{C-x C-+} 866 To increase the font size of the @code{default} face in the current
867or @kbd{C-x C-=}. To decrease it, type @kbd{C-x C--}. To restore the 867buffer, type @kbd{C-x C-+} or @kbd{C-x C-=}. To decrease it, type
868default (global) font size, type @kbd{C-x C-0}. These keys are all 868@kbd{C-x C--}. To restore the default (global) font size, type
869bound to the same command, @code{text-scale-adjust}, which looks at 869@kbd{C-x C-0}. These keys are all bound to the same command,
870the last key typed to determine which action to take and adjusts the 870@code{text-scale-adjust}, which looks at the last key typed to
871font size accordingly by changing the height of the default face. 871determine which action to take and adjusts the font size accordingly
872 872by changing the height of the default face.
873 Most faces are affected by these font size changes, but not faces 873
874that have an explicit @code{:height} setting. The two exceptions to 874 Most faces don't have an explicit setting of the @code{:height}
875this are the @code{default} and @code{header} faces: They will both be 875attribute, and thus inherit the height from the @code{default} face.
876scaled even if they have an explicit @code{:height} setting. 876Those faces are also scaled by the above commands.
877
878 Faces other than @code{default} that have an explicit setting of the
879@code{:height} attribute are not affected by these font size changes.
880The @code{header-line} face is an exception: it will be scaled even if
881it has an explicit setting of the @code{:height} attribute.
877 882
878 Similarly, scrolling the mouse wheel with the @kbd{Ctrl} modifier 883 Similarly, scrolling the mouse wheel with the @kbd{Ctrl} modifier
879pressed, when the mouse pointer is above buffer text, will increase or 884pressed, when the mouse pointer is above buffer text, will increase or
880decrease the font size, depending on the direction of the scrolling. 885decrease the font size of the affected faces, depending on the
886direction of the scrolling.
881 887
882 The final key of these commands may be repeated without the leading 888 The final key of these commands may be repeated without the leading
883@kbd{C-x}. For instance, @kbd{C-x C-= C-= C-=} increases the face 889@kbd{C-x}. For instance, @kbd{C-x C-= C-= C-=} increases the face
diff --git a/lisp/face-remap.el b/lisp/face-remap.el
index 75d7333f8a4..d6116714082 100644
--- a/lisp/face-remap.el
+++ b/lisp/face-remap.el
@@ -393,7 +393,7 @@ a top-level keymap, `text-scale-increase' or
393 393
394Most faces are affected by these font size changes, but not faces 394Most faces are affected by these font size changes, but not faces
395that have an explicit `:height' setting. The two exceptions to 395that have an explicit `:height' setting. The two exceptions to
396this are the `default' and `header' faces: They will both be 396this are the `default' and `header-line' faces: they will both be
397scaled even if they have an explicit `:height' setting." 397scaled even if they have an explicit `:height' setting."
398 (interactive "p") 398 (interactive "p")
399 (let ((ev last-command-event) 399 (let ((ev last-command-event)