aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2022-11-13 08:56:35 +0200
committerEli Zaretskii2022-11-13 08:56:35 +0200
commit695dbd3db41f6899f07b7afb48b2061b8a7cd189 (patch)
treed0874a9e0ab68f8c8667b870b43beed821bfb5bd
parent47b377f64bef8c3da519b3aa9c5c90b7199ba524 (diff)
downloademacs-695dbd3db41f6899f07b7afb48b2061b8a7cd189.tar.gz
emacs-695dbd3db41f6899f07b7afb48b2061b8a7cd189.zip
; Improve documentation of text-scale adjust commands
* lisp/face-remap.el (global-text-scale-adjust) (text-scale-adjust): Doc fixes. (Bug#59122)
-rw-r--r--lisp/face-remap.el30
1 files changed, 17 insertions, 13 deletions
diff --git a/lisp/face-remap.el b/lisp/face-remap.el
index 432385587b4..f1530285fb4 100644
--- a/lisp/face-remap.el
+++ b/lisp/face-remap.el
@@ -367,7 +367,7 @@ See `text-scale-increase' for more details."
367;;;###autoload 367;;;###autoload
368(defun text-scale-adjust (inc) 368(defun text-scale-adjust (inc)
369 "Adjust the font size in the current buffer by INC steps. 369 "Adjust the font size in the current buffer by INC steps.
370INC may be passed as a numeric prefix argument. 370Interactively, INC is the prefix numeric argument, and defaults to 1.
371 371
372The actual adjustment made depends on the final component of the 372The actual adjustment made depends on the final component of the
373keybinding used to invoke the command, with all modifiers removed: 373keybinding used to invoke the command, with all modifiers removed:
@@ -377,13 +377,14 @@ keybinding used to invoke the command, with all modifiers removed:
377 \\`0' Reset the font size to the global default 377 \\`0' Reset the font size to the global default
378 378
379After adjusting, continue to read input events and further adjust 379After adjusting, continue to read input events and further adjust
380the font size as long as the input event read 380the font size as long as the input event (with all modifiers removed)
381\(with all modifiers removed) is one of the above characters. 381is one of the above characters.
382 382
383Each step scales the height of the default face by the variable 383Each step scales the height of the default face by the factor that
384`text-scale-mode-step' (a negative number of steps decreases the 384is the value of `text-scale-mode-step' (a negative number of steps
385height by the same amount). As a special case, an argument of 0 385decreases the height by that factor). As a special case, an argument
386will remove any scaling currently active. 386of 0 will remove any scaling currently active, thus resetting the
387font size to the original value.
387 388
388This command is a special-purpose wrapper around the 389This command is a special-purpose wrapper around the
389`text-scale-increase' command which makes repetition convenient 390`text-scale-increase' command which makes repetition convenient
@@ -467,19 +468,22 @@ the `cdr' has the maximum font size, in units of 1/10 pt."
467;;;###autoload (define-key ctl-x-map [(control meta ?0)] 'global-text-scale-adjust) 468;;;###autoload (define-key ctl-x-map [(control meta ?0)] 'global-text-scale-adjust)
468;;;###autoload 469;;;###autoload
469(defun global-text-scale-adjust (increment) 470(defun global-text-scale-adjust (increment)
470 "Globally adjust the font size by INCREMENT. 471 "Change (a.k.a. \"adjust\") the font size of all faces by INCREMENT.
471 472
472Interactively, INCREMENT may be passed as a numeric prefix argument. 473Interactively, INCREMENT is the prefix numeric argument, and defaults
474to 1. Positive values of INCREMENT increase the font size, negative
475values decrease it.
473 476
474The adjustment made depends on the final component of the key binding 477When you invoke this command, it performs the initial change of the
475used to invoke the command, with all modifiers removed: 478font size, and after that allows further changes by typing one of the
479following keys immediately after invoking the command:
476 480
477 \\`+', \\`=' Globally increase the height of the default face 481 \\`+', \\`=' Globally increase the height of the default face
478 \\`-' Globally decrease the height of the default face 482 \\`-' Globally decrease the height of the default face
479 \\`0' Globally reset the height of the default face 483 \\`0' Globally reset the height of the default face
480 484
481After adjusting, further adjust the font size as long as the key, 485(The change of the font size produced by these keys depends on the
482with all modifiers removed, is one of the above characters. 486final component of the key sequence, with all modifiers removed.)
483 487
484Buffer-local face adjustments have higher priority than global 488Buffer-local face adjustments have higher priority than global
485face adjustments. 489face adjustments.