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)
This commit is contained in:
parent
cd05b1db33
commit
f708cb22a1
1 changed files with 7 additions and 3 deletions
|
@ -6663,9 +6663,13 @@ are interchanged."
|
||||||
(transpose-subr 'forward-word arg))
|
(transpose-subr 'forward-word arg))
|
||||||
|
|
||||||
(defun transpose-sexps (arg)
|
(defun transpose-sexps (arg)
|
||||||
"Like \\[transpose-words] but applies to sexps.
|
"Like \\[transpose-chars] (`transpose-chars'), but applies to sexps.
|
||||||
Does not work on a sexp that point is in the middle of
|
Unlike `transpose-words', point must be between the two sexps and not
|
||||||
if it is a list or string."
|
in the middle of a sexp to be transposed.
|
||||||
|
With non-zero prefix arg ARG, effect is to take the sexp before point
|
||||||
|
and drag it forward past ARG other sexps (backward if ARG is negative).
|
||||||
|
If ARG is zero, the sexps ending at or after point and at or after mark
|
||||||
|
are interchanged."
|
||||||
(interactive "*p")
|
(interactive "*p")
|
||||||
(transpose-subr
|
(transpose-subr
|
||||||
(lambda (arg)
|
(lambda (arg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue