From unknown Mon Jun 23 04:09:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7267: 23.1; regexp backslash-B matches word Resent-From: "Thibault Kruse" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2010 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7267 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7267@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.128777351022506 (code B ref -1); Fri, 22 Oct 2010 18:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Oct 2010 18:51:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9MiU-0005qx-7Q for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:51:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9Mhl-0005q1-30 for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9MlW-0004hw-5V for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:54:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:60176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9MlV-0004hq-Vs for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:54:58 -0400 Received: from [140.186.70.92] (port=41892 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9MlU-0006LE-Ku for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2010 14:54:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9MlT-0004hM-IL for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2010 14:54:56 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:58750 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P9MlT-0004gs-6J for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2010 14:54:55 -0400 Received: (qmail 28935 invoked by uid 0); 22 Oct 2010 18:54:52 -0000 Received: from 92.229.17.149 by www037.gmx.net with HTTP; Fri, 22 Oct 2010 20:54:51 +0200 (CEST) Content-Type: text/plain; charset="utf-8" Date: Fri, 22 Oct 2010 20:54:51 +0200 From: "Thibault Kruse" Message-ID: <20101022185451.65280@gmx.net> MIME-Version: 1.0 X-Authenticated: #16585828 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+p/gY1Vm6pLv4WUb4uTVRl/Wk6c/FPaUCujAY57s IOzlnejeJkQ3EBKj4aWypSx1AltMFCN4WC7Q== Content-Transfer-Encoding: 8bit X-GMX-UID: zOX3fbIqYmYBe1IjmHc31QhCWkZTQRRp X-FuHaFi: 0.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Fri, 22 Oct 2010 14:51:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -5.9 (-----) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: According to emacs manual, \B matches the empty string, but it does not. start emacs with emacs -q --no-site-file move point over word in the splash screen. M-: (looking-at "\\B") minibuffer says: T, should say nil 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'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-03-29 on rothera, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' 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: Fundamental Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-: ( l o o k i n g - a t SPC " " \ \ B ) M-: M-x r e p o r t - e Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. goto-history-element: Beginning of history; no preceding item t nil Making completion list... -- GRATIS! Movie-FLAT mit über 300 Videos. Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome From unknown Mon Jun 23 04:09:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7267: 23.1; regexp backslash-B matches word In-Reply-To: <20101022185451.65280@gmx.net> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2010 02:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7267 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Thibault Kruse" Cc: 7267@debbugs.gnu.org Received: via spool by 7267-submit@debbugs.gnu.org id=B7267.12878019363017 (code B ref 7267); Sat, 23 Oct 2010 02:46:02 +0000 Received: (at 7267) by debbugs.gnu.org; 23 Oct 2010 02:45:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9U6w-0000mc-Ue for submit@debbugs.gnu.org; Fri, 22 Oct 2010 22:45:35 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9U6u-0000mS-P6 for 7267@debbugs.gnu.org; Fri, 22 Oct 2010 22:45:33 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P9UAh-0000NH-Gr; Fri, 22 Oct 2010 22:49:27 -0400 References: <20101022185451.65280@gmx.net> From: Glenn Morris X-Spook: SDI blackjack credit card Perl-RSA Geraldton Manfurov S X-Ran: 82CR8bn/aS#L~wyh^q%b5kA#`aEV)_$5DdLekdL0 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: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -6.2 (------) "Thibault Kruse" wrote: > According to emacs manual, \B matches the empty string, but it does not. The elisp manual says: Backslash Constructs in Regular Expressions [...] `\B' matches the empty string, but _not_ at the beginning or end of a word, nor at the beginning or end of the buffer (or string). > start emacs with emacs -q --no-site-file > move point over word in the splash screen. > M-: > (looking-at "\\B") > minibuffer says: T, should say nil Why do you think it should return nil? This construct matches the empty string inside words. It only returns nil at word boundaries. Try (looking-at "\\B") with point at the start, middle, and end of a word. It returns nil, t, nil, as it should. The empty string is _empty_, ie length zero, not whitespace or anything like that. From unknown Mon Jun 23 04:09:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Thibault Kruse" Subject: bug#7267: closed (Re: bug#7267: 23.1; regexp backslash-B matches word) Message-ID: References: <20101023090044.271690@gmx.net> <20101022185451.65280@gmx.net> X-Gnu-PR-Message: they-closed 7267 X-Gnu-PR-Package: emacs Reply-To: 7267@debbugs.gnu.org Date: Sat, 23 Oct 2010 18:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1287859322-32680-1" This is a multi-part message in MIME format... ------------=_1287859322-32680-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7267: 23.1; regexp backslash-B matches word which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7267@debbugs.gnu.org. --=20 7267: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7267 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1287859322-32680-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7267-done) by debbugs.gnu.org; 23 Oct 2010 18:41:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9j2A-0008Uv-Tk for submit@debbugs.gnu.org; Sat, 23 Oct 2010 14:41:39 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9j27-0008Uq-S9 for 7267-done@debbugs.gnu.org; Sat, 23 Oct 2010 14:41:36 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P9j5w-0002sy-8M for 7267-done@debbugs.gnu.org; Sat, 23 Oct 2010 14:45:32 -0400 Resent-Message-ID: <19651.11596.231779.548284@fencepost.gnu.org> Resent-Date: Sat, 23 Oct 2010 14:45:32 -0400 Resent-From: Glenn Morris Resent-To: 7267-done@debbugs.gnu.org Bcc: rgm@gnu.org X-Debbugs-No-Ack: yes X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Content-Type: text/plain; charset="utf-8" In-Reply-To: <6xbp6ld3ns.fsf@fencepost.gnu.org> Message-ID: <20101023090044.271690@gmx.net> MIME-Version: 1.0 References: <20101022185451.65280@gmx.net> <6xbp6ld3ns.fsf@fencepost.gnu.org> X-Authenticated: #16585828 X-Flags: 0001 X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18MSsdYlpkMjlbByfowYgUWbJFFg8vf1l7EjugBnW tfBtyjGhKD0+dnKdhYl7SySVTw5VfHFjiZ6Q== Content-Transfer-Encoding: 8bit X-GMX-UID: BJb7eRoneWUofAx1jnVz6KoxU3U4N09m X-FuHaFi: 0.56999999999999995 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Date: Sat, 23 Oct 2010 11:00:44 +0200 From: "Thibault Kruse" To: Glenn Morris Subject: Re: bug#7267: 23.1; regexp backslash-B matches word X-Bogosity: unsure, spamicity=0.117887, v1.1.5 X-Mailer: WWW-Mail 6100 (Global Message Exchange) Resent-Date: Sat, 23 Oct 2010 14:45:32 -0400 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 7267-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -6.6 (------) sorry, I misunderstood. But I now understand it means it always returns t except for the noted cases, as any string contains the empty string. -------- Original-Nachricht -------- > Datum: Fri, 22 Oct 2010 22:49:27 -0400 > Von: Glenn Morris > An: "Thibault Kruse" > CC: 7267@debbugs.gnu.org > Betreff: Re: bug#7267: 23.1; regexp backslash-B matches word > "Thibault Kruse" wrote: > > > According to emacs manual, \B matches the empty string, but it does not. > > The elisp manual says: > > Backslash Constructs in Regular Expressions > [...] > > `\B' > matches the empty string, but _not_ at the beginning or end of a > word, nor at the beginning or end of the buffer (or string). > > > start emacs with emacs -q --no-site-file > > move point over word in the splash screen. > > M-: > > (looking-at "\\B") > > minibuffer says: T, should say nil > > Why do you think it should return nil? > > This construct matches the empty string inside words. > It only returns nil at word boundaries. Try > > (looking-at "\\B") > > with point at the start, middle, and end of a word. > It returns nil, t, nil, as it should. > > The empty string is _empty_, ie length zero, not whitespace or > anything like that. > -- GRATIS! Movie-FLAT mit über 300 Videos. Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome ------------=_1287859322-32680-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Oct 2010 18:51:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9MiU-0005qx-7Q for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:51:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P9Mhl-0005q1-30 for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9MlW-0004hw-5V for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:54:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:60176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9MlV-0004hq-Vs for submit@debbugs.gnu.org; Fri, 22 Oct 2010 14:54:58 -0400 Received: from [140.186.70.92] (port=41892 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9MlU-0006LE-Ku for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2010 14:54:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9MlT-0004hM-IL for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2010 14:54:56 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:58750 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P9MlT-0004gs-6J for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2010 14:54:55 -0400 Received: (qmail 28935 invoked by uid 0); 22 Oct 2010 18:54:52 -0000 Received: from 92.229.17.149 by www037.gmx.net with HTTP; Fri, 22 Oct 2010 20:54:51 +0200 (CEST) Content-Type: text/plain; charset="utf-8" Date: Fri, 22 Oct 2010 20:54:51 +0200 From: "Thibault Kruse" Message-ID: <20101022185451.65280@gmx.net> MIME-Version: 1.0 Subject: 23.1; regexp backslash-B matches word To: bug-gnu-emacs@gnu.org X-Authenticated: #16585828 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+p/gY1Vm6pLv4WUb4uTVRl/Wk6c/FPaUCujAY57s IOzlnejeJkQ3EBKj4aWypSx1AltMFCN4WC7Q== Content-Transfer-Encoding: 8bit X-GMX-UID: zOX3fbIqYmYBe1IjmHc31QhCWkZTQRRp X-FuHaFi: 0.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 22 Oct 2010 14:51:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -5.9 (-----) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: According to emacs manual, \B matches the empty string, but it does not. start emacs with emacs -q --no-site-file move point over word in the splash screen. M-: (looking-at "\\B") minibuffer says: T, should say nil 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'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-03-29 on rothera, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' 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: Fundamental Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-: ( l o o k i n g - a t SPC " " \ \ B ) M-: M-x r e p o r t - e Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. goto-history-element: Beginning of history; no preceding item t nil Making completion list... -- GRATIS! Movie-FLAT mit über 300 Videos. Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome ------------=_1287859322-32680-1--