From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#50929: Add slurp-sexp and barf-sexp Date: Mon, 08 Nov 2021 15:23:14 +0000 Message-ID: <8735o6zn6l.fsf@posteo.net> References: <87czop2nre.fsf@posteo.net> <871r55w4dg.fsf@gnus.org> <87v92h1708.fsf@posteo.net> <87o86zmhg5.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 50929@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 08 16:24:16 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 1mk6VM-000986-8e for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 16:24:16 +0100 Original-Received: from localhost ([::1]:49600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk6VK-0006jP-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 10:24:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk6V8-0006gC-Ko for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 10:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mk6V8-0007JL-CD for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 10:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mk6V8-0006yZ-5w for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 10:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Nov 2021 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50929 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch wontfix Original-Received: via spool by 50929-submit@debbugs.gnu.org id=B50929.163638501626774 (code B ref 50929); Mon, 08 Nov 2021 15:24:02 +0000 Original-Received: (at 50929) by debbugs.gnu.org; 8 Nov 2021 15:23:36 +0000 Original-Received: from localhost ([127.0.0.1]:59121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk6UY-0006xZ-Jg for submit@debbugs.gnu.org; Mon, 08 Nov 2021 10:23:36 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:60559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk6UW-0006xH-FD for 50929@debbugs.gnu.org; Mon, 08 Nov 2021 10:23:26 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B2DFF24002A for <50929@debbugs.gnu.org>; Mon, 8 Nov 2021 16:23:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636384997; bh=Z+RdVmwC6Yp7+NbMyl6VL3FUp/LVqW6ZQiRpDyYwuAM=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=k/clLjqVG5AIXlZSx+xEvva3pBAFQq49eCqhtMac9uLQX/LU/UDJe9pGe7ufX4Wk9 1/0bXT30I7X7Ty3bvn/gmf9irbrq338orhszz7KygnsJOph841nY9b5i8qPfuGoWO3 vKNr7zajJ2B3PB+p2zFbhk8Glyx2cf8As8yXHdDesgeudcPYlnEOl7txLMIKSk5tCy Ms1upRGX3mjk2GrTDHRlrKykLgKxqaDgi/PwLziaimGMnSEcapTa2hCaX/1X7hYc2B btlImtEzDD544YjKIHRIkh1Ufi4b6+J0PHrchzy/9ELHsCclbfmKrdatFHz0i98qtl 908XWxcZPEvSg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HnvyD2tgmz6tpJ; Mon, 8 Nov 2021 16:23:16 +0100 (CET) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: (Richard Stallman's message of "Sun, 07 Nov 2021 22:08:01 -0500") 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:219358 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > What does slurp-sexp do? > What does barf-sexp do? Given two expressions like (save-excursion |(foo)) (bar) where "|" is the position of the point, slurp-sexp would transform this into (save-excursion |(foo) (bar)) and barf-sexp would reverse this change. > If we want to have those operations, let's find less gross names for > them. I reused the names that other structural editing packages use, but they could be renamed into somthing like pull-sexp/ and push-sexp just as well. -- Philip Kaludercic