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: Add some aliases for re-related functions Date: Sat, 2 May 2020 15:27:20 -0700 (PDT) Message-ID: <90965889-0ca9-4b97-b7bb-64d4a2622112@default> References: <7976B8C1-AFC7-4662-B750-6492EB70C0D5@gmail.com> <83lfmaqizs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , emacs-devel@gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 00:28:00 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 1jV0c3-000GZY-Qv for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 00:27:59 +0200 Original-Received: from localhost ([::1]:53414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jV0c2-0008At-Sr for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 18:27:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jV0ba-0007kr-5M for emacs-devel@gnu.org; Sat, 02 May 2020 18:27:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jV0bZ-0008TH-Ev for emacs-devel@gnu.org; Sat, 02 May 2020 18:27:29 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:51400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jV0bX-0008Np-4g; Sat, 02 May 2020 18:27:27 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042MKurR089113; Sat, 2 May 2020 22:27:24 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=2Eqx1RrItPEiqylOPCXcJ21kxZWmdwGDQwml59TLBlI=; b=eBDfemggLEIYhGrk5CDs2w5U5hqRs4bSEUJAWioZKNGppKoeVltgWo0DTBbHlSN/nh63 oz+RIjbAjxpILbVyltg79BrsSxi2WF8C1naLPq9EVUE9il4jLIP+0gAhSyzBt/kf4wtZ TQdc4SHtgg34A+YGh3qA+N5FcdMs3fslghkdL0bpB27aZ5pXkOV2T1r9MUH+gM2gqfNf TlmpGEt4UxqPLp42R1dJljFK/jM4FJLVEAEOxmrH9WXEy+0ntgUjdbjaBUbN/hfI4D2u vw3sxil7OYRfsKW87q3SNyb8o3XBWfeOaxtuTwiUYwnVGdlblf2wrS5yXA/3y0HadlDl EA== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 30s09qt07x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 22:27:24 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042MRME4158314; Sat, 2 May 2020 22:27:23 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 30s9144hts-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 22:27:23 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 042MRLiW030996; Sat, 2 May 2020 22:27:22 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=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=958 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020198 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1011 suspectscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020197 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/02 18:27:25 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 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:248601 Archived-At: > > Is "re-" really a useful prefix? >=20 > It's convenient. And as I explained a minute ago, I don't think we > need to choose prefix which someone will "naturally" come up with. > The important part is that the same prefix be used for all the related > functions, so once you know the prefix you can find the rest. That's pretty much true whether `re-' is used as prefix or is elsewhere in the name, as long as it is set off using a hyphen. E.g., `nonincremental-re-search-forward', `Info-following-node-name-re'. (No, it's not always the case: `ange-ftp-re-read-dir', `message-strip-subject-re'. But some functions that use `re-' are anyway misnamed - should be `ange-ftp-reread-dir', for example.)