From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: :alnum: broken? Date: Fri, 21 Feb 2020 13:28:19 -0800 Message-ID: <86sgj3ljf0.fsf@stephe-leake.org> References: <86wo8flqct.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="90398"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 21 22:28:55 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j5Fqx-000NPj-Df for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Feb 2020 22:28:55 +0100 Original-Received: from localhost ([::1]:36360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5Fqw-0006kx-Gi for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Feb 2020 16:28:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33419) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5FqT-0006JG-44 for emacs-devel@gnu.org; Fri, 21 Feb 2020 16:28:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5FqR-0001fj-5d for emacs-devel@gnu.org; Fri, 21 Feb 2020 16:28:24 -0500 Original-Received: from gateway22.websitewelcome.com ([192.185.47.65]:46704) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5FqQ-0001d6-Tm for emacs-devel@gnu.org; Fri, 21 Feb 2020 16:28:23 -0500 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 61C0EBFEA for ; Fri, 21 Feb 2020 15:28:21 -0600 (CST) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id 5FqPjZCt5vBMd5FqPjW2Ld; Fri, 21 Feb 2020 15:28:21 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KoT4JBbQYpSGOuJII5iHOKNGoZnMpTxQ/WJyBk+EBxI=; b=g9H91tXiH/fT1aGuYs+LjPBbi VqU7FlNlIFB51QL3p6WHDDk+t3dYozXn+g4X10mwt7y9DxcwvtGWcxlZPoLX0cB/H4ab3Sn+fqMtt xEqUSkDmtcP7bPOnLEU/YFhlrG5DfnWjVLK6otE4UFHbRSpKu3bzfNGrKwkJjmyYBzB5IU/cK4EBN C1To2VNjTzGOBHxW3MqorKmDYOdGWzAuty/j/unJ/KQSeUi7CSyUSNa7kXe8zazYHSJb2ghpmhjS7 ngpq8YXMznSLIi/CSjCflU3M4FRnde+vJukD3fatW0m2k0HVVFqL/qDdkKfTndm4Auem3JSPyJARO luaPTHJEg==; Original-Received: from [76.77.182.20] (port=52574 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1j5FqO-000jIf-OP for emacs-devel@gnu.org; Fri, 21 Feb 2020 14:28:20 -0700 In-Reply-To: (Paul Eggert's message of "Fri, 21 Feb 2020 11:00:52 -0800") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1j5FqO-000jIf-OP X-Source-Sender: (Takver4) [76.77.182.20]:52574 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.47.65 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245025 Archived-At: Paul Eggert writes: > On 2/21/20 10:58 AM, Stephen Leake wrote: >> (string-match "[:alnum:]+" text) > > You meant "[[:alnum:]]+". Ah, that makes sense. I propose this patch to help others avoid the same mistake: --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi @@ -582,8 +582,10 @@ Char Classes @cindex alpha character class, regexp @cindex xdigit character class, regexp - Here is a table of the classes you can use in a character alternative, -and what they mean: + Here is a table of the classes you can use in a character +alternative, and what they mean. Note that the characters @samp{[]} +are part of the character class name, so a regular expression using +one would be @samp{[[:alnum:]]+}. @table @samp @item [:ascii:] -- -- Stephe