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: separate name uniquification from `generate-new-buffer-name' Date: Tue, 28 Dec 2021 03:05:39 +0000 Message-ID: References: <1F7F57607F6D48728878AEF907D74130@us.oracle.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="25292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Drew Adams , 'Stefan Monnier' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 28 04:06: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 1n22p9-0006O5-1n for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Dec 2021 04:06:51 +0100 Original-Received: from localhost ([::1]:56022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n22p7-0001gc-Ix for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Dec 2021 22:06:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n22o7-0000wY-Rx for emacs-devel@gnu.org; Mon, 27 Dec 2021 22:05:48 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:23782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n22o5-0001sK-CD for emacs-devel@gnu.org; Mon, 27 Dec 2021 22:05:47 -0500 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BRNfFD2017135; Tue, 28 Dec 2021 03:05:43 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=w2rHFpzmj9nMhCJOVb4+05GHo77XD6tdkQHCyUx1KvM=; b=vHeRqoVhISnsm6dvYvAyIjPLoDVIphIXWx0ZAUiXobLtpXtrij2AVAkxI3uej65bHjop 2LtFD7L6RpofPXZ1y58B/v6HLoY1u/EFybK31MQFiog1GYjzgHWoo7+k1WfdLiCspmWD 0aMsMsagTlZDf+R4MRVTTB/HVppHUfpOHeteieEobDFSJ6B1y8VSY5YEynktNvDqaz3C FWSh1vNbwq9GtLoKt5dVEh9FM0c+iwEKe8DCwiUdiB0d4AiVlywilxbCMKH9x5GgcuPL S+LfuGd8ge5gh0Y4mwVaIrGIkH/R50V7b/3fpBJ6KbrctQ4h9gna1rIkb3thVy+BKPhO DA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3d7gtmgm9q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Dec 2021 03:05:43 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1BS35ZOC092044; Tue, 28 Dec 2021 03:05:42 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by aserp3030.oracle.com with ESMTP id 3d5sbcjuu9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Dec 2021 03:05:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WxjK5LQD08Qc/88lTaxlG39smjg6Xr2qnhlxcMuw+itsAJdhzWm087SPcXwVpsPZ8ezhqkmFoxsGeu1WUTU9/fYZ7WQleZKBKDzuWOzmrcfWvXFa/ONTwmSJZA16nxp6meAslyVhnsOWW9XZXbLAwNQqrEuXOCTbtxkQtakwSHkJ5ewlTRRatj/P+Xbn5qhs/pKOoeB8vMxH4f/IJnUSgGYA8bB/Mf5n55AKvSX6MHMMfP6qmCDguym8ezIOA8cycuaSc3BR7xO1wtk6TU6+9Hl61neP5RFmzAeznkQNUEWvWUusA3vAjsQ3gt/m9/qYcOZimX628su2+4dNXy/7Rw== 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=w2rHFpzmj9nMhCJOVb4+05GHo77XD6tdkQHCyUx1KvM=; b=EKiTVxX2MYZtrcHAE4tF+IAZchia8UNDIshHExVCClynNfLA+aKOuIfQsjL1ec31cEiT9PKxnuzetNNGA9hRIW3iM203J90rLwm3POZitS79IpB4nlcJGSOH+iZPIGe9JL+2rr1ciYDpswzyHKLzRqdTExII8aGy5uwsc9rdPmmPKbvmkwUlnHnqhjjT3gZPNtwICN0jiAR70bYeORLtsZNQ1TpXcNMQlgNkiiLZx20r5XOritY/ZuidTYjX3+QsSvdm99nQYBoKVswaDDKpwLrxl7hWb1Vp1lETQ5VzbL6e8LD8nppRsh9zGYACehGJ7qjDCDN8UxjDR1OzmNs3jQ== 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=w2rHFpzmj9nMhCJOVb4+05GHo77XD6tdkQHCyUx1KvM=; b=G1SeZseNDy7tBda2lfNfbV5M6Xpxb+AHOcutPCKM011R03fVJI75WbagZhXBkwn2YVtfiOt0s3YVmJt2OCdUyRId9cQ8qlEcgHxFVflj58BJCBtmEG1mPqKbYffPFxwo182K4X1KOZgtE6NQt37DyWTN5w/Un7kyO2dOOcGg3hw= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3719.namprd10.prod.outlook.com (2603:10b6:a03:122::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.19; Tue, 28 Dec 2021 03:05:39 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%8]) with mapi id 15.20.4823.023; Tue, 28 Dec 2021 03:05:39 +0000 Thread-Topic: separate name uniquification from `generate-new-buffer-name' Thread-Index: Acr8QK6MFufNv+ExRR+RiWqkvzyjWQAAjtmQmf6oAyA= In-Reply-To: <1F7F57607F6D48728878AEF907D74130@us.oracle.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4a8a79a3-40f6-4794-8929-08d9c9aeed92 x-ms-traffictypediagnostic: BYAPR10MB3719:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nG54Vnw8YDuKN+trdLX2ZH9e0eJnnxrTQhOkZztPMuqcajlVXGu/Mg6mpGEJTJt5CDY9rIPfCSs9Qf1v1t5J2u2x/RBfbVMmqHfsCPoPzRXdrCjHDLD/9tOkFJ76EaGyT0nVFAXlsH9ktpEokXhRVmUcvBdUY1WkheZDhZFQMKvLu9gunqE3HeQ5rVcOhZWSpE9FmBDy1iVO9sqdtksee3zYGtroa/sH4+T3p5y52sQoKfwnsPwukujHQodCwTUCbht9idmon3SEEfXDJVwaQlOIG+2DtY5nauyO7UK+sZxOppYOpsF+f6KA4It3mR1BxzG/uPoRNpBDaoIQRhzgmTXdiun+6ttFkhCRz+sbliI6luGCK8/4Oodjcu6pxtS07vMmr99ytHTbISSR6ofu132uUDkad1P/i1lDdCgIzp+nSECPzZL2rjD9ptCnjXbw/Oug5hMLCCASiaPZrODr/Kb8CdC1ik8H8hSbgb6hlZdqIne4QuXMEbjmhVPBdO1ErvBELweWA3J2HRJIe+vz0SwljlWteEDOgRbnM/rxLd4gZXT5r9l0+cK/eRb4KAKyTf29/C8IcepK+a1+ZDIEFZXmqtkLymi7h+V6ftza1WrhMUrVydqS/XK0L0C5roKnDLxbc/DjfvtHbVyBFk48pAh3hFFccZhvS+5PxBsrmQmSuwgoaFEgOKwfS2MMsuLsxUHh6PaJw33WbD60bW3syisXAVER7Gcm9ssZd0gjAxQ= 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)(55016003)(66446008)(66476007)(66556008)(7696005)(66946007)(8676002)(33656002)(64756008)(44832011)(2906002)(71200400001)(6506007)(76116006)(38070700005)(122000001)(316002)(26005)(86362001)(508600001)(4326008)(83380400001)(52536014)(8936002)(38100700002)(5660300002)(9686003)(186003)(296002)(110136005)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?YvBAwZa0UwPmqUVWfiY9wuvF7TO6w9a1P5v+pyJeWLgP1qcManv7NWYtfGPX?= =?us-ascii?Q?s5eaMLZO20JUE6AX9RMJ9v3eBlY7XyoSO8Fs9SWyztBjWvWJKO+44i6b9ymo?= =?us-ascii?Q?Sul0mlyPmHc9kemGoN0YiarbKs1LZP630YZ2185l944aKPLE7wlYKUDtvHFy?= =?us-ascii?Q?ZwYwDXCgBeAMGjWtkZNCZB2uruzJOBxhOiCS36nXYBTRGaHqY9KLO8oCq65O?= =?us-ascii?Q?cXvjKQ9wRThV52Bh8mQI8Nyq619oRbIWD3utbP53p/yBhJEPANm7xBQd4Glj?= =?us-ascii?Q?79B52uPWzj2/y6ixao/Qau9LiaAp4iGpEG0LbaTO8fWpGpD6jSPh+jVd0Pk+?= =?us-ascii?Q?FMG+zD1dwBaYZ7EORl4vdwx/IV6rk1vYC1t3+b0mF6KvycLb+48B8Lj9EC62?= =?us-ascii?Q?o0GA+UB7/10NuqnA2i4enPmAc9Jt5GPq9hdpWeXebQjVWT1AViHDA9cE3xCe?= =?us-ascii?Q?WqX3c/RcE48pBY74t6zHbHofVL4sLa8cUj8D7M1sy5WyuV1Y83XDDJHG5ERJ?= =?us-ascii?Q?nA6Y6gjV81zeiIaPRsvuMngUwovVPQBr+ChURkqU8w+XVzsZOV6aeWajdj9q?= =?us-ascii?Q?aJ4ayIRdsQNJst0rXPash1q75YG/JoUh6mY7kJa0w3/I18NIgZdSwe4RLKS9?= =?us-ascii?Q?MQ 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: 4a8a79a3-40f6-4794-8929-08d9c9aeed92 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2021 03:05:39.5525 (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: Z5g4U0TNC/5DX+BJ3AAXfRgsDv8HGRpBc/x4+fCYPfwTX5Ltq/qng1yT2xYojAWGEvB5hd0+OVvBNuoKY3z3pQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3719 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10210 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=968 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112280012 X-Proofpoint-GUID: PtZxfx9u4zTO9oOAqUtO_r9xIf_NNwQM X-Proofpoint-ORIG-GUID: PtZxfx9u4zTO9oOAqUtO_r9xIf_NNwQM 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_H3=0.001, RCVD_IN_MSPIKE_WL=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:283461 Archived-At: > Sent: Tuesday, May 25, 2010 12:53 PM > > > > Something I would like to see is separation of > > > -suffix name uniquifying from > > > `generate-new-buffer-name'. The latter could > > > just use the more general unique-naming function > > > (unless C optimization is important in that > > > particular case). > > > > Mostly agreed. As you noticed, uniquify uses advices and > > that should be fixed. A good way to fix it is to come up > > with a good name-buffer-function variable that holds a > > function that's run whenever a buffer name is chosen or > > modified. This variable's default would be a function > > that implements the usual stuff and it could be > > replaced by uniquify to do something more clever. >=20 > I agree. Not sure what disagreement there is (why "mostly"?). > Everything you say sounds OK to me. >=20 > The kind of uniquifying I proposed, and the kind that > generate-new-buffer-name' does, seem to be quite > different from the uniquifying that uniquify.el does. > > That does not mean that the logical place for a > function such as I proposed would not be uniquify.el. > uniquify.el could either be broadened (e.g. more than > one uniquifying method) or keep to the kind of naming > it does now. ping. Bugs 1338 and 6259 have finally been closed. But this is still undone, I believe. It would be good if Someone(TM) were to make progress here.