From unknown Sun Jun 15 08:23:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10649 <10649@debbugs.gnu.org> To: bug#10649 <10649@debbugs.gnu.org> Subject: Status: 23.4; Regexp char classes not working Reply-To: bug#10649 <10649@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:23:20 +0000 retitle 10649 23.4; Regexp char classes not working reassign 10649 emacs submitter 10649 Raffaele Ricciardi severity 10649 normal tag 10649 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 30 00:15:06 2012 Received: (at submit) by debbugs.gnu.org; 30 Jan 2012 05:15:06 +0000 Received: from localhost ([127.0.0.1]:44451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrja5-0005cO-0u for submit@debbugs.gnu.org; Mon, 30 Jan 2012 00:15:06 -0500 Received: from eggs.gnu.org ([140.186.70.92]:35907) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrja0-0005bf-NB for submit@debbugs.gnu.org; Mon, 30 Jan 2012 00:15:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrjZk-0006tV-7Y for submit@debbugs.gnu.org; Mon, 30 Jan 2012 00:14:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:49187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrjZk-0006tR-4j for submit@debbugs.gnu.org; Mon, 30 Jan 2012 00:14:44 -0500 Received: from eggs.gnu.org ([140.186.70.92]:57468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrjZg-0005co-0V for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 00:14:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrjZc-0006tH-4s for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 00:14:39 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:55022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrjZb-0006tD-SU for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 00:14:36 -0500 Received: by wgbds1 with SMTP id ds1so3210848wgb.30 for ; Sun, 29 Jan 2012 21:14:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=4JTs51jPaFB5RE9Yd8oRdaAxH1UPaEqkWHQnL+S2o14=; b=grlmZAIe3jz7n7/PnCF67VLn/sDjoQwMBxYz5k7EeNTzyBKxbNQK5CK79A+6k45Cj4 2C0fvFd1H6qZelIyKJ+0ZYn3FUWJrz7bEKAbsbthaHHoZisliSb1VA1Vid+TP84MnVjU ljtBp1jAtx+tmWCaz5pmzrIY3cU/cxHjpZr80= Received: by 10.180.76.235 with SMTP id n11mr25685245wiw.11.1327900474492; Sun, 29 Jan 2012 21:14:34 -0800 (PST) Received: from [101.10.252.12] (5ac6331d.bb.sky.com. [90.198.51.29]) by mx.google.com with ESMTPS id dw7sm13023703wib.4.2012.01.29.21.14.32 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jan 2012 21:14:33 -0800 (PST) Message-ID: <4F2627B5.2020300@gmail.com> Date: Mon, 30 Jan 2012 05:16:37 +0000 From: Raffaele Ricciardi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 23.4; Regexp char classes not working Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': --- Beginning of description --- - start emacs -Q - evaluate this forms: (string-match "[:xdigit:]" "0") (string-match "[:xdigit:]" "a") (string-match "[:alnum:]" "5") They should return non-nil, but they return nil instead. Found not working also on Emacs 23.3b and 24.0.92.1. Cheers. --- End of description --- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/lele/bin/emacs/emacs-23.4/share/emacs/23.4/etc/DEBUG. In GNU Emacs 23.4.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-01-30 on debian Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--prefix=/home/lele/bin/emacs/emacs-23.4'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: e m a c s - v e r s i o n C-x C-e i i SPC SPC C-x C-e h a l p h a a C-x C-e C-x C-e C-x C-e n u m C-x C-e 5 C-x C-e C h a r SPC c l a s s i e s SPC n o t SPC w o r k n i g C-g c o d i n g - s y s t e m C-x C-e q C-h f c o d i n g - s y c u C-g SPC SPC SPC SPC SPC C-. M-x s h o w l - l i l i s t - l i ^ \ * C-x 1 C-b Recent messages: 0 [2 times] nil Quit Entering debugger... Back to top level. Making completion list... Quit View mode: type C-h for help, h for commands, q to quit. call-interactively: Beginning of buffer [10 times] Searched 1 buffer; 327 matches for `^\*' Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils goto-addr thingatpt noutline outline easy-mmode help-fns help-mode easymenu view debug emacsbug tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 30 03:06:55 2012 Received: (at 10649) by debbugs.gnu.org; 30 Jan 2012 08:06:55 +0000 Received: from localhost ([127.0.0.1]:44539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrmGN-0001HD-DG for submit@debbugs.gnu.org; Mon, 30 Jan 2012 03:06:55 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45898 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrmGL-0001H4-8F for 10649@debbugs.gnu.org; Mon, 30 Jan 2012 03:06:54 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RrmGB-0007uK-BT; Mon, 30 Jan 2012 03:06:43 -0500 From: Glenn Morris To: Raffaele Ricciardi Subject: Re: bug#10649: 23.4; Regexp char classes not working References: <4F2627B5.2020300@gmail.com> X-Spook: smuggle North Korea csim Cocaine Centro Exon Shell Vince X-Ran: }=|hxbwf{HLiS7j\{e3M}Z:EA"DCo\^E5VZT4OQdc^R}\~twPQRc64)Y_r;UM5xL[S%rJ" X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 30 Jan 2012 03:06:43 -0500 In-Reply-To: <4F2627B5.2020300@gmail.com> (Raffaele Ricciardi's message of "Mon, 30 Jan 2012 05:16:37 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10649 Cc: 10649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Raffaele Ricciardi wrote: > - start emacs -Q > - evaluate this forms: > (string-match "[:xdigit:]" "0") > (string-match "[:xdigit:]" "a") > (string-match "[:alnum:]" "5") > They should return non-nil, but they return nil instead. >From the elisp manual: 34.3.1.2 Character Classes Here is a table of the classes you can use in a character alternative, ^^^^^^^^^^^^^^^^^^^^^^^^^ 34.3.1.1 Special Characters in Regular Expressions [...] `[ ... ]' is a "character alternative", which begins with `[' and is terminated by `]' Therefore you must write eg (string-match "[[:xdigit:]]" "0") From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 30 03:07:10 2012 Received: (at control) by debbugs.gnu.org; 30 Jan 2012 08:07:10 +0000 Received: from localhost ([127.0.0.1]:44543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrmGb-0001I4-OG for submit@debbugs.gnu.org; Mon, 30 Jan 2012 03:07:10 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45906 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrmGa-0001Hy-NZ for control@debbugs.gnu.org; Mon, 30 Jan 2012 03:07:09 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RrmGS-0007vi-1l for control@debbugs.gnu.org; Mon, 30 Jan 2012 03:07:00 -0500 Date: Mon, 30 Jan 2012 03:07:00 -0500 Message-Id: Subject: control message for bug 10649 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) tag 10649 notabug From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 15:46:11 2012 Received: (at 10649) by debbugs.gnu.org; 31 Jan 2012 20:46:11 +0000 Received: from localhost ([127.0.0.1]:47656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsKag-0004iZ-No for submit@debbugs.gnu.org; Tue, 31 Jan 2012 15:46:10 -0500 Received: from mail-ww0-f46.google.com ([74.125.82.46]:47518) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsKae-0004iK-CD for 10649@debbugs.gnu.org; Tue, 31 Jan 2012 15:46:09 -0500 Received: by wgbdt14 with SMTP id dt14so459197wgb.15 for <10649@debbugs.gnu.org>; Tue, 31 Jan 2012 12:45:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=tmuavKmI8mIyYM3g1NSID5Ls6Gxl2kvAzimS3xUjYYA=; b=q++ZGK+bsrnz/FYQ77SALUuAIwm3h1KLdqY7JcPxw+UQm4KvgwbRzxkzbXJQZAi0rc GgVRlxSK593y0/Gy4IBLQBP/FhbE2rlmfwg2zxIhAdpR5fjChJ/1F46YZLThEhyyLBqf RTrpag8ZmNiOJRtph3jBN5rZsXbJTDw0aVheg= Received: by 10.180.78.98 with SMTP id a2mr6337626wix.17.1328042745466; Tue, 31 Jan 2012 12:45:45 -0800 (PST) Received: from [101.10.252.12] (5ac63346.bb.sky.com. [90.198.51.70]) by mx.google.com with ESMTPS id ho4sm39889252wib.3.2012.01.31.12.45.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jan 2012 12:45:43 -0800 (PST) Message-ID: <4F285378.60102@gmail.com> Date: Tue, 31 Jan 2012 20:47:52 +0000 From: Raffaele Ricciardi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#10649: 23.4; Regexp char classes not working References: <4F2627B5.2020300@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 10649 Cc: 10649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) Ouch! I did RTFM, but the brackets confused me. Thank you. -- On 01/30/2012 08:06 AM, Glenn Morris wrote: > Raffaele Ricciardi wrote: > >> - start emacs -Q >> - evaluate this forms: >> (string-match "[:xdigit:]" "0") >> (string-match "[:xdigit:]" "a") >> (string-match "[:alnum:]" "5") >> They should return non-nil, but they return nil instead. > > From the elisp manual: > > 34.3.1.2 Character Classes > > Here is a table of the classes you can use in a character alternative, > ^^^^^^^^^^^^^^^^^^^^^^^^^ > > 34.3.1.1 Special Characters in Regular Expressions > [...] > `[ ... ]' > is a "character alternative", which begins with `[' and is > terminated by `]' > > Therefore you must write eg > > (string-match "[[:xdigit:]]" "0") From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 15:58:38 2012 Received: (at control) by debbugs.gnu.org; 31 Jan 2012 20:58:38 +0000 Received: from localhost ([127.0.0.1]:47666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsKmj-0004zY-HC for submit@debbugs.gnu.org; Tue, 31 Jan 2012 15:58:37 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:56854 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsKmh-0004zR-EK for control@debbugs.gnu.org; Tue, 31 Jan 2012 15:58:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RsKmP-0005vV-Ny for control@debbugs.gnu.org; Tue, 31 Jan 2012 15:58:17 -0500 Date: Tue, 31 Jan 2012 15:58:17 -0500 Message-Id: Subject: control message for bug 10649 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 10649 From unknown Sun Jun 15 08:23:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 29 Feb 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator