From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#16046: Bug with Regexp Containing only a Character Class with a Caret (PATCH) Date: Thu, 05 Dec 2013 15:26:38 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386275242 18579 80.91.229.3 (5 Dec 2013 20:27:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2013 20:27:22 +0000 (UTC) Cc: 16046-done@debbugs.gnu.org To: Cameron Desautels Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 05 21:27:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VofW4-0004sx-CL for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 21:27:20 +0100 Original-Received: from localhost ([::1]:55536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VofW3-0007VW-W8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 15:27:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VofVu-0007VJ-1v for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 15:27:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VofVm-00089t-LK for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 15:27:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VofVm-00089k-Hl for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 15:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VofVm-0006Io-7P for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 15:27:02 -0500 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Dec 2013 20:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 16046 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 16046@debbugs.gnu.org, monnier@iro.umontreal.ca, camdez@gmail.com Original-Received: via spool by 16046-done@debbugs.gnu.org id=D16046.138627520324195 (code D ref 16046); Thu, 05 Dec 2013 20:27:01 +0000 Original-Received: (at 16046-done) by debbugs.gnu.org; 5 Dec 2013 20:26:43 +0000 Original-Received: from localhost ([127.0.0.1]:60445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VofVS-0006IB-5b for submit@debbugs.gnu.org; Thu, 05 Dec 2013 15:26:42 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13797) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VofVQ-0006I3-Ro for 16046-done@debbugs.gnu.org; Thu, 05 Dec 2013 15:26:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxL6g/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFFxL6g/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="41241335" Original-Received: from 69-196-190-160.dsl.teksavvy.com (HELO pastel.home) ([69.196.190.160]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 Dec 2013 15:26:39 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1CF49602B1; Thu, 5 Dec 2013 15:26:38 -0500 (EST) In-Reply-To: (Cameron Desautels's message of "Thu, 5 Dec 2013 13:26:58 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81472 Archived-At: > After further experimentation, I suspect that "[^]" is simply not > a valid regular expression. Indeed, according to the documentation, for ^ to be treated as itself, it needs to be "not the first char", but since we have nothing else to put there, we're kind of screwed. > This suggests that the broken behavior is within > `regexp-opt-charset`. I've attached a patch for that function. Thank you for tracking down the problem and providing a fix. I just installed it in trunk, closing, Stefan