From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#50929: [External] : bug#50929: Add slurp-sexp and barf-sexp Date: Tue, 9 Nov 2021 19:15:46 +0000 Message-ID: References: <87czop2nre.fsf@posteo.net> <871r55w4dg.fsf@gnus.org> <87v92h1708.fsf@posteo.net> <87o86zmhg5.fsf@gnus.org> <8735o6zn6l.fsf@posteo.net> <87wnlhy1au.fsf@posteo.net> <87sfw5xj7j.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34417"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "larsi@gnus.org" , "50929@debbugs.gnu.org" <50929@debbugs.gnu.org>, Richard Stallman To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 09 20:16:12 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 1mkWbM-0008mH-OL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 20:16:12 +0100 Original-Received: from localhost ([::1]:33134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkWbK-0005B7-RE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 14:16:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkWbC-000596-FJ for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 14:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkWbC-00055C-6X for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 14:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkWbC-0001Uo-1z for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 14:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Nov 2021 19:16:01 +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.16364853585740 (code B ref 50929); Tue, 09 Nov 2021 19:16:01 +0000 Original-Received: (at 50929) by debbugs.gnu.org; 9 Nov 2021 19:15:58 +0000 Original-Received: from localhost ([127.0.0.1]:35836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkWb5-0001UT-JH for submit@debbugs.gnu.org; Tue, 09 Nov 2021 14:15:58 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:38638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkWb3-0001UK-3E for 50929@debbugs.gnu.org; Tue, 09 Nov 2021 14:15:54 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A9IvAZW023912; Tue, 9 Nov 2021 19:15:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=btC3ezMuVTF7s2+v1f4hWkHCXy07gwrBqtiiRQSvq3A=; b=YAkBrrrkJPzWCha8ByH0xkDquqkh3T1GyQf+0C3O3enYWoth5uwbYDU1VpoO5lcsw0df 7wzTtCaexCz9Y/brNgvhoMkahZtLxHwPYB6YDOrfjjL61UqraaCu8g/zUIRBvh8E87do 689/W/FzqrL0pX/yl4D/V4qNN8LlF7X6uhi6+EqYUfBkNdTSTt40SGdMl9FymAFilncK hxmLCqU2bQw6QEcC1xO0D1ZEgQoouocAorw29ueSvhqtQ7+wb43wSo4ceuj1wSM2nPke Iw+xCS90YwJMh+RlviGoe4NJPyVZFXY7hUQuT35PqDpikte7HWAcPCOiTjdaDiw8kBer Bg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3c6t70ch0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Nov 2021 19:15:50 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1A9J6ft0006356; Tue, 9 Nov 2021 19:15:48 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2106.outbound.protection.outlook.com [104.47.70.106]) by userp3020.oracle.com with ESMTP id 3c63ftf9fd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Nov 2021 19:15:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YdmWfGoD6jTwF/PHc3KOGG42dmLXTD6KWVKt/iUpeFdWIH+5rl3mlb67xQxyzqpnTBvmWZ5nkcP6kcdBGqm4fNEKovNDdyqKw82FJJGTZxV/6AK5PxhvfdllCejp4zuSU4BeyhgscfLqpZSkKCFp8vsKmZ7fMbwpgTARCKU1MMnOLaI09kQlPO3hJ5VuPeu5TRFkHXCOMpuP6tKu+MVqmuXawus/KAZTQJHPVvpgc5JafoPoax9ZXahu4N35XxIphkjKAb36vHgC/5sfP14hpen2lzfxdz5Ke5UE+BUMQIj8fC3hngMrOdN8ry5hhQmRjhWT+Ucb8gGlelWRVgXHig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=btC3ezMuVTF7s2+v1f4hWkHCXy07gwrBqtiiRQSvq3A=; b=aaZMPteSjDXEQQ0EElaDOeRzqoynnL8CM+6rAx3rkEkXHYkYiJiMRmGKKXVr0991wv+ca5vEUf/EN5HFCWOnkCpYKG3n9bGaxL10+x4xJ8Btk65G7LWV8ejRpN/6l/nDRGdXSd//5+GS04z+MczcPu2PCS/beaxc4WQrnEhRRPGTAXGeOjwA7+KwXiHyQQx1XiluueJAdtuO08Kp9++WfWX+xPRsdnn7L7dXHI79ByGkWWuvVjMtbqr80xIAWoM3DhA3A3J3uUrpGaHZhJCLoLOA2EXas9GsfZwPiVyXQgAo5YUPo9dNWBEWOTEWSv10EuqJYxdXh9A80JVah1PWrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=btC3ezMuVTF7s2+v1f4hWkHCXy07gwrBqtiiRQSvq3A=; b=yx8gz6uscbGww+aQYSs99yrc6cFNORGOyGZ45BoLmUuJbAbwU84QR5xtTRPiBPJBkOEjpJjcw9M3ExGJnFBYg+dQ74sb3osXtLtFCGiA+Gy8+9F2T8pzMijIADl9PjsaYeGsMvOT5cAucG78MdktOq2HlAZM1+11dxX5kXXLRE8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB5835.namprd10.prod.outlook.com (2603:10b6:a03:3ef::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.15; Tue, 9 Nov 2021 19:15:46 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b0d3:555d:98c3:62e3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b0d3:555d:98c3:62e3%5]) with mapi id 15.20.4669.016; Tue, 9 Nov 2021 19:15:46 +0000 Thread-Topic: [External] : bug#50929: Add slurp-sexp and barf-sexp Thread-Index: AQHX1ZnSO6NWAGgQ2keoOXpQZSRtIqv7jHKQ In-Reply-To: <87sfw5xj7j.fsf@posteo.net> Accept-Language: en-US Content-Language: en-US authentication-results: posteo.net; dkim=none (message not signed) header.d=none;posteo.net; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4dae382b-c617-49cb-2ee2-08d9a3b55519 x-ms-traffictypediagnostic: SJ0PR10MB5835: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IAOBVlzTq+Gi7T+eF22eJ+XJdcmoebyFhn2K9PLEmtWPqpy5fXyQ5i+9/jf/e6fbdFA9oYn4z6Xn7UVhrPN/Z8XBarNsmxnyfzLEoGzqdbHeG2vBcjNF6yDG6LXOfc0ernHD7HGoCelXHjKluVAG8JGovuiCzuh3VvEvCk283fWHsIJdMXHCqIqGD0wIU/NYzdaQ8RW5hTl0yqlAeo2Fo9AE/GlOTDbiCnFUODMsEO/xQd2C2AME1kuAfcqDiYrIekbz+L3N6t2o4SXN7mO/E6LHzx6mjR6s6YM2NfBmJycYbjrVKtLcxonGsOTxrk8pImlFD+IWsyzGI2oqFsV5tUbveoU9vbeMIVZV1++O+ZHksMwmMVN3tlxk3nTYb6FKRjH/rvstHM1+ZwIsyyL0q+s53PBQ1qrx5OKCqVP4DXaNgctfw7d03Uo1t9gPa/IjQTEXkR+idYNsW55XoqO9D4XSOlrYuB5uRr0bYfIc0EgVM6QnmsYcZs3GyeP009WJ4cm2Hu76FqUT8rShOn6rcR35cvA5UJi786MQUe4iCS+GjSOuLZQQXoPEV3gc4Rj235Mg7scTrR982tkD7uc5Tr1olH2EjXRUts5aJZyKJahHY5qYQ+9czaxuy2YvQ4SpDjezFCIa6l04nCLBp+4O+T37xA64tFSfB/RoS6DMsz/2HWL0Jhn4+8BzFkh6uKcjB44Jmdlmp6yOAvlv4sKNog== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(44832011)(508600001)(9686003)(52536014)(6916009)(55016002)(122000001)(7696005)(5660300002)(66946007)(54906003)(8676002)(33656002)(86362001)(38100700002)(26005)(83380400001)(2906002)(66476007)(66446008)(64756008)(4326008)(66556008)(6506007)(71200400001)(186003)(316002)(8936002)(76116006)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: vrKeCc7XqRClKFAN1cnBY56GS2BpqLBycYjFAz5+MKTCuyeOMaSa2r/ISnD0q6cLq7wAfg/Fkp8VhLOn9DQRPsflvw3EJtRF/WLecm2bT50WihJAXBkPYmzLYAPhm0i4qfI7qO3qqrm7G2lqbNJVipfuZie5oY3eBS1Aj3SDZGkF/0E1UlU2CUf92Tk1+L15Pu+4R2EryLfjSD5aL2P3rDsRrsj8Guek7vsco02MtIOYgmwmVb70nyFWpoAfcjO4/49u3BETsC70+B7AhpwjRkOD33vwLjIxTEuIGMgsCYHzzE87EJNjfZTp2CLguE8yVeHcVc/B9WfRqG8NlIR7bNK9GrIWpMM/xdkxvsAWXnu+BOAQV9Xnap9VAudNEeK28HsbfiwHqpyk2pTrEnxIK9+SdjNsw1XxRF89lW6STCQQJX7HXJWJsdD2vkg83zybeaQaRLdrwjELvW/r+Mb6cKlEHMJiKDKGhaFARFHZS+9MRDlQgvFFhWSEGUJO3eJ3B7RFsT7oJ3W4VDi63914+L18x7md67wDFTLzIZb4Ye6NY2txeWSG47c8w4y2TNE/Nzwj7A9Hm6Sv3jw0hPB2j6RzkAGWS+poyxo704xpPUVWIGd6bC+5CBVDx6WDht43ldksMUQayEs1koSTGuS/bJ/znQpB/8W/Fut9qbdjl4AFHPz+dFWAXBDHGdnktI6TtrIXJo7XxNpH4OZtvKVdLQB8sTm7UoCy8NHVqdEtb5eAp7xlXxhnDgwPyb r/T5wy1k2nMDjyvbyc2qcpxNOG+hgazEmpgNjMGAhc9bVYk26NUPzktl2LCrpolKnjYZPivnBgqrf56LKzXCRSDrak/he56Okj X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4dae382b-c617-49cb-2ee2-08d9a3b55519 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2021 19:15:46.0692 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cyS6j9x3EoW19MMvTxKUFPxAdQkIA1F07i7TZs0IvbSq1mop0aWE9kEt33wIrYRmkCd1mcqr4rbAriY1BF2N6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5835 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10163 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111090108 X-Proofpoint-GUID: y2u8_jOa4-YpZq7dB7-MAhVuRlD2JbpQ X-Proofpoint-ORIG-GUID: y2u8_jOa4-YpZq7dB7-MAhVuRlD2JbpQ 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:219471 Archived-At: > > FWIW - > > > > I'd prefer that no default key bindings be sacrificed > > for this. >=20 > I think you and I already discussed this a few months ago, but binding > anything to these keys wouldn't sacrifice anything besides an unbound > slot, that the user can still override. Users can always override _any_ key bindings. That's not a reason to proliferate default key bindings. > > This kind of editing is mostly appropriate for use with "structured > > editing" modes that automatically and always pair delimiters. I think > > it makes most sense for only such modes to bind keys for such > > commands. >=20 > The reason I suggested adding the commands in the first place is because > I think some kind of structural editing can be done without the need for > any special modes or the need to bundle commands together. Most use will be with such modes, I think. These commands make sense when paired delimiters are present. Of course it's true that paired delimiters are often present even without such modes. It's fine that someone might find it useful to slurp or barf content, regardless of whether they're using such a mode - granted. That's not a reason to sacrifice _default_ key bindings for these particular commands. Users are free to bind these commands to keys. If lots of users do so, and ask for default bindings for them, then default bindings can be considered. Just because a command might be useful, that's not a reason to give it a default binding. How useful, for how many users? Evidence? Gauge/guess/measure the demand a bit first - don't just sacrifice a default key willy nilly because someone finds a command useful. Finally, those proposed keys are repeatable (=3D just hold down to repeat). Sure, such a command _can_ be repeated. But repeating it often, many times in a row, isn't common. Better to reserve such (now rare) keys for commands that really deserve (take advantage) of such repetition. So: (1) not needed by default, (2) certainly not such special keys. Let user practice guide the creation of default key bindings (aka loss of unbound keys). (Just one opinion.)