From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [elpa] externals/xr e77aa97: Postfix ops are literal after ^ but not after \(?:^\) Date: Wed, 20 Feb 2019 20:35:47 -0500 Message-ID: References: <20190219201441.31417.54763@vcs0.savannah.gnu.org> <20190219201444.721BF20477@vcs0.savannah.gnu.org> <2EAACA65-DA48-449E-880C-D2DB83F1F7D9@acm.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48726"; mail-complaints-to="usenet@blaine.gmane.org" 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 Thu Feb 21 02:37:02 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwdII-000CWd-Vv for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2019 02:36:59 +0100 Original-Received: from localhost ([127.0.0.1]:52714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwdIH-0000ZO-S0 for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2019 20:36:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwdHS-0000Xb-JD for emacs-devel@gnu.org; Wed, 20 Feb 2019 20:36:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwdHQ-0001hI-AJ for emacs-devel@gnu.org; Wed, 20 Feb 2019 20:36:06 -0500 Original-Received: from [195.159.176.226] (port=36602 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwdHO-0001bI-Uj for emacs-devel@gnu.org; Wed, 20 Feb 2019 20:36:03 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gwdHF-000BF4-WC for emacs-devel@gnu.org; Thu, 21 Feb 2019 02:35:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:8Np32fOHGMZpOUnsukpWpVh8GH8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:233500 Archived-At: >>> Postfix ops are literal after ^ but not after \(?:^\) >> BTW, some of those details of the syntax of regexps are really >> undesirable. Would it be possible for xr to flag them somehow to try >> and discourage their use? > Now xr has `xr-lint'. Was that what you had in mind? Yes, the patch looked great: simple to implement but return thorough info. The next question will be how/where to hook it. Maybe we could setup a flymake backend which looks for (defcustom ... "...") and things like (re-search-forward "..."), tho maybe hooking it into the byte-compiler is a better option (that will also make it work with flymake) Stefan