From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#36167: [PATCH] Replace manually crafted hex regexes with [[:xdigit:]] Date: Tue, 11 Jun 2019 09:50:24 -0700 (PDT) Message-ID: References: <1560263874.21373.1@yandex.ru> <5f7ea771-2a22-ba10-b3ce-6adb5e85dc9d@cs.ucla.edu> <85476B58-4CBD-45C9-903C-5E49D8E5D019@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17255"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36167@debbugs.gnu.org, Konstantin Kharlamov To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 18:55:04 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hak35-0004LJ-To for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2019 18:55:04 +0200 Original-Received: from localhost ([::1]:32944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hak34-0007X0-QV for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2019 12:55:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51571) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hak2F-0007HI-LC for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 12:54:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hajzC-0001rs-Bf for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 12:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46540) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hajzC-0001rZ-5T for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 12:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hajzC-0001I1-0u for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2019 12:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2019 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36167 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36167-submit@debbugs.gnu.org id=B36167.15602718544941 (code B ref 36167); Tue, 11 Jun 2019 16:51:01 +0000 Original-Received: (at 36167) by debbugs.gnu.org; 11 Jun 2019 16:50:54 +0000 Original-Received: from localhost ([127.0.0.1]:60084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hajz4-0001Hd-64 for submit@debbugs.gnu.org; Tue, 11 Jun 2019 12:50:54 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:32910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hajz0-0001HN-2x for 36167@debbugs.gnu.org; Tue, 11 Jun 2019 12:50:52 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5BGldTK017530; Tue, 11 Jun 2019 16:50:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=JdSjzAcx82XLuhIfb4EJ2XVqPeq2nTALXa53VXqCCX0=; b=cvNTj2DVE9qGcSQlXBFOuNtSIs8Zpk3AyIcOByIOY8sKvRoLVIUCXEMmln/VqUZ7cWN/ bc5kbyLzf7NFW1G+PbTzqOwAmRKqpDK2GYW9oZgsrcuygOMCMxCaqkiopkfJ91Gb+P78 nSEKAEmuWmT/HVsXzqvxyzL/1UqQpLCSRWZEoGYFjQtwzMhQxCQJ+3Mey1qvX7dHNMGu 6TReU9rMcDDga18NDAdhZt40w1/ZDEioWO3AXdK809Ho/Fz0Y/jpPHYTOU4n5n8uLutN 7OhIkENODk8tpLnRVmVR9722RvkWgnzKrNlH5Jo7/rZteVlB96pUf15ie5ve40S0Ej9E xA== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 2t02hepm62-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 Jun 2019 16:50:31 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5BGo9x0122900; Tue, 11 Jun 2019 16:50:31 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2t0p9rdbnb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 Jun 2019 16:50:30 +0000 Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5BGoPUX030425; Tue, 11 Jun 2019 16:50:25 GMT In-Reply-To: <85476B58-4CBD-45C9-903C-5E49D8E5D019@acm.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9284 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=18 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=682 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906110107 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9284 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=18 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=748 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906110107 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:160386 Archived-At: > [0-9A-Fa-f] still has one advantage: the reader, and the > writer, know exactly which characters are included without looking it up.= For > example: >=20 > - whether upper case, lower case, or both are accepted > - whether non-ascii digits are accepted (included in [:digit:] on many > platforms) +1. At least the doc for [:digit:] should say exactly what it matches. Then it'll be clear for readers and writers.