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#18100: 24.4.50; Restore simplicity of (put 'self-insert-command 'delete-selection 'kill) Date: Wed, 11 May 2022 20:09:01 +0000 Message-ID: References: <4aea5d8d-c60c-4213-ad3d-1f701b50792a@default> <87k0as6rk7.fsf@gnus.org> 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="36285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , "18100@debbugs.gnu.org" <18100@debbugs.gnu.org> To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 22:10:39 2022 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 1nosfO-0009Do-7k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 22:10:38 +0200 Original-Received: from localhost ([::1]:53190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nosfM-0003eC-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 16:10:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nosep-0003dm-Qt for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 16:10:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noseo-0007dl-QN for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 16:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noseo-0000eA-J2 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 16:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18100 X-GNU-PR-Package: emacs Original-Received: via spool by 18100-submit@debbugs.gnu.org id=B18100.16522997542402 (code B ref 18100); Wed, 11 May 2022 20:10:02 +0000 Original-Received: (at 18100) by debbugs.gnu.org; 11 May 2022 20:09:14 +0000 Original-Received: from localhost ([127.0.0.1]:38595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nose1-0000cg-QE for submit@debbugs.gnu.org; Wed, 11 May 2022 16:09:14 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:38878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nosdx-0000cV-C9 for 18100@debbugs.gnu.org; Wed, 11 May 2022 16:09:12 -0400 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24BInLr9019308; Wed, 11 May 2022 20:09:08 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=Ax1s0cTUyNFa2MdyPwT+TjXULn8KthCErBxlfsec754=; b=HsmlG0+ouegUVZN1u+Ns/xDNSxsDUzFuSLBt0s2gpYPMjnhMnTFf1JlJwTTrdeycbjHu Lwq6XLO95ky/B3QZ166hb1VoGqf+4sn2/PG/SO6dJKn3PB9q8q0kE6fiCq3W7HWduGQ5 4p50Ky9xMq2sgmiItxQZXNf6cVRuE0e5S4QlZr3+JvzGMq2mtrDzTJQjK/Zsxj1wfqnq C9wcRumRSG6nyyq0TbFZpp+rEoL9aPqQTZsCn+evQKblRDhdchiznYxRMS4mYK2nAzVa zvFupuyf3VxAZwgtdUld4y99ve5w7NdnllKO/UvLWLS6yrq6LNwrFQfaPS5WJnZw+PYN QA== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fwgn9tgvr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 20:09:07 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24BK5hOp026294; Wed, 11 May 2022 20:09:03 GMT Original-Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam08lp2177.outbound.protection.outlook.com [104.47.73.177]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fwf74s9bj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 20:09:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=egWikC7AFAIRLEy1eqAu3Uel1pUhK7mslz2wkqmMmY5VrCU3j+wtGR/LHz1vG/r28mbKcDkl+8dHZ7a3lWKqA/0a4H6K6xcKAHZL/Isx1TMwMsI0iuaBSbxiqziupTdiljiTmVtzy1aoKteMjqeFQzQqrqikHVHefUOi7Sv1SOjWNxbbr7xm9l5NOsx6Z6B4onhnnl/gTA9iJr6YU0IuIxavMGYJESvZotr+2Mxp+Hkbl5teYFpZ+XXLw3JZE3vmVz7pBd1lZq6ejNv/6WujRuVnu0TD6ZI0i5BfGBHqqt6+SuJh6ZsGYHxEnH3I1kkDnOmThAufiNEfpMdBbl+cEw== 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=Ax1s0cTUyNFa2MdyPwT+TjXULn8KthCErBxlfsec754=; b=Y9AhbzwbQXiE2llFvniVGRgNLT53FJcwrynLY/rSE/wi+TROV75ZDgX/DTQWGEE5N8gL/fMVyWuabJrdV/Xc0osIIsLQbgCxVolZ/eA4TS7cjkni7JIcGT4xN6Vx6G43vciPg2uCZWnAvcLP5ZsLCPbW1M25cQDWJbcWwWALu7+SRDRAFRi4JsUUB2sdkFxt7eKHHRulImKnqymrn0VRqm0B8viLzuGabRj+P7r163agwPY721naMNWxzW957KbMuRaqnTNYIHO0RpT/hc44ZXZZhWp20/eaVx15MDsvhx7iDEwWRC7ADhaEgt5Fmtc81fhr/3yvaAjBIfWx6hbbgQ== 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=Ax1s0cTUyNFa2MdyPwT+TjXULn8KthCErBxlfsec754=; b=ZgjivXtRH8OPIQVBhu92ouCT2NDTKyWGhw3nDUlh98s5dBe9sdJrbtjoG5DojMqs9I0TT30pd0HwPRqeyaWifudVfoJo8Q30M8OrcYsXgW3EW8f/o13n+I3SMOE/UqhhjqLZ7qehPWrabbkMKvC/mC+PGytR1SwBysn1yXrNMZg= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CY4PR1001MB2295.namprd10.prod.outlook.com (2603:10b6:910:40::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.27; Wed, 11 May 2022 20:09:01 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123%9]) with mapi id 15.20.5227.023; Wed, 11 May 2022 20:09:01 +0000 Thread-Topic: [External] : Re: bug#18100: 24.4.50; Restore simplicity of (put 'self-insert-command 'delete-selection 'kill) Thread-Index: AQHYZUgo4VbTevxsxUevm0fL9uUWWa0aGNHg In-Reply-To: <87k0as6rk7.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 88b7b74b-4fc1-482e-3b5f-08da338a173b x-ms-traffictypediagnostic: CY4PR1001MB2295:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1oKpHatkjTQBI2H99EAJCybfw1abKzRZF2HhsR9vtTsMMYcdZ0Ou4ee+oeiru6eqp5kLK6AGjtvZKtkzWbsNpff7o8EqlibeKFMaJru5NDoxNyvVAPmusUoc6p4tKuo13Sooo/aYGm84KHneDMoglXBjpQ4K6N5rAcNEIqB6yXXVGzIc/Q8/037sfQruVq1IghDID3v1GoFb5tjAGbtYraGhk8RkCDolSIplV8e+hMJ1itktQ2s0dHAm5k1tJUAQMbazf3OsrxGeb8kao+4RFXfgLn0oGzScvJnj8ho3igNrh8utwcvebvABF1ckGE+lhUqEYIKtGjobudWUPLjv8kAAgq3smRQ5Lj9OydYWCvdXCDptaraudngoHKrBvqJsnKEBZvfkUDCG96o2QrMPsM0U1z5hEmV7puGEVSuoePdEBuOy2SNxjB1kk+a5BPwGI5LEUaeYfmsto7MLqTshGvhsIwdsLUIxv6v6RXcwrS9kASEpnUISZyN/gOUSUZm1YzAu6AB/r5wz84IIkE71GQDWtLmDFcdRsuKgRPYnMr57FaKf/noQPhHOtCZpyzgrYuIGUYKViaKqygx7zrlCYmEskKehqVmNMwV15z630Q70NsxkiQONluUoB28bLrgWgdUmWj6aMkv7uINpbXOlaJZao3rK8Ru/vK4UOvIQInum2qZseLhGZWjCkF3lBvSVZjBT6Aqsd5P70MplVDi3kw== 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:(13230001)(366004)(7696005)(8676002)(6506007)(33656002)(83380400001)(76116006)(66556008)(66946007)(66446008)(66476007)(2906002)(4326008)(122000001)(186003)(26005)(71200400001)(44832011)(9686003)(86362001)(316002)(64756008)(8936002)(508600001)(55016003)(38070700005)(52536014)(5660300002)(54906003)(38100700002)(6916009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: aALETm57E4bXpPgrAY1I5FfXQ4mAPH9IO3UCD4xK+TqyXc0oNOxXzF77DkBGm+zwYz8Jg9JPK/q9jSpsiGCe4cSXURYezI7EcxveNciPHcxKMmJmWgUVwMB9ms8IAkFMNgYMOPZHYKR+IVU/hkkBeo5O01brvG/sD6jOi9OwqGlqr3WAFlPZ5Nz2ebEg8RXmpozuIq5KiO6HDBhTOTmZDNKLb+/gVPs03qH+aTdHfEeMLbGTjaibkwzeVLaKkj1RG9/CcPzraVBu75iaWtEyYzraHrNFhZlYQsmWN68AL0/x4Rhb9YE2PaXOPxAVyKWHrOLhzHpQLwHb3uvx9Ar0hTYxtkF5IRm4nbgBICkutIN42M7r/bb0ZJlMujkZi2ABEHYPc8dl8BdmorExznK5yX19efwbC0q1xLs5a4kLfyYKERAzEgTKxmbAEW8mgFB2xqGsvlRyHSBw/gzihhrL2KU3RSy5FUmWnXRzdmfkgjaW9yyYhj0beMMf/ZkGI8wryxZD3Od55fd+KuGQvr1s+sHv+sXGvbOTGFS68QrzW/viUOTDEYNH/dobOtr+luxAimC5SiXPDRpuuOlpjw5kgHa6SEVtdllG7foWWoqOoBn5Y8KaPqJBR4Qr2jW3HtA0RRGHl27GmAysgVTCK/LwoyGsNIFotEu2mTCu5CHu31HordjPsZ3f+hzddfrm4CSsAPwHCQpBopLtVHqHvbJATUQxQRaTZBSLHlWjZ2ewsDrRD/+95Kk8cRXTBE MI45tlhMKicrcIwjvEXEwuscHtkmNvYjNBnqEj6dtIP+5nCYnhHPkHYYuFIbNQSTotzt5zzBLn9lyhdBXLx7mQTIyBhrS4aQJS 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: 88b7b74b-4fc1-482e-3b5f-08da338a173b X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2022 20:09:01.4138 (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: MUtyB0M09udyOSR1BqYqfoggfXeeQoSg79aJgdF45Ts5m0HjGnDjisRhMPjURQXpc4bv9lyPJ9O4QoUamz1cyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1001MB2295 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-05-11_07:2022-05-11, 2022-05-11 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205110086 X-Proofpoint-GUID: _0Qc30G3C9Z2UrVKIApOXDM0gcL3Iu5e X-Proofpoint-ORIG-GUID: _0Qc30G3C9Z2UrVKIApOXDM0gcL3Iu5e 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:231987 Archived-At: > This was somewhat rewritten in 2015, and there's now a > delete-selection-uses-region-p. So this would be > simpler to express now: > (put 'self-insert-command 'delete-selection > (lambda () (and (delete-selection-uses-region-p) > 'kill))) >=20 > And I think that's sufficient here, and I'm therefore closing this bug > report. Perhaps you didn't read the bug thread. Or perhaps you did, but decided to ignore it and reply to something unrelated. The bug: ___ Maybe so, but that is not at all what the `delete-selection-mode' doc & comments tell users. If this is a new requirement/guideline, then it needs to be documented. But I wonder why this must now be so. In the past, a user could just put `kill' as the property. The code does not seem so clean now. One of the benefits of the `delsel.el' design ... is its simplicity for users. This seems to go against that. Is it really necessary? Isn't there another way to accomplish the same thing (whatever that is), so we can keep the simple and clean design for users? ... =20 Users should be able to `put' a single, understandable symbol as the `delete-selection' property value. They should not need to fiddle with obscure lambda forms (or symbols whose names are not simple to understand). Symbol `kill' is simple - it says that you want the region to be killed. ... This new bug is about restoring the ability to use a simple `put' to configure `delete-selection-mode' behavior for a given command, rather than having to jump through hoops with incomprehensible lambda forms in the `put' value. ___ All of that is still relevant. The bug wasn't fixed. Just another "wont-fix". Please own up to that, here and elsewhere. This doesn't go in the "fix" column. It's not "Done". Not at all.