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: Thu, 12 May 2022 17:30:21 +0000 Message-ID: References: <4aea5d8d-c60c-4213-ad3d-1f701b50792a@default> <87k0as6rk7.fsf@gnus.org> <861qwyg053.fsf@mail.linkov.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="25381"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , "18100@debbugs.gnu.org" <18100@debbugs.gnu.org> To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 20:24:13 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 1npDTx-0006OE-0F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 20:24:13 +0200 Original-Received: from localhost ([::1]:52862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npDTv-0000iL-3S for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 14:24:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npCeU-0003CF-Ox for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:31:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npCeU-0006Ao-7Z for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npCeU-0005h1-5O for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 13:31: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: Thu, 12 May 2022 17:31: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.165237662821833 (code B ref 18100); Thu, 12 May 2022 17:31:02 +0000 Original-Received: (at 18100) by debbugs.gnu.org; 12 May 2022 17:30:28 +0000 Original-Received: from localhost ([127.0.0.1]:42197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npCdw-0005g3-6h for submit@debbugs.gnu.org; Thu, 12 May 2022 13:30:28 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:14888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npCdu-0005fv-Aa for 18100@debbugs.gnu.org; Thu, 12 May 2022 13:30:27 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24CFGQJR003183; Thu, 12 May 2022 17:30:25 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=NDUmqKHdwZk/oFSUwf4ehMKER9doCbduuVuO86TdCWI=; b=eN75VPjzszM9jVhX9J3IwAmaIFsGl16PYOHHE3TinPDfndOEJeOZfj4Gg4+amoGGH97h t318DbDlqT3ndRE6WZSlelDxfZTiPvfreaeAeGUio9IwLKSXNnuagfVt1AOUVCiFFLnJ cex7S3srlEbCnMe0dBdjfA6+Yiwgru3exVzyFzcBD2+44bbH4IpEmO3+74l7jj3iSMbz rPHCo9T3tQujfaK6kUkiUsxQg2CURz9FDHi9BMy1YP8j0XqWIvP/e6iwViClY7aj73qi 6R1eq93lhimi8DvG4gm4ENBCuAmxDoS+YeQwKv8nfxL097E/CzMs/QhrjxMzL7bns0m8 ng== 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 3g0a04mfjh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 May 2022 17:30:25 +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 24CHFjKN011494; Thu, 12 May 2022 17:30:24 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2170.outbound.protection.outlook.com [104.47.58.170]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fwf75v9yj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 May 2022 17:30:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BBLuA4FVejRN8KqA/+T8ZZN7lTVeKSAnBGWKt2n3i3WBtwAAdFi3hcOOmjS7p5W6fuBvIwkl2Kly6C8Cnv2pdDk3bvl8HPmVfkKC4dNBJzBbeRY4UrXT5rY1j4WNM6uOYXD5QbUGgB39coMG7zyBcD9KqyZy5I59AV2a8pIwrcznLVEQpaNgWZY1QscPX2gfnlMauqani2qN21shPwbc/PvH+w17m5JLxLTF1d9t2DnUwDYu36gwFW9hHBPXxEuWt3eQ+Ak4dUi50i/dwlKo3x+parJsnio0NYlN1mnqrFgolcePCdoe+5n63Lx9IYT9rJw+HGmFg+dOwiOt5qAfZQ== 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=NDUmqKHdwZk/oFSUwf4ehMKER9doCbduuVuO86TdCWI=; b=bf4KKc0boq6lmDrE4290y73fUl9iUt6T3Xbu/Oq3XCjUyLP1ki0PtN+KK44M2hbDeumt4ENFXQv/55mBfAUFMhQLNB6O7L7LNstvRtt8h/fE90GD541JgShp3EW36x8ZLaWuPjWZ7CYiICnQjuZayTIeFmL0xZwzQgMWsUJAHUhduYyQQeDurb9pT4lrja5qD5MLpB5cCowuJIgMbRfSXOvR+2Ph5hoQjhigGJjt4OdInHnaJtnH4RqlF7d6KvXfwsVUt7BktKiuORUz6TCaYcST2UjTts1oIGZDId9bYbW8g482HbmcFdMQCEPEFUSg4VAJBSaZccnsfMEERdMwFQ== 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=NDUmqKHdwZk/oFSUwf4ehMKER9doCbduuVuO86TdCWI=; b=D6OxvdhjCgV8cNngd3hn3nQa+IYg1dZtnoX+dOvpUHkJSmdw0o564DySrN/4sN06iR59eNA7mhHDjUW2AEp/O+zAhyrrtLgCDYDREF+EQKfbtDVaIemqdUdBp+5tb/3LXdHWOJ5HA0+3MG16QHr7dwb3pGR9bclZZSfwNYObFPg= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CY4PR10MB1991.namprd10.prod.outlook.com (2603:10b6:903:122::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.14; Thu, 12 May 2022 17:30:22 +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.024; Thu, 12 May 2022 17:30:22 +0000 Thread-Topic: [External] : Re: bug#18100: 24.4.50; Restore simplicity of (put 'self-insert-command 'delete-selection 'kill) Thread-Index: AQHYZiLjiKj4FFbvi0urkXHjvSc1aq0bfqYg In-Reply-To: <861qwyg053.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b0bf54f4-0b46-410c-2d31-08da343d17a2 x-ms-traffictypediagnostic: CY4PR10MB1991: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: /+/rbVdERRVWF29LudeMV5/blOFbbztCRsj+hD931i9bHXG2qeJDKkMnNJdEumPPDu3g0BFtmq8olAdQlUwJztQiUGZJTE7k75lQJwEhJa6u4TIEFDWQRYxKf5VurunN6ZUWQ/AvMlbEUs6t4CEIEzCV1/TfdAC5DIVtYErmj//dmcMD6YGPEf8u/UZ7be1CuWDU8Wz425jQjd9WC/fFWF1k8V8EWrDjoWH62IhQSqmeWgiMLGG7xTHyS53QiMO+ntJAs+tk77kMU3hvXrTq6Xgm//1/BHFr2aHXUts1eB1ukrLehmsDww1mY4B8/oKefQSy8R7j86AawUD0cqknmQyukve8uQyb0wfqaXim8Qe80u3R61qIcNHIM7V8oI91UeYLh+YMmXpV/AdlV3C0smxG6KKjWeY12IMQjH89HvWpWYhFt+iBb090KlZ+0VnV7aILHfBhRjXw9vP0HifQh9KycvAFvMxkiJnwRVhP8Ugj2DTkPUHOc27L8uviDfnwmls16vRTo+LAInXrMQQgZ6AR12RctkR+YO7mon1Qt83ry9gS4JJIw1mvY1lHHYvdDWdV2YcCg2U5DG+xeCweUvzRVW5f4MpTxjqDoP5ISMSyfmwo/YtnZvFbsgdvuvKWCyOEnc2uJ4fG1pPLR7BAIdg8XxB7DOdpKPiDP+a3dHQC5ZyBex732oJEjvb9kKmmuhWdi9N10aN5e5oTNwvC0w== 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)(64756008)(76116006)(66946007)(66556008)(66446008)(66476007)(86362001)(2906002)(8676002)(44832011)(122000001)(52536014)(38070700005)(4326008)(8936002)(7696005)(5660300002)(38100700002)(71200400001)(186003)(508600001)(9686003)(26005)(55016003)(6506007)(83380400001)(54906003)(316002)(6916009)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: fATApas3e6GZQHlQSBGMgINE102+bPkeuSnlDq0aA2oX/HBeMdQMM0yjl0GSflFeIm4LwA6DkuKTtnsPd52LiPW3LGotoXmtBzSLkgQxq7CUmlTJajMSkBK5lTkCdQWWX2YVQoDjsbtTjIWbDCcYp739krEZztEigWHERKnu07tdP8kq6RFvwaUkwfpmnpU5NOaboa7ta6n2gDw95NdrVrnvFYWAhxcCQERbAeFkOeRLaPzLdocCY1xMkQrXQuXUB4e13wDZBDBV5xuS6KwKEJujqN6LpUAF0V58qxlGEviTPBKtqSGrFN2sKYONh65GXrGDRWwhyBcfLXGXzwRJ68uKKI9teXicq/tbVlZsFQZXBECe6qPN1p3gM8dQuLfP/sYfl7wE1PJaf0xSbV/KIhCq0enTHyrORl0V2Hg6vzjBhxwXVexj45ru+jCRY3zkc7PhddEGJ7TlO3RrfhkRCWTBteH/JT+Wdaq6oI8Pk/mvOo5iwQ4ua4IscTo7DkuDrJ8HkXPUOWlGXXMxFxTzKhgsz2Mg3tqRwrJLCHLfPv1OWHwJ5tmmTDAr2o5sbmUmRuv5kNxlYuIFb4V2MDcbJ93CBe3T+kdVGX/u0TGA56NJOd1XwrrL266f8ee8wvCzYqO5tgVSBkV9SVkWr0a2fUNlsWRkcCp+q4o/HmvHNX8nnjfc1cSlZlfbVHetr3ryb5aKZZPFKW3uqacjw1cfrlYX3H5vmwIIP5xCtQMSjulnYDwfvw1/ZvcMxZ xjBB8sN+xgOSJPnY8fFJ1sCyAn7AfAJQnxCgSoeGw5hF6RCUCQy1ab/0y8PDJNtP4B1Xc/sSnnWgcUFaInb9tJqqqxp/qY2bwG 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: b0bf54f4-0b46-410c-2d31-08da343d17a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2022 17:30:21.9875 (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: xfVUj/hnHzbULmUGVtisFa7nbHv0QIp1MmMuMp4KgzVmPu2ZpK29DxIoPU7tO2XbTlUzfehj2FuT0Pg6w/Xqww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR10MB1991 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-05-12_10:2022-05-12, 2022-05-12 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-2205120080 X-Proofpoint-GUID: HQdqJ94XYDyBT5yTgrfyje6sgM_qQeKm X-Proofpoint-ORIG-GUID: HQdqJ94XYDyBT5yTgrfyje6sgM_qQeKm 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:232088 Archived-At: > > 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. >=20 > What symbol name do you propose? Dunno. See the other symbols used. (I don't recall - what was wrong with `kill'?) The "doc" should of course cover what such a symbol means, especially if it's not obvious. The "doc" covers each symbol explicitly. From the Commentary: ;; Commands which will delete the selection need a 'delete-selection ;; property on their symbols; commands which insert text but don't ;; have this property won't delete the selection. It can be one of ;; the values: ;; `yank' ;; For commands which do a yank; ensures the region about to be ;; deleted isn't immediately yanked back, which would make the ;; command a no-op. ;; `supersede' ;; Delete the active region and ignore the current command, ;; i.e. the command will just delete the region. This is for ;; commands that normally delete small amounts of text, like ;; a single character -- they will instead delete the whole ;; active region. ;; `kill' ;; `kill-region' is used on the selection, rather than ;; `delete-region'. (Text selected with the mouse will typically ;; be yankable anyhow.) ;; t ;; The normal case: delete the active region prior to executing ;; the command which will insert replacement text. ;; FUNCTION ;; For commands which need to dynamically determine this behavior. ;; FUNCTION should take no argument and return one of the above ;; values, or nil. In the latter case, FUNCTION should itself ;; do with the active region whatever is appropriate."