aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMiles Bader2008-06-04 05:38:04 +0000
committerMiles Bader2008-06-04 05:38:04 +0000
commit56c73dec5cf9f392a3ddfa6472f8eb61ff1cbaf9 (patch)
tree7a1b43cf57f200ee7ea98e68a123cd23f91c4ae4 /doc
parent2a1e0c92c318a2c0ba436b4435cd0fe2f7f75261 (diff)
downloademacs-56c73dec5cf9f392a3ddfa6472f8eb61ff1cbaf9.tar.gz
emacs-56c73dec5cf9f392a3ddfa6472f8eb61ff1cbaf9.zip
Add adjust-buffer-face-height command
... and move face-height adjustment bindings into ctl-x-map using it. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1203
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog7
-rw-r--r--doc/emacs/display.texi46
2 files changed, 42 insertions, 11 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 314c42d4dff..41c3e3225bf 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,10 @@
12008-06-04 Miles Bader <miles@gnu.org>
2
3 * display.texi (Temporary Face Changes): Add
4 `adjust-buffer-face-height'. Rewrite description of
5 `increase-buffer-face-height' and `decrease-default-face-height' now
6 that they aren't bound by default.
7
12008-06-03 Miles Bader <miles@gnu.org> 82008-06-03 Miles Bader <miles@gnu.org>
2 9
3 * display.texi (Temporary Face Changes): New node. 10 * display.texi (Temporary Face Changes): New node.
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 9cf8c986d4a..47650ec5601 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1178,24 +1178,48 @@ fringe when positioned on that newline.
1178These are commands which temporarily change the default face used to 1178These are commands which temporarily change the default face used to
1179display text in a buffer. 1179display text in a buffer.
1180 1180
1181@cindex adjust buffer face height
1182@findex adjust-buffer-face-height
1183@kindex C-x C-+
1184@kindex C-x C--
1185@kindex C-x C-=
1186@kindex C-x C-0
1187To increase the height of the default face in the current buffer one
1188step, type @kbd{C-x C-+} or @kbd{C-x C-=}. To decrease it one step,
1189type @kbd{C-x C--}. To restore the default (global) face height, type
1190@kbd{C-x C-0}. These keys are all bound to the same command,
1191@code{adjust-buffer-face-height}, which looks at the last key typed to
1192determine the adjustment to make.
1193
1194The final key of these commands may be repeated without the leading
1195@kbd{C-x} -- for instance, @kbd{C-x C-= C-= C-=} increases the face
1196height by three steps.
1197
1198Each step scales the height of the default face by the value of the
1199variable @code{text-scale-mode-step} (a negative number of steps
1200decreases the height by the same amount). As a special case, an
1201argument of 0 will remove any scaling currently active.
1202
1203This command is a special-purpose wrapper around the
1204@code{increase-buffer-face-height} command which makes repetition
1205convenient even when it is bound in a non-top-level keymap. For
1206binding in a top-level keymap, @code{increase-buffer-face-height} or
1207@code{decrease-default-face-height} may be more appropriate."
1208
1181@cindex increase buffer face height 1209@cindex increase buffer face height
1182@findex increase-buffer-face-height 1210@findex increase-buffer-face-height
1183@cindex decrease buffer face height 1211@cindex decrease buffer face height
1184@findex decrease-buffer-face-height 1212@findex decrease-buffer-face-height
1185@findex text-scale-mode 1213The @code{increase-buffer-face-height} and
1186To increase the size of the font used to display text in the current 1214@code{decrease-buffer-face-height} commands increase or decrease the
1187buffer, type @kbd{C-=} or @kbd{C-+} 1215height of the default face in the current buffer by one step. With a
1188(@code{increase-buffer-face-height}). With a numeric prefix argument, 1216numeric prefix argument, the size will be increased/decreased by that
1189the size will be increased by that many steps (the default is 1 step); 1217many steps; each step scales the font height by the value of the
1190each step scales the font height by the value of the variable 1218variable @code{text-scale-mode-step}. If repeated, this command has a
1191@code{text-scale-mode-step}. If repeated, this command has a
1192cumulative effect. As a special case, a prefix argument of 0 will 1219cumulative effect. As a special case, a prefix argument of 0 will
1193remove any scaling currently active. 1220remove any scaling currently active.
1194 1221
1195To decrease the size of the text, type @kbd{C--} 1222@findex text-scale-mode
1196(@code{decrease-buffer-face-height}). The behavior is similar to that
1197of @code{increase-buffer-face-height}, but in reverse.
1198
1199These commands automatically enable or disable the 1223These commands automatically enable or disable the
1200@code{text-scale-mode} minor-mode, depending on whether the current 1224@code{text-scale-mode} minor-mode, depending on whether the current
1201font scaling is other than 1 or not. 1225font scaling is other than 1 or not.