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:07:56 -0700 Message-ID: <877en4aq6r.fsf@ericabrahamsen.net> References: <864libzkem.fsf@gmail.com> <86zi026stt.fsf@gmail.com> <86wov55r33.fsf@gmail.com> <87o9ggdolh.fsf@telefonica.net> <87fu1sdjgn.fsf@telefonica.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 1528823363 18092 195.159.176.226 (12 Jun 2018 17:09:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 17:09:23 +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:09:19 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 1fSmnG-0004Zm-H6 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 19:09:18 +0200 Original-Received: from localhost ([::1]:57504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSmpL-0000Wr-Mg for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 13:11:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSmoy-0000Wg-Df for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:11:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSmov-0004cB-8p for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:11:04 -0400 Original-Received: from [195.159.176.226] (port=46438 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSmov-0004br-1S for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:11:01 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fSmmk-00043M-Cj for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:08:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:fnX0JmiJELHfzADWCenTTKQ/cME= 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:117118 Archived-At: Ó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. Eric