diff options
| author | Eli Zaretskii | 2016-11-04 11:50:48 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-11-04 11:50:48 +0200 |
| commit | f708cb22a1608f8a5aea671afebea44d216d9496 (patch) | |
| tree | 9cb6c5fecb1e67a4afbaeae41df20f0507782e11 | |
| parent | cd05b1db33e9518a0ffce7bfe2e7421a0509492e (diff) | |
| download | emacs-f708cb22a1608f8a5aea671afebea44d216d9496.tar.gz emacs-f708cb22a1608f8a5aea671afebea44d216d9496.zip | |
Clarify doc string of 'transpose-sexps'
* lisp/simple.el (transpose-sexps): Clarify the conditions for
transposing sexps that are lists or strings. Mention the effect
of the prefix argument. (Bug#24860)
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 8f5324f20ec..ff5774e103e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6663,9 +6663,13 @@ are interchanged." | |||
| 6663 | (transpose-subr 'forward-word arg)) | 6663 | (transpose-subr 'forward-word arg)) |
| 6664 | 6664 | ||
| 6665 | (defun transpose-sexps (arg) | 6665 | (defun transpose-sexps (arg) |
| 6666 | "Like \\[transpose-words] but applies to sexps. | 6666 | "Like \\[transpose-chars] (`transpose-chars'), but applies to sexps. |
| 6667 | Does not work on a sexp that point is in the middle of | 6667 | Unlike `transpose-words', point must be between the two sexps and not |
| 6668 | if it is a list or string." | 6668 | in the middle of a sexp to be transposed. |
| 6669 | With non-zero prefix arg ARG, effect is to take the sexp before point | ||
| 6670 | and drag it forward past ARG other sexps (backward if ARG is negative). | ||
| 6671 | If ARG is zero, the sexps ending at or after point and at or after mark | ||
| 6672 | are interchanged." | ||
| 6669 | (interactive "*p") | 6673 | (interactive "*p") |
| 6670 | (transpose-subr | 6674 | (transpose-subr |
| 6671 | (lambda (arg) | 6675 | (lambda (arg) |