bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55788: [PATCH] Improve documentation of the raise-sexp command


From: Juri Linkov
Subject: bug#55788: [PATCH] Improve documentation of the raise-sexp command
Date: Mon, 06 Jun 2022 10:33:25 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>   "Raise ARG sexps higher up the tree.
> This means that the ARGth enclosing form will be deleted and
> replaced with the form that follows point.
>
> For instance, if you have:
>
>   (let ((foo 2))
>     (progn
>       (setq foo 3)
>       (zot)
>       (+ foo 2)))
>
> and point is before (zot), `M-x raise-sexp' will give you
>
>   (let ((foo 2))
>     (zot))"

It seems that new docstring suggests that `M-2 M-x raise-sexp' will give

  (zot)

whereas really it will give

  (let ((foo 2))
    (zot)
    (+ foo 2))

since ARG is the number of sexps that follow point and that will be raised.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]