From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Rename regex functions to use prefix re- Date: Sat, 2 May 2020 01:25:22 +0200 Message-ID: References: <266155d4-f9c0-8ed3-8df5-32feea171076@yandex.ru> <542564DC-6DD0-41E5-A9CC-365673D68BE0@gmail.com> <93FA1F56-A056-4E17-A468-17829D638FF5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56004"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Philippe Vaucher , Emacs developers , Stefan Monnier , Dmitry Gutov To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 01:26:09 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 1jUf2l-000EQf-Fp for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 01:26:07 +0200 Original-Received: from localhost ([::1]:38174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUf2j-0004rp-JD for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 19:26:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUf2F-0004OF-JH for emacs-devel@gnu.org; Fri, 01 May 2020 19:25:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUf2F-0004IR-2A for emacs-devel@gnu.org; Fri, 01 May 2020 19:25:35 -0400 Original-Received: from mail-yb1-f180.google.com ([209.85.219.180]:40209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUf2E-0004IJ-Ml for emacs-devel@gnu.org; Fri, 01 May 2020 19:25:34 -0400 Original-Received: by mail-yb1-f180.google.com with SMTP id e16so3535035ybn.7 for ; Fri, 01 May 2020 16:25:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p1S3DhH+CRCpxzmTzSAB3iVFDgf0+bzsiw6qkB7fvW4=; b=Fomur7CRKyEj1vEr90C4jTVOWPzqT6GigJszGTbOrERLfqjyHcKVUB+vQeAAbWb0Di TWR8q2AKvup5/bhZQRLyIT1fV87FBTG+jH+rmFObGcV+LZ7YewOu8bCrDpB17BD3oqYQ +n8rZv9Qb1jTKbdYgV50JNjPgWddpLZc3PjJSJ3+GqiivL5wxneyKEcvM6I8GCslAO2C K4hxXkn/eBWX0NIHqeUObNBbv6tYirQ5qwXnf3n7ROvV36S74yLsjqI3gGHcf0p592OH /njf2hhIP17easgg4yNHiTrCxaLPc9db5cMDopvLbDmq/OJFQLvcPefW3NIvU0C+BJAj Rf+w== X-Gm-Message-State: AGi0PuZ+dx0iCKf+v7wnkcu6BJOy7lmnDYgkQLIPSKkxFZ1Ty21PM5xz myvqzPj7wNPE4VUfAGGlS1k7p3d1OCobz297wgo= X-Google-Smtp-Source: APiQypLmOscgFmH2N/k0SxXVBgASo6FBNVvVdFgkyAObZ2I7WPuS9P0B0M9Dn5kK13pO9tl54b9gDJ/r2ew7RRRIlTE= X-Received: by 2002:a25:c402:: with SMTP id u2mr9589854ybf.231.1588375533718; Fri, 01 May 2020 16:25:33 -0700 (PDT) In-Reply-To: <93FA1F56-A056-4E17-A468-17829D638FF5@gmail.com> Received-SPF: pass client-ip=209.85.219.180; envelope-from=stefankangas@gmail.com; helo=mail-yb1-f180.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/01 19:25:33 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.219.180 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:248354 Archived-At: Yuan Fu writes: > What about > > re-search-forward re-search-forward > re-search-backward re-search-backward > replace-regexp-in-string re-replace-in-string > replace-match re-replace-match > string-match re-search-in-string > match-string re-matched-string > > Or something along that line? We could think about the exact renames, but already the above looks like a big improvement to me. I would definitely support regularizing the regex functions to use the "re-" prefix. Best regards, Stefan Kangas