From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#49598: 28.0.50; [Feature Request] Support slurping and barfing operations in lisp-mode Date: Sat, 17 Jul 2021 16:21:05 +0200 Message-ID: <87zgul3tta.fsf@gnus.org> References: <871r7yqm7c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23092"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49598@debbugs.gnu.org To: Liang-Jie Lee Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 17 16:22:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4lCk-0005oR-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Jul 2021 16:22:10 +0200 Original-Received: from localhost ([::1]:47442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4lCj-00078y-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Jul 2021 10:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4lCc-00078i-MV for bug-gnu-emacs@gnu.org; Sat, 17 Jul 2021 10:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4lCc-0004we-F5 for bug-gnu-emacs@gnu.org; Sat, 17 Jul 2021 10:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4lCc-0004LT-AK for bug-gnu-emacs@gnu.org; Sat, 17 Jul 2021 10:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jul 2021 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49598 X-GNU-PR-Package: emacs Original-Received: via spool by 49598-submit@debbugs.gnu.org id=B49598.162653168216646 (code B ref 49598); Sat, 17 Jul 2021 14:22:02 +0000 Original-Received: (at 49598) by debbugs.gnu.org; 17 Jul 2021 14:21:22 +0000 Original-Received: from localhost ([127.0.0.1]:54458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4lBw-0004KK-AC for submit@debbugs.gnu.org; Sat, 17 Jul 2021 10:21:21 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4lBq-0004Jy-AU for 49598@debbugs.gnu.org; Sat, 17 Jul 2021 10:21:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VbKllUCwzQzdyXmDriqTok47ZkcJQMDLLltJMmwYJpQ=; b=omY2azGwRscnk6y3/u55x/AnG2 Za+7B4U9Jpa/gsfI2ghrcO1WZ1ho/cJM8q8cQTZKsWoeIYLmq9lmgmQn84eOH/PVZPBv9GasheAMs VOTRWXAYDBF5DZFVcD/wGy22hA8NHj9Dnvbp7Etvxv5B5UO0u+klU4bnA8PTEDcDzKJ4=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4lBh-0007yu-Te; Sat, 17 Jul 2021 16:21:08 +0200 X-Now-Playing: Steven Brown's _Live in Tilburg_: "intro-Out of My Body" In-Reply-To: <871r7yqm7c.fsf@gmail.com> (Liang-Jie Lee's message of "Sat, 17 Jul 2021 00:04:39 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210135 Archived-At: Liang-Jie Lee writes: > Slurping is the operation to expand current S-expression by pulling in > the next outer S-expression, for example (| is cursor): > > (foo (bar |baz) abc efg) -> (foo (bar |baz abc) efg) > > Barfing is the opposite, contracting the S-expression by pushing out > it's last-most form, for example: > > (foo (bar |baz abc) efg) -> (foo (bar |baz) abc efg) I'm not quite sure what the request is here -- to add key bindings for `paredit-forward-slurp-sexp' and `paredit-forward-barf-sexp' to `emacs-lisp-mode? (Or `lisp-mode-shared-map', I guess...) I'm not sure these are commands that are generally used that much to warrant doing that, and I think people that are really into these things just enable paredit mode (or something similar). But I may be wrong in that -- if there's a clamouring for these commands having a key binding in Lispish modes, I wouldn't be against adding them. What do the rest of you people think? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no