From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: regex.c simplification Date: Thu, 19 Jul 2018 21:42:48 -0400 Message-ID: References: <83fu1mzq09.fsf@gnu.org> <30e30c9d-1e0d-ea7d-2ef5-ae8622875449@cs.ucla.edu> <7cc7d274-ee6a-ab14-c78a-4fdba963578b@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532051127 8537 195.159.176.226 (20 Jul 2018 01:45:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2018 01:45:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 20 03:45:23 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgKTz-00027P-DJ for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2018 03:45:23 +0200 Original-Received: from localhost ([::1]:46047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgKW6-0004TH-8x for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2018 21:47:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgKVs-0004S4-Q0 for emacs-devel@gnu.org; Thu, 19 Jul 2018 21:47:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgKVp-0002xb-OJ for emacs-devel@gnu.org; Thu, 19 Jul 2018 21:47:20 -0400 Original-Received: from [195.159.176.226] (port=37583 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgKVp-0002xG-ET for emacs-devel@gnu.org; Thu, 19 Jul 2018 21:47:17 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fgKTg-0001nO-OH for emacs-devel@gnu.org; Fri, 20 Jul 2018 03:45:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:UpgixbME9oAOBMiT8+rHtX/rscA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227568 Archived-At: >> does etags use regexps internally, or only to handle >> user-provided "--regex" arguments? >> More specifically, does it come with its own set of hardcoded regexps? > No, etags uses the regexp code only for --regex arguments. It would of > course be simpler to disable --regex on platforms lacking the glibc regex > API. However, my impression is that etags --regex gets some use. For > example: > https://stackoverflow.com/questions/21283687/what-do-you-put-in-your-standard-etags-regex-calls > http://xahlee.info/comp/ctags_etags_gtags.html I was thinking of just always using the libc regexp code (whether it's GNU libc or something else). Stefan