From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: on adding a function call to a s-exp Date: Tue, 12 Jun 2018 19:04:56 +0200 Message-ID: <87fu1sdjgn.fsf@telefonica.net> References: <864libzkem.fsf@gmail.com> <86zi026stt.fsf@gmail.com> <86wov55r33.fsf@gmail.com> <87o9ggdolh.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 1528823046 28858 195.159.176.226 (12 Jun 2018 17:04:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 17:04:06 +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:04:02 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 1fSmi8-0007NW-DR for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 19:04:00 +0200 Original-Received: from localhost ([::1]:57479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSmkF-00064P-JV for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 13:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSmjL-0005sy-Ae for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:05:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSmjH-000198-Ok for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:05:15 -0400 Original-Received: from [195.159.176.226] (port=37824 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSmjH-00017J-IF for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 13:05:11 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fSmh8-00069k-J5 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2018 19:02:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:2QYKRIldE2Ese2qee101j99yjrQ= 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:117117 Archived-At: 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) (the underscore represents the position of the cursor). Now you can incorporte the function calls inside the `when' with paredit-forward-slurp-sexp. Things like this, combined with aggressive-indent-mode, makes editing Lispy languages quite pleasant, IMHO. In the past I worked like Drew describes, which is fine, but now I need to worry less about putting the parens on the right place. Paredit does that for me.