From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: on adding a function call to a s-exp Date: Sat, 9 Jun 2018 22:38:05 -0400 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 1528598213 18883 195.159.176.226 (10 Jun 2018 02:36:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2018 02:36:53 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Robert Girault Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 04:36:49 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 1fRqDm-0004n5-DH for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2018 04:36:46 +0200 Original-Received: from localhost ([::1]:42117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRqFt-0005ep-Ey for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 22:38:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRqF5-0005dQ-BA for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 22:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRqF4-0000mp-JU for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 22:38:07 -0400 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:33549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRqF4-0000lP-DF for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 22:38:06 -0400 Original-Received: by mail-oi0-x22b.google.com with SMTP id c6-v6so13981900oiy.0 for ; Sat, 09 Jun 2018 19:38:06 -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:content-transfer-encoding; bh=csx5Rb2/U3irAJIJ4wGTNifFcxr8QxyOTknctrUXdi0=; b=Kq98t5eTsMAgGGFoGaY7y75IXvVRSD+AR865llnkMBJ9har6GlGSmK8a3SB9FkjS0q LdI41wYT1MQB8ZSXvatGVs+6MCo8aqJT518VMlXLnsMBucxxD621gHXcnNdnzQIVUTID RJKkQAj0IIY/jO0a/5ZmtJUnAea6GNbyFQDY6GHEVxWUCyYE/+9O3wr2oluufmxgYUCM XR9h8IHuddeQ16Yrbl29A2tieRjWgnI8GHCHshmAGK6lAWPwJ4jsP99g6SEpgR9Fxuaf 7PR/oYn3INYY7Ud2l6bFcAcuiWAVaSGkjI29Oc592x2in1C+AL+/9im9u8vjWVtFIz1d UqfQ== 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:content-transfer-encoding; bh=csx5Rb2/U3irAJIJ4wGTNifFcxr8QxyOTknctrUXdi0=; b=DAevGp2dz75ZFLO+EN5qD/nz4wlB8JeD5KzZ0Q/rUl9f+0flKD542hTalCsQQkmPxT L1Ef83BHmcxTi/QJK1Iu+kmFUzIsF/54q2nfJPT69HKT6zH9mouWnADiUlRM8Qc/sX3M naWA8HgA4VjZAbgtWR4zwDR5gYj94ci7gvQeWdO5uOyXdks/9ubQUtdfnCCN+9ZGx8MH aCviEuRUvDUQx+Vcva5AbiEkOM7n+PXejKBTeQqfPyVeegbwzBuxGeAgX9q/CODdnEtt QIongl6WEFiXi/mjkm0rHvT2TKVghsVuhLHllbD1BJHw7t4FMFFoKQ7w9BAsz21dbM4a qiDA== X-Gm-Message-State: APt69E15HyOiX2tNWn5YtQkwipe6R6A2UnSarI3TPoWzUTGaHvKqThMi eDbxqQspSquJtcle8sF+7a/4DBBtmFtZ23bumdg= X-Google-Smtp-Source: ADUXVKJBw5/sOy0D/r1v675pI5xpgKBXikpttApw6vmg1F6w3ShxT17bEYphwFOhmdXIHEONO5I/9WpO7mjJ9sPQfxM= X-Received: by 2002:aca:5c46:: with SMTP id q67-v6mr1358901oib.17.1528598285742; Sat, 09 Jun 2018 19:38:05 -0700 (PDT) Original-Received: by 2002:a4a:3b84:0:0:0:0:0 with HTTP; Sat, 9 Jun 2018 19:38:05 -0700 (PDT) In-Reply-To: <864libzkem.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22b 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:117080 Archived-At: 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.