From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.help Subject: Re: on adding a function call to a s-exp Date: Tue, 12 Jun 2018 15:24:17 +0100 Message-ID: References: <864libzkem.fsf@gmail.com> <86tvqa6sly.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528813398 18801 195.159.176.226 (12 Jun 2018 14:23:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 14:23:18 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org List" To: Robert Girault Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 16:23:13 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSkCR-0004hh-TU for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 16:23:08 +0200 Original-Received: from localhost ([::1]:55927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSkEY-0004Vq-PV for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 10:25:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSkE1-0004Th-Ox for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 10:24:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSkE0-0005tE-Hs for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 10:24:45 -0400 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:41149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSkE0-0005rP-Ac for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 10:24:44 -0400 Original-Received: by mail-io0-x230.google.com with SMTP id t5-v6so28244757ioa.8 for ; Tue, 12 Jun 2018 07:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XsHzXMGUVPaiwBWHRsOLSSTYtYbN4ezkhSeSrNvPK38=; b=T3nv1dJCSGR6z6Kw8P7zgAUXzFvgqzgb9e6Nic4kLoRs/DXfWRN16jKDiKyNxGUreM HlyLEA+QQfs89uf/Js+hl9zuORX4UNftBDuVFKlxTX9OUlNKmsOd9EPllw+G8BhqnJLx LngoGbQ0j6vSkXkPfh1JQiGK24bjoM0EQ4lxreHzE6ZsV8RVzwcXCRGEobg95SR2O3fi /k9Ie2hLpDMjSLxLRdVgie+mIYi/gQpPviBLhnIZbSWywXK960sqygUQkpHmXAtEGBzy KPAhM/fBqS7+bwNAg+yvLji/u1bu21v/wUsqZ6X0UrBvE4ev/csr9hT9ToeXBJVsMF08 yxUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XsHzXMGUVPaiwBWHRsOLSSTYtYbN4ezkhSeSrNvPK38=; b=SGAWeMxRvDIqW1osHxoyW/WAKemnQok2OojhhBVqKCpB9CPHi8umnDqRB4YTOWyMJp dhpoBDw311+b+NlwuAdC+ZHlGdz9ovHq+fDCmNWd0JEIJ1eZXiTstDaOTJKh1LnQirhY uuedn0+wCqvtfgwrZonXChZ2i00NI5kDjHebv9SNRfd9Tfob3pKPXijd1RsLA5joKcTA N1IWAHycoo/WONF4CtUJqNElTf2sTyTheI0QHUg8DlHw2qUmEOqPzjjMD8kd8hi5fM4W HEqNke4s0BpfL2MdWiNAXJ8CKp+Qrt6EvYmvpo7FsOBzNgIOQ4KGj1DVImMyUZQY0uG/ Qm8w== X-Gm-Message-State: APt69E2Tufyl3rfo5G/zB9oNJ39aFp1madBuuYawt7JRloTbqQlBr62r j0iC3Q52dCffokYKFf2OFmWFiaDRTZNU8J93q6Q= X-Google-Smtp-Source: ADUXVKLkNlVuiqGx8/5YZhmy5ARn/9UCYyxG8cb83Dck0ROdczsjo/r8vn1qjIKJIjP+r5wrS1F75s4ihEFXpBJv+H8= X-Received: by 2002:a6b:9041:: with SMTP id s62-v6mr624777iod.231.1528813478396; Tue, 12 Jun 2018 07:24:38 -0700 (PDT) Original-Received: by 2002:a4f:2246:0:0:0:0:0 with HTTP; Tue, 12 Jun 2018 07:24:17 -0700 (PDT) In-Reply-To: <86tvqa6sly.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117109 Archived-At: On Mon, Jun 11, 2018 at 2:04 AM, Robert Girault wrote: > Jo=C3=A3o T=C3=A1vora writes: > > > On Sun, Jun 10, 2018 at 3:38 AM, Noam Postavsky > wrote: > > > >> On 9 June 2018 at 18:05, Robert Girault > >> wrote: > >> > In Lisp mode, when I select a region, in whatever way of selecting i= t, > >> > and press (, it surrounds the region with parentheses, (...|), but i= t > >> > >> Hmm, that must be some package you have installed, by default ( just > >> inserts a ( at point without wrapping anything. > >> > >> > puts the point where ``|'' is. I'd like the point to be at (|...) s= o > >> > I can add a function call to that region without having to move the > >> > point back to the beginning of the region. > >> > > >> > I'm surprised this isn't the default behavior. > >> > >> In emacs -Q M-( does what you want. > >> > >> M-( runs the command insert-parentheses (found in global-map), which > >> is an interactive compiled Lisp function in =E2=80=98lisp.el=E2=80= =99. > >> > >> It is bound to M-(. > >> > >> (insert-parentheses &optional ARG) > >> > >> Enclose following ARG sexps in parentheses. > >> Leave point after open-paren. > >> [...] > >> If region is active, insert enclosing characters at region boundarie= s. > >> > >> 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 aft= er > > 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 > > Oh then I take it back, the improved electric-pair-mode only made it in 24.4. BTW why are you running a 5year+ old emacs version? Jo=C3=A3o