Commit b3dc23dd authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

Improve the raise-sexp doc string

* lisp/emacs-lisp/lisp.el (raise-sexp): Try to explain what the
command does (bug#55788).
parent a418730a
Pipeline #18293 failed with stages
in 60 minutes and 21 seconds
......@@ -858,7 +858,22 @@ The option `delete-pair-blink-delay' can disable blinking."
(delete-char 1))))
(defun raise-sexp (&optional arg)
"Raise ARG sexps higher up the tree."
"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))
(setq foo 3)
(+ foo 2)))
and point is before (zot), `M-x raise-sexp' will give you
(let ((foo 2))
(interactive "p")
(let ((s (if (and transient-mark-mode mark-active)
(buffer-substring (region-beginning) (region-end))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment