From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Leung Newsgroups: gmane.emacs.bugs Subject: bug#49887: [Feature request] Lookaround assertions in Elisp regexps Date: Thu, 5 Aug 2021 03:56:51 +0200 (CEST) Message-ID: <733439345.608750.1628128611179@ichabod.co-bxl> Reply-To: Brian Leung Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36415"; mail-complaints-to="usenet@ciao.gmane.io" To: 49887@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 05 03:58:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mBSeB-0009IP-0g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 03:58:11 +0200 Original-Received: from localhost ([::1]:53894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBSe9-0006y9-Kd for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Aug 2021 21:58:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBSe2-0006xj-V1 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBSe2-00068m-Lb for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBSe2-0000lK-HD for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2021 01:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49887 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug Gnu Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.16281286252863 (code B ref -1); Thu, 05 Aug 2021 01:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Aug 2021 01:57:05 +0000 Original-Received: from localhost ([127.0.0.1]:45479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBSd7-0000k6-62 for submit@debbugs.gnu.org; Wed, 04 Aug 2021 21:57:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBSd4-0000jx-V0 for submit@debbugs.gnu.org; Wed, 04 Aug 2021 21:57:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBSd4-0006un-Jf for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:57:02 -0400 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]:33936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBSd2-0005NF-K8 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:57:02 -0400 Original-Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id C26CC2E75 for ; Thu, 5 Aug 2021 03:56:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1628128615; s=20210208-e7xh; d=mailfence.com; i=leungbk@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To:From; l=506; bh=bD2h+SOi1uHZnSsj5iZynwSHOFp2W9vrm2Ol7Iv8hQs=; b=wP5i3n4A9EaiYTxGNqY9XR+yvXzyRF2ZugjvLHI6b+jp+k/ZewQObKARV6P+XsP+ s8noFvSeewqWQfbUf9mX5VM2fN1ywN1hjrGPoeBvC1AVi4l5jSolqThvApyOsI4X7mZ Q29I14MSBdWdl8evIbHf1d30bGsZcDDZ70Yt7JT+2GYHxn8knrfypzuMwpqB5jB1MrZ C2ALuOmLCZeOUNELGRGKLFoa9fP8MlN1djUKMVVba2RKkFt7zFaGv//HkxAfZyuOjm8 PLbFAA39WJiMjOV7VYwkmeolDsQRzn6rnMeAvJce996Ye6lWmBIsMyFaJ1WHBnkZ9+B sq0tHVhKbQ== X-Priority: 3 X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:225491745 Received-SPF: pass client-ip=212.3.242.68; envelope-from=leungbk@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211195 Archived-At: It would be nice if Emacs Lisp regexps supported positive- and negative-loo= kahead/behind assertions. After Tomohiro Matsuyama attempted to submit a pa= tch in 2009, there was a subsequent discussion (https://emacs-devel.gnu.nar= kive.com/cpv75xJJ/patch-for-lookaround-assertion-in-regexp) that suggested = some possible avenues but ultimately did not lead to anything concrete. --=C2=A0 Sent with https://mailfence.com Secure and private email --=20 Mailfence.com Private and secure email