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: master 101f3cf5b9: Add support for user edits to VC command arguments Date: Thu, 22 Sep 2022 22:21:16 +0000 Message-ID: References: <166378878197.3568.7077863090259744101@vcs2.savannah.gnu.org> <20220921193303.1B687C11D81@vcs2.savannah.gnu.org> <87v8pfbw1g.fsf@gmail.com> <87edw3o0hs.fsf@melete.silentflame.com> 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="28026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Robert Pluim , "emacs-devel@gnu.org" To: Sean Whitton , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 23 00:22:56 2022 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 1obUat-00074C-PA for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Sep 2022 00:22:56 +0200 Original-Received: from localhost ([::1]:59428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obUas-0003aa-Aq for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Sep 2022 18:22:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obUZZ-0002pL-Fq for emacs-devel@gnu.org; Thu, 22 Sep 2022 18:21:33 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:41410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obUZV-0007z2-Kj for emacs-devel@gnu.org; Thu, 22 Sep 2022 18:21:33 -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 28MM4ikX028948; Thu, 22 Sep 2022 22:21:21 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-2022-7-12; bh=Fpha8lZ6TOGKY5UeIQV0z/XH3vIm5jqJgyGrB6cSk/s=; b=OsMXOjMJET0iNUi8CFY23ogTyBhT9/wZ2+rKxct8BaYltZpotZBf2rMs91yQepa+p0oo 2YLZWyJEuiNkHszfh91hTY6f+tY4ZPNrBQ+0l0OL2kTDBD3ywOBFQEy2KJQEI3gBCaXB 4ybiq7GSDMmHDOlXOd9w1xgoyJ3ISOa/rbTsfhR+Qvex6GC8uMBv0Cd3FQDUJ3H7yYWU WrxKJwrKm65roCNvLptcJ40J/7oMKHCcUPNzeYboCi9NBQcOIhbnuFkJFfl75KoYfHXG IGsAu0SqTPHwxVlII/cvf/1fMvxXF4qu+EieZrfSsX/ODRLVctytivrhdi20DkLe0/eK xw== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jn6f0pncw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Sep 2022 22:21:20 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 28MLtQLg028997; Thu, 22 Sep 2022 22:21:19 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3jp3d540js-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Sep 2022 22:21:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xf76dS9YYGwzUqyakzxJca423jRb5bbHTLIOVCM9xHRO3VgDNzZXF4gRg8IHqBkd0Ug4w/e/i43/67XHKFvqAK3nDLxsF+qLYPloLia0R5bxjudgj3ujYXx7hYSJKbxIj1mjr9qtRht1rqfy6BqJS0c1tRyZupfR8a3o7Ldj8OyTB4Pm2r1luukIP/oAHyPQynbQAvnOJjTt//3GLtn19eHn7zSQjySx2cRKf400dL/rpKxIXjHyBejNQepH2yT+T72xBy1LF+xbNIyLW7G92ckJPb2ZtIojy+njeRf4S1lUw41XNPNHg8k4CDNDcKN0OooywgLREGiIEw/sK3PHhw== 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=Fpha8lZ6TOGKY5UeIQV0z/XH3vIm5jqJgyGrB6cSk/s=; b=OhVglCZEFcEAPjItcKeOwKlWMzI1DIVEGhBWoLP/Ku2QnOC3U/O3KBLPhK1YblTeriPYAhssjYbaogDfHGrdCKOPtXPnot4v5MQcUR6N8wg1yefnTzdSimQCleQJT3DlKmxVNp947okA4OeLdLK9joMmpcrbp3uBMR4N/oKtMyKZ9k5xFIu9cPNZ6r9JZ5gEyNDT4sY3d30GRNz/sDOSSbeSKeI/thhZYJKrLxAISb4xneFUGmch3+pMt4Rmv5njUOZbmJD4BCjxkPk1Yew7o6GtAWOkoG38dkwYPnKQ+VMARvLoRXppbGvIBasX6abodrmbSjeaaiHgtG6U1YLT1Q== 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=Fpha8lZ6TOGKY5UeIQV0z/XH3vIm5jqJgyGrB6cSk/s=; b=hpZ+VccAoA7jgwdjOe+JsT5C1R/T5J+FzprTjz3mufpw4n2jKMUPp8PWScPuiabXEzUC6HPvzeahn9nDiK50qsSLTeUohsnVJ1+PVoOi6F0ACRCaU8AOxSju1xsffkiiN17wpZLPOFYuTm5kIWHx4c2SSTrmAKMiyDff7S7ROA4= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SN7PR10MB6330.namprd10.prod.outlook.com (2603:10b6:806:272::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.18; Thu, 22 Sep 2022 22:21:16 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b872:e86a:a449:59fc]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::b872:e86a:a449:59fc%7]) with mapi id 15.20.5654.017; Thu, 22 Sep 2022 22:21:16 +0000 Thread-Topic: [External] : Re: master 101f3cf5b9: Add support for user edits to VC command arguments Thread-Index: AQHYzq2UWIpPMXVMqkqcepeoDAnoPq3sAXug In-Reply-To: <87edw3o0hs.fsf@melete.silentflame.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SN7PR10MB6330:EE_ x-ms-office365-filtering-correlation-id: f41b3b05-7c18-405b-ecea-08da9ce8c41a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zuqIKaz3lGgdJoDecLux9gbsiHcU7ZfzqLxhcWCwiGClKmFF/sfmqhPmxLPAYPJcEiP4My4Sga6cO6wk0o7n85CaX5zuou++gw5FR26qdDQLhatwKvRSs8bsV2B87Ee2kP79yp0kREhXx7gUwYCR9FuPVUEPAoPVMrNBNDxBCiygUawYkgh5DlLyj1vwOHC24UHCSkOmW6Gg40/6a2kmWAKdF3XFvlxsamvnGEGiyBplSnSFfgciLgaagymuJPgt5GbqADFaTofdSU5Set+8P9+6I02qdDqBGPKfWycfHzw3toh2aMY/OUBr44GTAeVcDvshvP0JTtUTC68kDJNI3oSRKhTXXCkIJdFelzlroDIc6WpjPHe3DY5VOB+m0KSZv4cLILvTCsn6cpcLDJKBlniyTujLHLbIFuBQgiDMmcei4oWJhRCWUOnCYyfi+OWbE/wruaKY4Uct7AteWqC4WZd6hUQWYci9opNGJO8V559hNX0nFlMKnx1Qwq9Q84ta/Cujwus+XM5OQq5GweWzQmv6P/5e2o9xWf56txOuLe1hreYhvhA7v5oOS0NkbcFNC6XARIpkRAMwyjkTA7Y9yw5fe6yTca1RtQnOfwP00AQRP2HUswbLVBU0MaFUaWwHTZe/bDzHkbBhMQy5vS67cG8VGlrmxulN41bdl+vdeSgRdg5jnfLbhJA3RGLsQpyUdQAYWAK4iiFo3HSgbyho+RSW8C5xNC0UJZNNr36WXjGOS/txLT7RjEN9RPl9S GD+aVJqbGRy3tpuize+gblETg== 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:(13230022)(366004)(346002)(39860400002)(396003)(376002)(136003)(451199015)(186003)(26005)(55016003)(6506007)(71200400001)(7696005)(33656002)(9686003)(66899012)(38100700002)(122000001)(76116006)(38070700005)(4326008)(66946007)(66446008)(66476007)(66556008)(52536014)(5660300002)(44832011)(8936002)(64756008)(2906002)(41300700001)(86362001)(110136005)(54906003)(316002)(8676002)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?C+d89ejxHm3XddW3qgLbQKTHuGfuuzh/yz8QKS55Oijt0KJlUFz5VI21O4Km?= =?us-ascii?Q?/OP/MOOKSPW21CHyCfSrG4FTNkZdq7aEDvitMaCk6qqQjVBRzQqwcZ+uQBeJ?= =?us-ascii?Q?dP30XCBjFlk6bKmKZuXCDl6oXcdsS5JSG6GglGVBYgL/IgQZ+FSaN+DyWArG?= =?us-ascii?Q?cJvBqAiO07GN5+USB08ti2ymgRRBWUmEsERAK47yrNb2aDMvBCWKgnu4bcFV?= =?us-ascii?Q?6+Thrbre/BeSwpeHJ60QC/S3ihptKaBb7BmYe/iqpWoLiLFNYCFiEZeDSkE8?= =?us-ascii?Q?oJUSosFHwEQZ8lKQfHfGPOZmDbsVJba4gpXSDedFWSdjL1QsNVsI3/MSZgR7?= =?us-ascii?Q?Z7RQOx7Fj1lYawPrw1DYj81TG/MxRY8QIEeewNtq9StKjCHUKqS9+S1y4YHd?= =?us-ascii?Q?zT0YvyY3QvGr5N2UOlQpIh2qvyaSGuf9fojlpABYNYyR74cZFlng9OtNc9eC?= =?us-ascii?Q?S8rwO+LsLXwiwP5BT3zk0DDS3KBrnNP9Taeph7uDJ3rUyegIJ/7g4bgr87Ry?= =?us-ascii?Q?ygAf/lob5sWASw4xN46Hvi77npP8N7iPl9H3PKALSytrhr6U8vIYx4auSOkV?= =?us-ascii?Q?6rzKmzz0Wfw49ep7rvwtezwwmETmlBvOIAE0b116GBlKgaCjgLmPqiIAs7bm?= =?us-ascii?Q?mK 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: f41b3b05-7c18-405b-ecea-08da9ce8c41a X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2022 22:21:16.1853 (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: svJ1M3hy7QoakCC2/Ehtr7/RwXPJ7aqznHCrZXa+VGWzuKqZ7AgVzWdCc2iBaWvEf31QB7wIgHvlJkFQ4WJe5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR10MB6330 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-22_14,2022-09-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 malwarescore=0 bulkscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209220143 X-Proofpoint-GUID: lTQwbfdLDhNfJ6QRuFl5HliBAzpCWrRh X-Proofpoint-ORIG-GUID: lTQwbfdLDhNfJ6QRuFl5HliBAzpCWrRh Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.29 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:296012 Archived-At: > I thought that in Lisp we often call boolean values predicates too, I do. But I think it's become verboten for Emacs. > even though that violates the usage of 'predicate' in mathematics. No, it doesn't, actually. A programming "variable" can be likened to a nullary function. That we also have another kind of nullary function doesn't change this. (And a predicate "in mathematics" is not necessarily a function at all. There are several (related) uses of the term.) > Is there some other convention for booleans like this one? I don't think I've seen one adopted by Emacs. But someone will correct me... There is the `-flag' suffix convention for user options (not other variables), which Stefan mentioned. RMS promotes that. I use it, but I may be the only one who does. I think it's helpful to have a separate such suffix for options, even if that one is a bit long. The argument Stefan makes against any such convention is reasonable. It's definitely the case that a var often starts out as Boolean and later allows for more values. Renaming isn't such a big deal for user code. But it's a pain for vanilla Emacs code (i.e., a big user base). This is a real consideration, no doubt. But hey, this is Lisp - schema-flexible, etc. And we have aliasing. Que demande le peuple ? That worry/argument, BTW, doesn't apply to local vars, e.g., let-bound vars and function parameters. I often use suffix `-p' in those contexts. It's a very short suffix, and it makes the code/intention clearer, IMHO.