From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: on adding a function call to a s-exp Date: Tue, 12 Jun 2018 10:26:58 -0700 Message-ID: <87y3fjapb1.fsf@ericabrahamsen.net> References: <864libzkem.fsf@gmail.com> <86zi026stt.fsf@gmail.com> <86wov55r33.fsf@gmail.com> <87o9ggdolh.fsf@telefonica.net> <87fu1sdjgn.fsf@telefonica.net> <877en4aq6r.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1528824507 1797 195.159.176.226 (12 Jun 2018 17:28:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 17:28:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 19:28:23 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 1fSn5j-0000NT-Bh for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 19:28:23 +0200 Original-Received: from localhost ([::1]:57647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSn7q-0000dK-DX for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 13:30:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSn7Q-0000dB-TU for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSn7L-00070q-8c for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:30:08 -0400 Original-Received: from [195.159.176.226] (port=47267 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSn7L-0006zv-11 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:30:03 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fSn5A-0008BE-G3 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:27:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:DhfXErSX226kZ0vuTQRGVja16Fg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:117121 Archived-At: João Távora writes: > On Tue, Jun 12, 2018 at 6:07 PM, Eric Abrahamsen > wrote: > >> Óscar Fuentes writes: >> >> > João Távora writes: >> > >> > [...] >> > >> > It is true that paredit is irritating sometimes, but very convenient >> > otherwise. >> > >> > For the benefit of those who don't know it, let's put a simple example. >> > Suppose that you have: >> > >> > (foo) >> > (bar) >> > >> > but now you wish to wrap those function calls inside a conditional. So >> > you write: >> > >> > (when something >> > (foo) >> > (bar)) >> > >> > Which requires moving the cursor through several lines just to add a >> > parenthesis. >> > >> > With paredit, you write >> > >> > (when something_) >> > (foo) >> > (bar) >> >> I typically write "M-2 (when...", which wraps automatically. Unless I'm >> wrapping some huge chunk where it isn't obvious how many sexps should be >> wrapped. >> > > Nice tip, but you mean M-2 M-( w h e n , right? (of course you get to hold > the M). No, seems to work fine for me with just the plain parenthesis (to be clear, I'm still talking about paredit-mode, where left parenthesis is `paredit-open-round'.