From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34391: 26.1; [[:cntrl:]] does not match DEL contrary to documentation 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 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 34391@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154965904215015 (code B ref -1); Fri, 08 Feb 2019 20:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Feb 2019 20:50:42 +0000 Received: from localhost ([127.0.0.1]:40175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsD6f-0003u7-K8 for submit@debbugs.gnu.org; Fri, 08 Feb 2019 15:50:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsD6b-0003ts-CP for submit@debbugs.gnu.org; Fri, 08 Feb 2019 15:50:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:58166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gsD6V-0003Me-V1 for submit@debbugs.gnu.org; Fri, 08 Feb 2019 15:50:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsD6V-0008Vs-3u for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 15:50:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsD6R-0003Ep-Io for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 15:50:29 -0500 Received: from mail152c50.megamailservers.eu ([91.136.10.162]:58188 helo=mail50c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gsD6E-0002rt-He for bug-gnu-emacs@gnu.org; Fri, 08 Feb 2019 15:50:19 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1549658998; bh=fibaYrR472ZPN3iS/UW/OlH+XwW6BaKoBkG8vWJguSY=; h=From:Subject:Date:To:From; b=r/LiaBTQviWycKDtAT6sDqlmyF4+peAiFRkX/V+OomJfAF+WirYPp8Dtg7n6a/hwH D1hodVHwjCtYQXm7e/hJXBgWy4rV3EWpBwBWf2cVyoRqkOId9Jjynvgt+dw02h2u4r RplbMVkIh5ODWB34LY347bU335aIvREX7Io6idOs= Feedback-ID: mattiase@acm.or 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 x18KnvNt003525 for ; Fri, 8 Feb 2019 20:49:58 +0000 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Message-Id: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> Date: Fri, 8 Feb 2019 21:49:56 +0100 X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B020A.5C5DEB76.0070, 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-Rules: 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=IkcTkHD0fZMA:10 a=HCFdnFmzLN_acL8NolMA:9 a=QEXdDO2ut3YA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.162 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Unlike every other regexp engines and POSIX regexps, and contrary to the = documentation, [[:cntrl:]] does not match DEL (\177) in Emacs. (It does = not match the C1 controls in U+0080..009f either, but at least there is = no such claim.) Assuming that it is not worth breaking existing code by changing the = behaviour, let us at least fix the manual which says: =E2=80=98[:cntrl:]=E2=80=99 This matches any ASCII control character. which is inaccurate. The error also made it into the doc string of `rx'. From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34391: Acknowledgement (26.1; [[:cntrl:]] does not match DEL contrary to documentation) 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 X-GNU-PR-Keywords: To: 34391@debbugs.gnu.org Received: via spool by 34391-submit@debbugs.gnu.org id=B34391.154965987916327 (code B ref 34391); Fri, 08 Feb 2019 21:05:01 +0000 Received: (at 34391) by debbugs.gnu.org; 8 Feb 2019 21:04:39 +0000 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 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 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 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: multipart/mixed; boundary="Apple-Mail=_38222A7D-E971-43E5-B8FA-AD211749AAA0" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Date: Fri, 8 Feb 2019 22:04:32 +0100 References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> In-Reply-To: Message-Id: <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> 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-Rules: 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-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --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-- From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34391: Acknowledgement (26.1; [[:cntrl:]] does not match DEL contrary to documentation) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Feb 2019 21:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 34391@debbugs.gnu.org Received: via spool by 34391-submit@debbugs.gnu.org id=B34391.15496631114602 (code B ref 34391); Fri, 08 Feb 2019 21:59:02 +0000 Received: (at 34391) by debbugs.gnu.org; 8 Feb 2019 21:58:31 +0000 Received: from localhost ([127.0.0.1]:40236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsEAI-0001C9-Ob for submit@debbugs.gnu.org; Fri, 08 Feb 2019 16:58:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsEAE-0001Bu-LN for 34391@debbugs.gnu.org; Fri, 08 Feb 2019 16:58:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsEA9-0004Vf-7Q; Fri, 08 Feb 2019 16:58:21 -0500 Received: from [176.228.60.248] (port=4696 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gsEA8-0006xw-QK; Fri, 08 Feb 2019 16:58:21 -0500 Date: Fri, 08 Feb 2019 23:58:00 +0200 Message-Id: <835ztuosd3.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Fri, 8 Feb 2019 22:04:32 +0100) References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Mattias EngdegÄrd > Date: Fri, 8 Feb 2019 22:04:32 +0100 > > 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. 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. Thanks. From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34391: Acknowledgement (26.1; [[:cntrl:]] does not match DEL contrary to documentation) 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 34391@debbugs.gnu.org Received: via spool by 34391-submit@debbugs.gnu.org id=B34391.15497925767364 (code B ref 34391); Sun, 10 Feb 2019 09:57:02 +0000 Received: (at 34391) by debbugs.gnu.org; 10 Feb 2019 09:56:16 +0000 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 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 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 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Message-Id: <35664573-1784-4887-836C-45EE8297CF2B@acm.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_F4062064-D2CB-412E-A8D9-C82E56A58BAB" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Date: Sun, 10 Feb 2019 10:56:07 +0100 In-Reply-To: <835ztuosd3.fsf@gnu.org> References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> <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-Rules: 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-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --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-- From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34391: Acknowledgement (26.1; [[:cntrl:]] does not match DEL contrary to documentation) Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Feb 2019 15:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 34391@debbugs.gnu.org Received: via spool by 34391-submit@debbugs.gnu.org id=B34391.154981201713956 (code B ref 34391); Sun, 10 Feb 2019 15:21:01 +0000 Received: (at 34391) by debbugs.gnu.org; 10 Feb 2019 15:20:17 +0000 Received: from localhost ([127.0.0.1]:42695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsqu1-0003d2-EN for submit@debbugs.gnu.org; Sun, 10 Feb 2019 10:20:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsqtz-0003cm-Hr for 34391@debbugs.gnu.org; Sun, 10 Feb 2019 10:20:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsqts-0000Lb-Of; Sun, 10 Feb 2019 10:20:08 -0500 Received: from [176.228.60.248] (port=4070 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gsqts-0002RC-86; Sun, 10 Feb 2019 10:20:08 -0500 Date: Sun, 10 Feb 2019 17:19:52 +0200 Message-Id: <83ef8fn013.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <35664573-1784-4887-836C-45EE8297CF2B@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Sun, 10 Feb 2019 10:56:07 +0100) References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> <835ztuosd3.fsf@gnu.org> <35664573-1784-4887-836C-45EE8297CF2B@acm.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Mattias EngdegÄrd > Date: Sun, 10 Feb 2019 10:56:07 +0100 > Cc: 34391@debbugs.gnu.org > > > 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? Yes, LGTM. Thanks. (Be sure to mention the bug number in the log message.) From unknown Tue Jun 17 01:50:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34391: Acknowledgement (26.1; [[:cntrl:]] does not match DEL contrary to documentation) 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 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 34391@debbugs.gnu.org Received: via spool by 34391-submit@debbugs.gnu.org id=B34391.15498385716323 (code B ref 34391); Sun, 10 Feb 2019 22:43:02 +0000 Received: (at 34391) by debbugs.gnu.org; 10 Feb 2019 22:42:51 +0000 Received: from localhost ([127.0.0.1]:42937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsxoI-0001dv-Jc for submit@debbugs.gnu.org; Sun, 10 Feb 2019 17:42:50 -0500 Received: from mail226c50.megamailservers.eu ([91.136.10.236]:45286 helo=mail36c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsxoG-0001dk-Hl for 34391@debbugs.gnu.org; Sun, 10 Feb 2019 17:42:49 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1549838566; bh=YcYFvT6xHQVgCDlRZVFS83V+WXUTIN6oF6tdi3BjvQ8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=l+8YfodDrZT2WaqxQkn1ruAqCGIgk/L7j4qnnvNNji1rhfMLvzDv3boqOGcQ0AIlC +xha7A8TF4OBcM1hBRfH5HTHVbsBxQx8wLUCej3/jS9yrOFDVGU73wNIUz2Eja1ajd znv8Zz7+BiWxSFdKfQnQC1IMGdxtEbJYuJ31gubA= Feedback-ID: mattiase@acm.or Received: from [192.168.1.64] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail36c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x1AMgisf029055; Sun, 10 Feb 2019 22:42:46 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= In-Reply-To: <83ef8fn013.fsf@gnu.org> Date: Sun, 10 Feb 2019 23:42:44 +0100 Content-Transfer-Encoding: 7bit Message-Id: <4851EEDC-B897-4163-BA39-8FCFEE4FDCB5@acm.org> References: <2065B36B-5650-4930-B0C0-70E571A5C58F@acm.org> <64F0B15C-1D7C-4306-BA40-2C6FA3A48849@acm.org> <835ztuosd3.fsf@gnu.org> <35664573-1784-4887-836C-45EE8297CF2B@acm.org> <83ef8fn013.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B0201.5C60A8E6.0059, 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-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=CvSRjEwD c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=kj9zAlcOel0A:10 a=mDV3o1hIAAAA:8 a=CiyX7GF6MBS2jz0ATF8A:9 a=CjuIK1q_8ugA:10 a=ncZ9vwaUYPMA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 10 feb. 2019 kl. 16.19 skrev Eli Zaretskii : > > Yes, LGTM. Thanks. (Be sure to mention the bug number in the log > message.) Yes, done. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 16 06:29:11 2019 Received: (at control) by debbugs.gnu.org; 16 Feb 2019 11:29:11 +0000 Received: from localhost ([127.0.0.1]:50031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1guy9f-0000Kc-Fy for submit@debbugs.gnu.org; Sat, 16 Feb 2019 06:29:11 -0500 Received: from mail233c50.megamailservers.eu ([91.136.10.243]:45174 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1guy9c-0000KR-C1 for control@debbugs.gnu.org; Sat, 16 Feb 2019 06:29:09 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1550316546; bh=9SCPTIod8JydYDYHSlKj7Tgj3G7PLZIby16jOZUHFYo=; h=From:Subject:Date:To:From; b=l75Kgo4N6lVTeM4tGrKI25TK/VYtu2nT2NUIPmhCfZcI1n7c9tPiRbkXZeHp4q4mH OcVOZEaSdUiA5kExD2rECXdMKi8K3528inQeKbqunaEOowOZRPiECxOIjkH0L1/+t4 q9hF/ujAOzTKQDLi8lFtUjQxYRij5+TM97RIM09o= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c83-251-8-17.bredband.comhem.se [83.251.8.17]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x1GBT4nD025572 for ; Sat, 16 Feb 2019 11:29:06 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: closing bug#34391 Message-Id: <256A4DA3-4341-492D-8EB0-1C20B1AAF582@acm.org> Date: Sat, 16 Feb 2019 12:29:04 +0100 To: control@debbugs.gnu.org X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B020C.5C67F402.0027, 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-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=J+uEEjvS c=1 sm=1 tr=0 a=NAHmi3I8mP0S/Y8gRKeQyA==:117 a=NAHmi3I8mP0S/Y8gRKeQyA==:17 a=kj9zAlcOel0A:10 a=xj_uRk1YihcZM1iVnhkA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) close 34391 thanks