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

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

Re: on adding a function call to a s-exp


From: João Távora
Subject: Re: on adding a function call to a s-exp
Date: Tue, 12 Jun 2018 15:40:41 +0100

On Mon, Jun 11, 2018 at 2:30 AM, Noam Postavsky <npostavs@gmail.com> wrote:

> On 10 June 2018 at 21:04, Robert Girault <rfrancoisgirault@gmail.com>
> wrote:
>
> >>> In emacs -Q M-( does what you want.
>
> >> Additionally, if the "autopairing/autowrapping" package you are using is
> >> Emacs's built-in M-x electric-pair-mode, it should work exactly as you
> >> explain: "(" leaves the point after the opener and ")" leaves point
> after
> >> the closer (and both wrap the region, obviously).
> >
> > I do not confirm this.  Try this: emacs -Q
> >
> >   + 1 2 3 C-a C-space C-e M-(
> >
> > it will leave the point at where the | character is in ``(+ 1 2 3|)''.
> > It could a version difference.  I'm running
> >
> >   GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN
>
> Yes, I see that too up to version 24.5. In Emacs 25.3 and up (I can't
> build 25.1 successfully here) M-( behaves like you want.
>
> Noam, are you taking about `(' or `M-('? I was referring to the former,
when combined with a "M-x electric-pair-mode".
I would be surprised it doesn't work like that in 24.4 (can't check now
though, my build segfauls for some reason).

-- 
João Távora


reply via email to

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