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: Sun, 10 Jun 2018 05:46:18 +0100 Message-ID: References: <864libzkem.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 1528606048 18169 195.159.176.226 (10 Jun 2018 04:47:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 04:47:28 +0000 (UTC) Cc: Help Gnu Emacs mailing list , Robert Girault To: Noam Postavsky Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 06:47:24 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 1fRsGA-0004aD-AU for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 06:47:22 +0200 Original-Received: from localhost ([::1]:42702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRsIH-0005GD-Ak for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 00:49:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRsFV-0003zH-0w for help-gnu-emacs@gnu.org; Sun, 10 Jun 2018 00:46:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRsFU-0003k2-0x for help-gnu-emacs@gnu.org; Sun, 10 Jun 2018 00:46:41 -0400 Original-Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]:54077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRsFT-0003jM-RC for help-gnu-emacs@gnu.org; Sun, 10 Jun 2018 00:46:39 -0400 Original-Received: by mail-it0-x232.google.com with SMTP id a195-v6so6784408itd.3 for ; Sat, 09 Jun 2018 21:46:39 -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=uyeAKmvKj05yhukx/vypnh8vD08n1lbYdbMBxLBy2ps=; b=dyWlmNkwCsZ9e4yGZT74yGHU8/EgS/TajyYPNFhvH62bQrYhdiFw7tOYmKXYPJ7JT6 tRmQ4U6pK6eXIl+05naG6Mr80AZ5bt4g00bPK//j7poh6rafhFrczSe0H2ABLTT2Z/l/ K8dXTo0VVxa5kT215kRnLkZsvBliwXabsXkFPQv4FR90ltrfXDrJdTSZ/hFr3hISDPpV LKyWvZ11XnXQUnXbO6YkXoZfR8CjOfBHNq9E0q0ldugcoUXNLJmSvSiB/Ylk8Gi8WE88 +EO7JJJlSzpHQYwiGQUwreAyYrxEtr9iR9EaCXbuWIn6KNBURQUdebSuEvuq8f6WFQMl W8iQ== 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=uyeAKmvKj05yhukx/vypnh8vD08n1lbYdbMBxLBy2ps=; b=UQHgrzZUkLRDriCZl/F1YUbERra2L4iqGuFWD/5RncnSUVf8Frsu0MYZ6RuNzaFnkk Qh3FnR3RMkO9yp8NW1U6zdcz3u8ZDkjist/ktEmY8fjofOgeXwWeluNpcoktlfLV/0sb RW8fkXmVRlj0umpuA32rXpPkhELv/89IKNxKJHYK8Dt0UUXZiMOQthhVHSK0V/bUa26r 5k01QGDg5+feEqY4juNptZKE+SobDicjJtTfw7xc7+CKpiS2MaB0/M/WFCubab2CY5c/ mgaevkL2/I8gQffERPynZlnhoeJjU0721XFGz37Fxt2W+Yz4Jk2TWpiwFgxAFKHIIiRH S4UA== X-Gm-Message-State: APt69E2BgA/AdhisieiCm98RxcGhkk32kfBFDYWs/C4Y1x7kRNzBsD4B Ejo1PYDejsIOePx3zDC+qMDWTsPc9r92PqM5TZE= X-Google-Smtp-Source: ADUXVKKZ5qZukMhLCDqH7xpe1FMXK4x1oR9J9hUYk+ry6W8BYMSuKWONoGMHfE91rwpide5UWMiJonLpyDYvoY3qQak= X-Received: by 2002:a24:8b81:: with SMTP id g123-v6mr6894927ite.67.1528605998663; Sat, 09 Jun 2018 21:46:38 -0700 (PDT) Original-Received: by 2002:a4f:2246:0:0:0:0:0 with HTTP; Sat, 9 Jun 2018 21:46:18 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::232 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:117081 Archived-At: 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 it, > > and press (, it surrounds the region with parentheses, (...|), but it > > 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 (|...) so > > 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 boundaries. > > 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). Jo=C3=A3o --=20 Jo=C3=A3o T=C3=A1vora