From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Breannd=C3=A1n_?= =?UTF-8?Q?=C3=93_?= =?UTF-8?Q?Nuall=C3=A1in?= Newsgroups: gmane.emacs.bugs Subject: bug#7010: [PATCH] sregex.el: Ease limitation on literal sregexes. Date: Fri, 10 Sep 2010 16:45:01 +0200 Message-ID: <87d3slac9e.fsf@via.kotona.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284135070 20634 80.91.229.12 (10 Sep 2010 16:11:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 16:11:10 +0000 (UTC) To: 7010@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 10 18:11:07 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou6Bo-00005f-4o for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Sep 2010 18:11:00 +0200 Original-Received: from localhost ([127.0.0.1]:55627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou6Bn-0004Wm-CW for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Sep 2010 12:10:59 -0400 Original-Received: from [140.186.70.92] (port=47456 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou5iL-00081q-7E for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 11:40:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou5iK-0003c9-5u for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 11:40:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56223) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5iK-0003c5-4a for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 11:40:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ou5XC-0000iJ-6P; Fri, 10 Sep 2010 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Breannd=C3=A1n_?= =?UTF-8?Q?=C3=93_?= =?UTF-8?Q?Nuall=C3=A1in?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2010 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7010 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12841325302731 (code B ref -1); Fri, 10 Sep 2010 15:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2010 15:28:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5Wz-0000i0-Q0 for submit@debbugs.gnu.org; Fri, 10 Sep 2010 11:28:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5D4-0000Pj-Kb for submit@debbugs.gnu.org; Fri, 10 Sep 2010 11:08:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou5F0-00072J-Ux for submit@debbugs.gnu.org; Fri, 10 Sep 2010 11:10:19 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40387) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5F0-00072F-TH for submit@debbugs.gnu.org; Fri, 10 Sep 2010 11:10:14 -0400 Original-Received: from [140.186.70.92] (port=33323 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou5Ez-0003Hl-OU for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 11:10:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou5Ev-00071E-88 for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 11:10:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:47492) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou5Ev-00070S-2g for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 11:10:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ou5Ep-0007l0-Rd for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2010 17:10:03 +0200 Original-Received: from nil.science.uva.nl ([146.50.56.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2010 17:10:03 +0200 Original-Received: from bon by nil.science.uva.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Sep 2010 17:10:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: nil.science.uva.nl User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:emmbl8/KO8/VshFLc3Z/1DwFbUE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 10 Sep 2010 11:28:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 10 Sep 2010 11:29:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 10 Sep 2010 12:10:15 -0400 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40068 Archived-At: Currently, the `sregexq' macro accepts only literal sregexes as args. The patch permits it to accept all kinds of macro-generated goodness. A simple example: (let ((forms '("abc" "def"))) (sregexq `(or ,@forms))) --- === modified file 'lisp/emacs-lisp/sregex.el' --- old/lisp/emacs-lisp/sregex.el 2010-01-13 08:35:10 +0000 +++ new/lisp/emacs-lisp/sregex.el 2010-09-10 14:29:30 +0000 @@ -476,7 +476,7 @@ - A pair (MIN . MAX) Where MIN and MAX are characters, adds the range of characters from MIN through MAX to the set." - `(apply 'sregex ',exps)) + `(sregex ,@exps)) (defun sregex--engine (exp combine) (cond