[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New command: move-past-close
From: |
Andreas Schwab |
Subject: |
Re: New command: move-past-close |
Date: |
Sat, 06 Nov 2021 00:17:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
On Nov 06 2021, Ivan Sokolov wrote:
> diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
> index e9932df8d0..606a3be425 100644
> --- a/lisp/emacs-lisp/lisp.el
> +++ b/lisp/emacs-lisp/lisp.el
> @@ -872,6 +872,12 @@ raise-sexp
> (defun move-past-close-and-reindent ()
> "Move past next `)', delete indentation before it, then indent after it."
> (interactive)
> + (move-past-close)
> + (newline-and-indent))
> +
> +(defun move-past-close ()
> + "Move past next `)' and delete indentation before it."
That's not a good name, since it does more than moving.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."