emacs-devel
[Top][All Lists]
Advanced

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

Re: paren-close-dwim: elisp function of a newbie; feedback welcome


From: Óscar Fuentes
Subject: Re: paren-close-dwim: elisp function of a newbie; feedback welcome
Date: Sun, 29 Sep 2013 12:11:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Florian <address@hidden> writes:

[snip]

> If you are writing a nested expression, like the following, and '_' is
> your cursor,
>
> { (a * [(b) - (c) _
>
> and you have bound ')' to paren-close-dwim (dwim = do what I mean),
> three succeeding presses of ')' will produce the sequence: ])}. Or in
> other words: ')' will produce the correct next matching closing
> bracket regarding the position of your cursor.

I'll like to match the space separators too. With your example, pressing
`)' thrice would result in:

{ (a * [(b) - (c)]) }_

Note how the space between `(c) _' disappeared and how an space was
inserted before `}'.

Without this sub-feature, the user would be forced to edit after
pressing `)'.




reply via email to

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