diff options
| author | Eli Zaretskii | 2022-11-13 08:56:35 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-11-13 08:56:35 +0200 |
| commit | 695dbd3db41f6899f07b7afb48b2061b8a7cd189 (patch) | |
| tree | d0874a9e0ab68f8c8667b870b43beed821bfb5bd | |
| parent | 47b377f64bef8c3da519b3aa9c5c90b7199ba524 (diff) | |
| download | emacs-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.el | 30 |
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. |
| 370 | INC may be passed as a numeric prefix argument. | 370 | Interactively, INC is the prefix numeric argument, and defaults to 1. |
| 371 | 371 | ||
| 372 | The actual adjustment made depends on the final component of the | 372 | The actual adjustment made depends on the final component of the |
| 373 | keybinding used to invoke the command, with all modifiers removed: | 373 | keybinding 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 | ||
| 379 | After adjusting, continue to read input events and further adjust | 379 | After adjusting, continue to read input events and further adjust |
| 380 | the font size as long as the input event read | 380 | the font size as long as the input event (with all modifiers removed) |
| 381 | \(with all modifiers removed) is one of the above characters. | 381 | is one of the above characters. |
| 382 | 382 | ||
| 383 | Each step scales the height of the default face by the variable | 383 | Each step scales the height of the default face by the factor that |
| 384 | `text-scale-mode-step' (a negative number of steps decreases the | 384 | is the value of `text-scale-mode-step' (a negative number of steps |
| 385 | height by the same amount). As a special case, an argument of 0 | 385 | decreases the height by that factor). As a special case, an argument |
| 386 | will remove any scaling currently active. | 386 | of 0 will remove any scaling currently active, thus resetting the |
| 387 | font size to the original value. | ||
| 387 | 388 | ||
| 388 | This command is a special-purpose wrapper around the | 389 | This 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 | ||
| 472 | Interactively, INCREMENT may be passed as a numeric prefix argument. | 473 | Interactively, INCREMENT is the prefix numeric argument, and defaults |
| 474 | to 1. Positive values of INCREMENT increase the font size, negative | ||
| 475 | values decrease it. | ||
| 473 | 476 | ||
| 474 | The adjustment made depends on the final component of the key binding | 477 | When you invoke this command, it performs the initial change of the |
| 475 | used to invoke the command, with all modifiers removed: | 478 | font size, and after that allows further changes by typing one of the |
| 479 | following 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 | ||
| 481 | After 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 |
| 482 | with all modifiers removed, is one of the above characters. | 486 | final component of the key sequence, with all modifiers removed.) |
| 483 | 487 | ||
| 484 | Buffer-local face adjustments have higher priority than global | 488 | Buffer-local face adjustments have higher priority than global |
| 485 | face adjustments. | 489 | face adjustments. |