diff options
| author | Stefan Kangas | 2022-07-03 17:31:45 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-07-03 18:36:45 +0200 |
| commit | 0835bc40d353ca2a8a96e0aa82a329f7083d8dd0 (patch) | |
| tree | 357c2cf2a58b735d856a171279f49f84e54958af | |
| parent | c8da2a991ee042742f4da65e99f751c14da8354a (diff) | |
| download | emacs-0835bc40d353ca2a8a96e0aa82a329f7083d8dd0.tar.gz emacs-0835bc40d353ca2a8a96e0aa82a329f7083d8dd0.zip | |
Improve calc-dispatch-help docstring
* lisp/calc/calc-misc.el (calc-dispatch-help): Use command
substitutions.
| -rw-r--r-- | lisp/calc/calc-misc.el | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el index bd1635f2bf4..68a7d816372 100644 --- a/lisp/calc/calc-misc.el +++ b/lisp/calc/calc-misc.el | |||
| @@ -61,48 +61,48 @@ | |||
| 61 | 61 | ||
| 62 | ;;;###autoload | 62 | ;;;###autoload |
| 63 | (defun calc-dispatch-help (arg) | 63 | (defun calc-dispatch-help (arg) |
| 64 | "C-x* is a prefix key sequence; follow it with one of these letters: | 64 | "\\`C-x *' is a prefix key sequence; follow it with one of these letters: |
| 65 | 65 | ||
| 66 | For turning Calc on and off: | 66 | For turning Calc on and off: |
| 67 | C calc. Start the Calculator in a window at the bottom of the screen. | 67 | \\`C' `calc'. Start the Calculator in a window at the bottom of the screen. |
| 68 | O calc-other-window. Start the Calculator but don't select its window. | 68 | \\`O' `calc-other-window'. Start the Calculator but don't select its window. |
| 69 | B calc-big-or-small. Control whether to use the full Emacs screen for Calc. | 69 | \\`B' `calc-big-or-small'. Control whether to use the full Emacs screen for Calc. |
| 70 | Q quick-calc. Use the Calculator in the minibuffer. | 70 | \\`Q' `quick-calc'. Use the Calculator in the minibuffer. |
| 71 | K calc-keypad. Start the Calculator in keypad mode (X window system only). | 71 | \\`K' `calc-keypad'. Start the Calculator in keypad mode (X window system only). |
| 72 | E calc-embedded. Use the Calculator on a formula in this editing buffer. | 72 | \\`E' `calc-embedded'. Use the Calculator on a formula in this editing buffer. |
| 73 | J calc-embedded-select. Like E, but select appropriate half of => or :=. | 73 | \\`J' `calc-embedded-select'. Like E, but select appropriate half of => or :=. |
| 74 | W calc-embedded-word. Like E, but activate a single word, i.e., a number. | 74 | \\`W' `calc-embedded-word'. Like E, but activate a single word, i.e., a number. |
| 75 | Z calc-user-invocation. Invoke Calc in the way you defined with `Z I' cmd. | 75 | \\`Z' `calc-user-invocation'. Invoke Calc in the way you defined with `Z I' cmd. |
| 76 | X calc-quit. Turn Calc off. | 76 | \\`X' `calc-quit'. Turn Calc off. |
| 77 | 77 | ||
| 78 | For moving data into and out of Calc: | 78 | For moving data into and out of Calc: |
| 79 | G calc-grab-region. Grab the region defined by mark and point into Calc. | 79 | \\`G' `calc-grab-region'. Grab the region defined by mark and point into Calc. |
| 80 | R calc-grab-rectangle. Grab the rectangle defined by mark, point into Calc. | 80 | \\`R' `calc-grab-rectangle'. Grab the rectangle defined by mark, point into Calc. |
| 81 | : calc-grab-sum-down. Grab a rectangle and sum the columns. | 81 | \\`:' `calc-grab-sum-down'. Grab a rectangle and sum the columns. |
| 82 | _ calc-grab-sum-across. Grab a rectangle and sum the rows. | 82 | \\`_' `calc-grab-sum-across'. Grab a rectangle and sum the rows. |
| 83 | Y calc-copy-to-buffer. Copy a value from the stack into the editing buffer. | 83 | \\`Y' `calc-copy-to-buffer'. Copy a value from the stack into the editing buffer. |
| 84 | 84 | ||
| 85 | For use with Embedded mode: | 85 | For use with Embedded mode: |
| 86 | A calc-embedded-activate. Find and activate all :='s and =>'s in buffer. | 86 | \\`A' `calc-embedded-activate'. Find and activate all :='s and =>'s in buffer. |
| 87 | D calc-embedded-duplicate. Make a copy of this formula and select it. | 87 | \\`D' `calc-embedded-duplicate'. Make a copy of this formula and select it. |
| 88 | F calc-embedded-new-formula. Insert a new formula at current point. | 88 | \\`F' `calc-embedded-new-formula'. Insert a new formula at current point. |
| 89 | N calc-embedded-next. Advance cursor to next known formula in buffer. | 89 | \\`N' `calc-embedded-next'. Advance cursor to next known formula in buffer. |
| 90 | P calc-embedded-previous. Advance cursor to previous known formula. | 90 | \\`P' `calc-embedded-previous'. Advance cursor to previous known formula. |
| 91 | U calc-embedded-update-formula. Re-evaluate formula at point. | 91 | \\`U' `calc-embedded-update-formula'. Re-evaluate formula at point. |
| 92 | \\=` calc-embedded-edit. Use calc-edit to edit formula at point. | 92 | \\``' `calc-embedded-edit'. Use calc-edit to edit formula at point. |
| 93 | 93 | ||
| 94 | Documentation: | 94 | Documentation: |
| 95 | I calc-info. Read the Calculator manual in the Emacs Info system. | 95 | \\`I' `calc-info'. Read the Calculator manual in the Emacs Info system. |
| 96 | T calc-tutorial. Run the Calculator Tutorial using the Emacs Info system. | 96 | \\`T' `calc-tutorial'. Run the Calculator Tutorial using the Emacs Info system. |
| 97 | S calc-summary. Read the Summary from the Calculator manual in Info. | 97 | \\`S' `calc-summary'. Read the Summary from the Calculator manual in Info. |
| 98 | 98 | ||
| 99 | Miscellaneous: | 99 | Miscellaneous: |
| 100 | L calc-load-everything. Load all parts of the Calculator into memory. | 100 | \\`L' `calc-load-everything'. Load all parts of the Calculator into memory. |
| 101 | M read-kbd-macro. Read a region of keystroke names as a keyboard macro. | 101 | \\`M' `read-kbd-macro'. Read a region of keystroke names as a keyboard macro. |
| 102 | 0 (zero) calc-reset. Reset Calc stack and modes to default state. | 102 | \\`0' (zero) `calc-reset'. Reset Calc stack and modes to default state. |
| 103 | 103 | ||
| 104 | Press `*' twice (`C-x * *') to turn Calc on or off using the same | 104 | Press \\`*' twice (\\`C-x * *') to turn Calc on or off using the same |
| 105 | Calc user interface as before (either C-x * C or C-x * K; initially C-x * C)." | 105 | Calc user interface as before (either \\`C-x * C' or \\`C-x * K'; initially \\`C-x * C')." |
| 106 | (interactive "P") | 106 | (interactive "P") |
| 107 | (calc-check-defines) | 107 | (calc-check-defines) |
| 108 | (if calc-dispatch-help | 108 | (if calc-dispatch-help |