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.devel Subject: RE: [External] : Re: Change default behavior of some commands that act on region? Date: Sat, 22 May 2021 19:26:02 +0000 Message-ID: References: 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="17587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 22 21:26:51 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lkXGs-0004LA-1T for ged-emacs-devel@m.gmane-mx.org; Sat, 22 May 2021 21:26:50 +0200 Original-Received: from localhost ([::1]:58808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkXGr-0001aw-20 for ged-emacs-devel@m.gmane-mx.org; Sat, 22 May 2021 15:26:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkXGG-0000vQ-JK for emacs-devel@gnu.org; Sat, 22 May 2021 15:26:12 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:49058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkXGB-0002t3-Mt for emacs-devel@gnu.org; Sat, 22 May 2021 15:26:11 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14MJJjB6016333; Sat, 22 May 2021 19:26:05 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-2020-01-29; bh=jTprl+6PodoZQ0kmrFM5jcf3vCcdzoOom+lD17pIM+k=; b=DPa3vFQhf3RV3j5WcgmIZwtBkmGjp2xaGXlucncS6Ky3Hfq+/8ITKno7erwsiMzbcX/k jf2wDO7erOKomw2B3dkAlqqDUtWIJx8SJh4ThlHul1iQyex+43b1t0PjbOEpEUckx7wa /PfiglsgNJc+CCVpRr4UF5nNsj7wkar0lULkaxAXH94gAYaDUYGeueTkQkt2WH5ufeD8 eIl7MyBbGPRgZDxp1vTATJBZ5sX1SIWDyarAsiFKcEhcXJpVxEbqrculRW4akNepBZPX TGJWI2BT6nU80Mf2/93XhDnstenj0oMeFJ7Hwcs3LsCvx7WQj8tvdo8Z04opqjYOJLx3 cQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 38pqfc8rht-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 May 2021 19:26:05 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14MJPoNn091254; Sat, 22 May 2021 19:26:04 GMT Original-Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam08lp2172.outbound.protection.outlook.com [104.47.73.172]) by userp3020.oracle.com with ESMTP id 38ps9jg3r6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 May 2021 19:26:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=edfUBNsGz14kyzwFQ0TRJStPEe9u8+PuB1pJA2MnzFx5ek27vti9/7RsWapiEqvu3W9S2+XI3eFxK/2/15IFlXQdii6gJsGLYKESFIV03dPTmFDlJvWvPMj6jMAMzV78yfz81dB0GuavIjG6BcJGmz4rcpxvVBkEB1QbGz1W5GBtYEZ1Gxn/8Y/w83TGIaNqLX8GdZwzX15W/1HSOPiOrikZuou42WZaFl+F78EKajfGsRfhyP55h7cky3BIS9TvKgkC9/2o2cd5qIAY8cbRiQj7E74WCEg2Uj1tsijo9msEdnq2gVVzW5LAtVA3PTDR2E2LjTUGrpT2CACsWfpg8Q== 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-SenderADCheck; bh=jTprl+6PodoZQ0kmrFM5jcf3vCcdzoOom+lD17pIM+k=; b=jN4O4xY5QtKiDW1Bi6Rl6BVj8lkSuW6GW0l8dXpx+hL5ViXK29a/xM6ohz4/ikMBnXxwDVDChUmFmCAXll1rNbwHrM/3zebNPHeydUxD+ukZNhDhaaHThHo4hC3a9An/3EclWOLV0fKHbILsu+nkBjqGDMZKNjtfpAHmulvU7fdKdRu03M+JOeDr8jOZIwyGTDQXKkQNL0z0lgNc7sB6/1287XjJHSFcPwyvWdclZWpFK2yWYFa4BeprL976ZC6cfmr+AMwbINqDg0NuWLc77QOB9CUcpmagMx2rupprhuOpQQoRuoi6xdGuneoNRTQJmc3nbZsdXteX9hvpQpTvLA== 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=jTprl+6PodoZQ0kmrFM5jcf3vCcdzoOom+lD17pIM+k=; b=CV4evaaXAnBlX3scB4AzT525SPbep/a3ILUK3xD9Y6aUasu8OBDhXsCo5dXUcqOMKlZyteY/MKOXo2NiyM1vLpOIs/d4iyX3/kYN7dpWrjH6xdEvpMYS7Kt6NxT/n1HA0NMDVAosp6rfivfjviOFhmGYijafYCbg416jvUBzVbQ= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2477.namprd10.prod.outlook.com (2603:10b6:805:47::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Sat, 22 May 2021 19:26:02 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494%6]) with mapi id 15.20.4150.026; Sat, 22 May 2021 19:26:02 +0000 Thread-Topic: [External] : Re: Change default behavior of some commands that act on region? Thread-Index: AddOgj9jmbCPuskvSDmMk5TwAnSeOQAkPfuMAAr4OkA= In-Reply-To: Accept-Language: en-US Content-Language: en-US authentication-results: iro.umontreal.ca; dkim=none (message not signed) header.d=none;iro.umontreal.ca; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: acff3352-8903-4a3f-b224-08d91d576fcf x-ms-traffictypediagnostic: SN6PR10MB2477: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Bu3706+oULrYLKsJjHllJG8pwy/SSU+IybN+FAiHcXOTHjbtmL0c8XrtiT0TWwRqcQduhT4tJLXLOMQzyShGFZ1gvCTfcW2ZUAZflsaUaWpggF2XWQtg9zFqc73AmKuhD0LJcAN//vbXlPw9WhOt6yZWWXACaIiPOy8OPWH4do2CwVyX1m637Tu4YsOIlx7AGw5y+AxUQyCTf9n6Skex5nZrCoPtkj0RxRGJ25leqMlq29fcZPhw6M5N84gYO/5bBWJvy8OmtvpJwSXtnhlTAnGxr8HzQ7pZyxiBRV/2lYrHqXljnTjphWWptMkJtV1CJ8zT1T+jZocXHudbDOFs2TB+dIrpEGfe6XiSep6duKWXof1HGlHIoZuI2DntOiIHYFwvFAjEQ03tTYcRCFcYDciJhgV68g3JvMftZTHegVNGUG2eFoyy3rbnruM6JA1YOff8ZTVpluUJpidsp0AYfLuBWl13s/tAyi75AP6xGtVTWXn+dCGdFzHybC2vD7CTca9pXgDaQqrCrV3qJvoqaAj/RKJ+46zS5swMKh4D4+JpHF9TDY+5QH49RdFkLYGV4oPnUf2BNA3NUfSYFeLWaN83zaWHDd1DZrEFnSyJ768= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(366004)(376002)(136003)(346002)(396003)(316002)(296002)(38100700002)(86362001)(33656002)(8676002)(66946007)(5660300002)(4744005)(71200400001)(26005)(64756008)(66556008)(6506007)(66476007)(66446008)(6916009)(9686003)(55016002)(4326008)(2906002)(478600001)(8936002)(83380400001)(76116006)(44832011)(7696005)(122000001)(52536014)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?qFHNqDFnKu639Rsezn3Em6EDqVCTe/XojeVgkfFXB3qNCbu0qqNgmAeUV4GR?= =?us-ascii?Q?85hP3/F38h2ZA/p76Tv1loSvHSc4h+cr5QaT34XcJyGFrEHxMB5Zbvif0Y/F?= =?us-ascii?Q?2hwA5p8Bsd4+2jchPtfAqkPdUrS+ACflsIc14cZ1wpHvYY/BRRwe80q50DKm?= =?us-ascii?Q?lqFpslpoZahtvWI0C3H7l6jXsU27AUIV1AKZ3/0ILPV8+k3oDiDgGczkE1qg?= =?us-ascii?Q?pjPu3A9iAB7UJjqUmCnBHVParhx3eSKCmhQCvdy5J8rvTgt4Dt6MXjFBNnkw?= =?us-ascii?Q?fqzvEDBr4ZBIkLc+BHzHMUaCsL7qV4fRxRhvT7xYEHoZ6jjvwckvXtMHaacF?= =?us-ascii?Q?xY6lMvvvGiR5TRRFqvDhkTqTJaJIDGqth722femxE/2kfNSmaF+FmBivP2kL?= =?us-ascii?Q?mwryLyowqHu70En0Av0E6PORtZbiC9r+pLPB1IYRkTKvqlZg20Km4/mNjhdw?= =?us-ascii?Q?y37Ghzt0pPlCO7bSZMxoiRRcWyHNUYWHZPQXktn0SOBYYxO7J/y7/9035sU8?= =?us-ascii?Q?lkPOTnQkvWnVfyjAwdPD5bgjabprvRswslWttpUE0w0ScbNt33FbKLURW+sb?= =?us-ascii?Q?TrsOhO51FpYdpCt+ZgV57yrIy7UiaAiVceBnV6HlX3gO0ZuiX1ERs0fdlCsS?= =?us-ascii?Q?08pT x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: acff3352-8903-4a3f-b224-08d91d576fcf X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2021 19:26:02.3833 (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: i2QDSfDNK0CeF8b/SscWxZYzMsyTXbTsjGQeVskD3nrMTB95H9zHy7hIi0YApMJCn5RL51ab0FCv2gX7/ClY5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2477 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9992 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=960 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105220144 X-Proofpoint-ORIG-GUID: OxjlJlDx37yprvqV1R-qWKKgNgVVL1N6 X-Proofpoint-GUID: OxjlJlDx37yprvqV1R-qWKKgNgVVL1N6 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9992 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 adultscore=0 phishscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105220143 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269623 Archived-At: > If we take a step back, I think we'll see there's a "better optimum" > in this area when `transient-mark-mode` is in use. E.g. we could > combine `downcase-word` and `downcase-region` into a single command > which will do either of the two depending on `use-region-p`. Sure, you can do something like that. But the thread is not particularly about down-casing. It's about some/most/all such commands. Commands that don't distinguish an active region, and that can surprise or make unnoticed changes when `transient-mark-mode' is on and the region is not active. `transient-mark-mode' being on is the common case now. Some commands haven't awakened to see that's the case.