From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: library/package filename prefixes Date: Mon, 4 May 2020 09:19:02 -0700 (PDT) Message-ID: <519940ba-6cf7-4597-8ca7-13961d11b6ae@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="28426"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: rms@gnu.org, Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 04 18:24:03 2020 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 1jVdsx-0007HY-AN for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 18:24:03 +0200 Original-Received: from localhost ([::1]:56832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVdsw-0007DI-9p for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 12:24:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVdoG-0000ZP-Qa for emacs-devel@gnu.org; Mon, 04 May 2020 12:19:13 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:55642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVdoF-0000X4-0K; Mon, 04 May 2020 12:19:12 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 044GHio9184615; Mon, 4 May 2020 16:19:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=05dNOQWCN4yD23jNSsshGr6Dx04gehT6FLHu+zA/wBc=; b=sCR9MIuIBe4Zl0Zys6IF7CZDkQ6A151Q4+ESjdks/UXP/Kqa8kZnQwbRjW67j0lsUVlM jl9vEoKUEYxzJOV8pLpe5Hg1mxnoLT1lcs63oCF8B99qudxtafXqGrfLRU/KrIEykzxE tEBhlg99g99g4L5KIBeMwcCJ1/9pkhtOlKcjgMHnQQTbHVj08SmioqRqMjbfeiNk43HY sOYfhwCz7i+AsEQEWklxq+r4oyFV1EMRBaOpA8NhHCFpWpRytd4pOWRMJfLZh2tXVsGp rm+rqWPCSdsJ0a7UumyTptNal9tzJOk/uGiHtg9duC0O36T4PHGEckLUxdLBAneKLu/L 6Q== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 30s1gmyrk9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 May 2020 16:19:08 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 044GHba2085136; Mon, 4 May 2020 16:19:08 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 30t1r2md47-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 May 2020 16:19:08 +0000 Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 044GJ348028520; Mon, 4 May 2020 16:19:03 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9610 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005040128 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9610 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005040128 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/04 12:04:14 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] 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, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:248860 Archived-At: > > > Are there any libraries in Emacs or GNU ELPA > > > which currently use a 2-letter prefix? >=20 > lisp/emacs-lisp/pp.el does use a two-letter prefix. > Perhaps we should change it. >=20 > lisp/emacs-lisp/gv.el uses a two-letter prefix. > I expect that the functions named starting 'gv-' are > not used from a lot of user code, so it should not be > hard to rename them. >=20 > Does anyone oppose renaming them? >=20 > lisp/bs.el does use 'bs-' as a nane prefix... > Should we rename that? >=20 > It would be easy to rename po.el and its one entry point, > which is called in just one place. FWIW, I proposed a minimum of 2 chars (plus hyphen). I think that's good. What's a good reason for going to 3 instead of 2? And yes, I expect that there's a fair amount of code out there that uses prefixes `pp-' and `gv-'. (But that's not the reason I think a 2-char minimum is OK.) If ever all possible 2-char prefixes get used, people will of course be obliged to use at least 3 for new libraries. I don't see that as a problem. 0 or 1 char (plus hyphen) is problematic, I think. But I don't see that problem for 2. ___ See also my somewhat related suggestion, about distinguishing library prefixes from other prefixes: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00261.html