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: Sun, 10 Feb 2019 10:56:07 +0100 Message-ID: <35664573-1784-4887-836C-45EE8297CF2B@acm.org> References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> <835ztuosd3.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_F4062064-D2CB-412E-A8D9-C82E56A58BAB" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207310"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34391@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 10 10:57:13 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 1gslrK-000rle-3A for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Feb 2019 10:57:10 +0100 Original-Received: from localhost ([127.0.0.1]:57214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gslrJ-00023v-02 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Feb 2019 04:57:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gslrD-00023e-9Z for bug-gnu-emacs@gnu.org; Sun, 10 Feb 2019 04:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gslrC-0003xK-HP for bug-gnu-emacs@gnu.org; Sun, 10 Feb 2019 04:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gslrC-0003x5-9g for bug-gnu-emacs@gnu.org; Sun, 10 Feb 2019 04:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gslrC-0001vi-4a for bug-gnu-emacs@gnu.org; Sun, 10 Feb 2019 04:57:02 -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: Sun, 10 Feb 2019 09:57:02 +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.15497925767364 (code B ref 34391); Sun, 10 Feb 2019 09:57:02 +0000 Original-Received: (at 34391) by debbugs.gnu.org; 10 Feb 2019 09:56:16 +0000 Original-Received: from localhost ([127.0.0.1]:41774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gslqQ-0001ug-VG for submit@debbugs.gnu.org; Sun, 10 Feb 2019 04:56:15 -0500 Original-Received: from mail152c50.megamailservers.eu ([91.136.10.162]:37094 helo=mail50c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gslqN-0001uW-J2 for 34391@debbugs.gnu.org; Sun, 10 Feb 2019 04:56:13 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1549792569; bh=ADaHGCUT9umoJbfBJ9BGV5e2w0VaTSOogOiBcKhznuk=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=rfQMQiInhjGW/+9oOAy9XNHFE7BeZMxWl4Fq18kORvJQHh3pMrJ54SIFhfSo7Rmua aT91RxxLnw6W/UV3OUac+cEuFOQ+SbY+IEhYmLYbZvD7KFEu1TkmNA8y4bEU0NpwOR ebZSrIKeYdEmuOrbzoY7+miVTxDmg/NlZL/Sb7N0= 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 mail50c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x1A9u7Fm003658; Sun, 10 Feb 2019 09:56:09 +0000 In-Reply-To: <835ztuosd3.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B0211.5C5FF539.0041, 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=H6v1PdQi c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=mDV3o1hIAAAA:8 a=MwDdP3UHdYDOsGxQ5BYA:9 a=CjuIK1q_8ugA:10 a=etBtmIBa0r8wXADlXFsA:9 a=B2y7HmGcmWMA:10 a=_FVE-zBwftR9WsbkzFJk: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:155332 Archived-At: --Apple-Mail=_F4062064-D2CB-412E-A8D9-C82E56A58BAB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 8 feb. 2019 kl. 22.58 skrev Eli Zaretskii : >=20 > I think you don't find any discussion because in some quarters this > behavior is the only one that makes sense: "ASCII control characters" > is interpreted as "ASCII characters whose codepoints are below 32 > decimal". Which is why I prefer to amend the documentation to say > that, instead of excluding DEL explicitly. Well, DEL has been a control characters for more than half a century = now, but you are right: documentation should be maximally clear to = everyone, not just to those who think the way we think they ought to. Would this patch do? --Apple-Mail=_F4062064-D2CB-412E-A8D9-C82E56A58BAB Content-Disposition: attachment; filename=0001-PATCH-Document-that-cntrl-does-not-match-DEL-Bug-343.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-PATCH-Document-that-cntrl-does-not-match-DEL-Bug-343.patch" Content-Transfer-Encoding: quoted-printable =46rom=20a7db422fa867d65cb2800ad8cd0f9acb18e10f64=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Sun,=2010=20Feb=202019=2010:39:00=20+0100=0A= Subject:=20[PATCH]=20[PATCH]=20Document=20that=20[:cntrl:]=20does=20not=20= match=20DEL=0A=20(Bug#34391)=0A=0A*=20doc/lispref/searching.texi=20= (Character=20Classes):=0A*=20lisp/emacs-lisp/rx.el=20(rx):=0ADocument=20= that=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..cfbd2449b1=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=20character=20whose=20code=20is=20in=20= the=20range=200--31.=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..3fa0204a1a=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=20any=20character=20whose=20code=20is=20in=20the=20range=200-31.=0A= =20=0A=20`hex-digit',=20`hex',=20`xdigit'=0A=20=20=20=20=20=20matches=20= 0=20through=209,=20a=20through=20f=20and=20A=20through=20F.=0Adiff=20= --git=20a/test/src/regex-emacs-tests.el=20= b/test/src/regex-emacs-tests.el=0Aindex=20e84af6b131..9a40316573=20= 100644=0A---=20a/test/src/regex-emacs-tests.el=0A+++=20= b/test/src/regex-emacs-tests.el=0A@@=20-555,11=20+555,11=20@@=20= differences=20in=20behavior.")=0A=20=0A=20(defconst=20= regex-tests-PTESTS-whitelist=0A=20=20=20[=0A-=20=20=20;;=20emacs=20= doesn't=20barf=20on=20weird=20ranges=20such=20as=20[b-a],=20but=20simply=0A= -=20=20=20;;=20fails=20to=20match=0A+=20=20=20;;=20emacs=20doesn't=20see=20= DEL=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=20a=20[:cntrl:]=20= character=0A+=20=20=20;;=20emacs=20doesn't=20barf=20on=20weird=20ranges=20= such=20as=20[b-a],=20but=20simply=0A+=20=20=20;;=20fails=20to=20match=0A=20= =20=20=20168=0A=20=20=20]=0A=20=20=20"Line=20numbers=20in=20the=20PTESTS=20= test=20that=20should=20be=20skipped.=20=20These=0A--=20=0A2.17.2=20= (Apple=20Git-113)=0A=0A= --Apple-Mail=_F4062064-D2CB-412E-A8D9-C82E56A58BAB--