From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#34391: Acknowledgement (26.1; [[:cntrl:]] does not match DEL contrary to documentation) Date: Fri, 8 Feb 2019 22:04:32 +0100 Message-ID: <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_38222A7D-E971-43E5-B8FA-AD211749AAA0" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="257701"; mail-complaints-to="usenet@blaine.gmane.org" To: 34391@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 08 22:07:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1gsDMa-0014sO-17 for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Feb 2019 22:07:08 +0100 Original-Received: from localhost ([127.0.0.1]:35031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsDMY-0000sM-W5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Feb 2019 16:07:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsDKc-0007yj-T5 for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 16:05:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsDKa-0003zI-TZ for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 16:05:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsDKY-0003yI-6m for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 16:05:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gsDKX-0004G5-PE for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 16:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Feb 2019 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34391 X-GNU-PR-Package: emacs Original-Received: via spool by 34391-submit@debbugs.gnu.org id=B34391.154965987916327 (code B ref 34391); Fri, 08 Feb 2019 21:05:01 +0000 Original-Received: (at 34391) by debbugs.gnu.org; 8 Feb 2019 21:04:39 +0000 Original-Received: from localhost ([127.0.0.1]:40180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsDKA-0004FH-WE for submit@debbugs.gnu.org; Fri, 08 Feb 2019 16:04:39 -0500 Original-Received: from mail230c50.megamailservers.eu ([91.136.10.240]:52578 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsDK7-0004F7-UJ for 34391@debbugs.gnu.org; Fri, 08 Feb 2019 16:04:37 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1549659874; bh=K9q8Uu0j1qJNdTziurpzfRLaDAlXRWALhDw13gNGRww=; h=From:Subject:Date:References:To:In-Reply-To:From; b=Apja8BwIfeuzu2QvTG2GiUCE+BjwKpqP6U2+eiR4KAjJaHOFQtwG2bhDKul0bGXGM 04VAaEwotm6vaV7XfQero/sZ7NZbtiLiJdY/fXPHv9ScrT50QpnCeYl0UaSa8TiBgW /f5r33recGB8KDftQgu+fP8Iz9rDSSsUEUIBn/9c= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x18L4W3H009370 for <34391@debbugs.gnu.org>; Fri, 8 Feb 2019 21:04:34 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B020C.5C5DEEE2.001D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=POghB8iC c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=I0XY9c0Qja4X_8GdZvcA:9 a=CjuIK1q_8ugA:10 a=etBtmIBa0r8wXADlXFsA:9 a=B2y7HmGcmWMA:10 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:155274 Archived-At: --Apple-Mail=_38222A7D-E971-43E5-B8FA-AD211749AAA0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Proposed patch, again assuming that the [:cntrl:] behaviour cannot be = modified. Is that true? It may have come up before since a comment in a test makes explicit = reference to it (see patch), but I cannot find any discussion. --Apple-Mail=_38222A7D-E971-43E5-B8FA-AD211749AAA0 Content-Disposition: attachment; filename=0001-Document-that-cntrl-does-not-match-DEL-Bug-34391.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Document-that-cntrl-does-not-match-DEL-Bug-34391.patch" Content-Transfer-Encoding: quoted-printable =46rom=203835d9fb86821d14425cf888bff61ccaba0c0a36=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Fri,=208=20Feb=202019=2021:51:13=20+0100=0A= Subject:=20[PATCH]=20Document=20that=20[:cntrl:]=20does=20not=20match=20= DEL=20(Bug#34391)=0A=0A*=20doc/lispref/searching.texi=20(Character=20= Classes):=0A*=20lisp/emacs-lisp/rx.el=20(rx):=0ADocument=20that=20= [:cntrl:]=20excludes=20DEL.=0A*=20test/src/regex-emacs-tests.el=20= (regex-tests-PTESTS-whitelist):=0ASwap=20misplaced=20comments=20and=20= fix=20wrong=20code=20for=20DEL.=0A---=0A=20doc/lispref/searching.texi=20=20= =20=20|=202=20+-=0A=20lisp/emacs-lisp/rx.el=20=20=20=20=20=20=20=20=20|=20= 2=20+-=0A=20test/src/regex-emacs-tests.el=20|=206=20+++---=0A=203=20= files=20changed,=205=20insertions(+),=205=20deletions(-)=0A=0Adiff=20= --git=20a/doc/lispref/searching.texi=20b/doc/lispref/searching.texi=0A= index=2005fc328205..eeaef8a49a=20100644=0A---=20= a/doc/lispref/searching.texi=0A+++=20b/doc/lispref/searching.texi=0A@@=20= -559,7=20+559,7=20@@=20tabs,=20and=20other=20characters=20whose=20= Unicode=20@samp{general-category}=0A=20property=20(@pxref{Character=20= Properties})=20indicates=20they=20are=20spacing=0A=20separators.=0A=20= @item=20[:cntrl:]=0A-This=20matches=20any=20@acronym{ASCII}=20control=20= character.=0A+This=20matches=20any=20@acronym{ASCII}=20control=20= character=20except=20DEL.=0A=20@item=20[:digit:]=0A=20This=20matches=20= @samp{0}=20through=20@samp{9}.=20=20Thus,=20@samp{[-+[:digit:]]}=0A=20= matches=20any=20digit,=20as=20well=20as=20@samp{+}=20and=20@samp{-}.=0A= diff=20--git=20a/lisp/emacs-lisp/rx.el=20b/lisp/emacs-lisp/rx.el=0Aindex=20= 8b4551d0d3..a3d8c1eb10=20100644=0A---=20a/lisp/emacs-lisp/rx.el=0A+++=20= b/lisp/emacs-lisp/rx.el=0A@@=20-964,7=20+964,7=20@@=20CHAR=0A=20=20=20=20= =20=20matches=200=20through=209.=0A=20=0A=20`control',=20`cntrl'=0A-=20=20= =20=20=20matches=20ASCII=20control=20characters.=0A+=20=20=20=20=20= matches=20ASCII=20control=20characters=20except=20DEL.=0A=20=0A=20= `hex-digit',=20`hex',=20`xdigit'=0A=20=20=20=20=20=20matches=200=20= through=209,=20a=20through=20f=20and=20A=20through=20F.=0Adiff=20--git=20= a/test/src/regex-emacs-tests.el=20b/test/src/regex-emacs-tests.el=0A= index=20e84af6b131..9a40316573=20100644=0A---=20= a/test/src/regex-emacs-tests.el=0A+++=20b/test/src/regex-emacs-tests.el=0A= @@=20-555,11=20+555,11=20@@=20differences=20in=20behavior.")=0A=20=0A=20= (defconst=20regex-tests-PTESTS-whitelist=0A=20=20=20[=0A-=20=20=20;;=20= emacs=20doesn't=20barf=20on=20weird=20ranges=20such=20as=20[b-a],=20but=20= simply=0A-=20=20=20;;=20fails=20to=20match=0A+=20=20=20;;=20emacs=20= doesn't=20see=20DEL=20(0x7f)=20as=20a=20[:cntrl:]=20character=0A=20=20=20= =20138=0A=20=0A-=20=20=20;;=20emacs=20doesn't=20see=20DEL=20(0x78)=20as=20= a=20[:cntrl:]=20character=0A+=20=20=20;;=20emacs=20doesn't=20barf=20on=20= weird=20ranges=20such=20as=20[b-a],=20but=20simply=0A+=20=20=20;;=20= fails=20to=20match=0A=20=20=20=20168=0A=20=20=20]=0A=20=20=20"Line=20= numbers=20in=20the=20PTESTS=20test=20that=20should=20be=20skipped.=20=20= These=0A--=20=0A2.17.2=20(Apple=20Git-113)=0A=0A= --Apple-Mail=_38222A7D-E971-43E5-B8FA-AD211749AAA0--