From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alain Cochard Newsgroups: gmane.emacs.help Subject: Trouble in understanding the behavior of search-backward-regexp Date: Mon, 07 Sep 2009 18:03:47 +0200 Organization: Universites Paris VI/Paris VII - France Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252347886 25945 80.91.229.12 (7 Sep 2009 18:24:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2009 18:24:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 07 20:24:38 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MkitJ-0001Qk-A6 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 20:24:37 +0200 Original-Received: from localhost ([127.0.0.1]:40125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkitI-0003yd-Nv for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 14:24:36 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!newsfeed.esat.net!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!jussieu.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: frac.u-strasbg.fr Original-X-Trace: vishnu.jussieu.fr 1252339430 40351 130.79.10.22 (7 Sep 2009 16:03:50 GMT) Original-X-Complaints-To: usenet@vishnu.jussieu.fr Original-NNTP-Posting-Date: Mon, 7 Sep 2009 16:03:50 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:xA607QYX52JGpARCNV4isZHimJo= Original-Xref: news.stanford.edu gnu.emacs.help:172801 X-Mailman-Approved-At: Mon, 07 Sep 2009 14:23:57 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67945 Archived-At: Hello. The trouble concerns the regular expression [[:blank:]]+ for which I read that it matches any sequence of spaces and tabs. Let me start with search-forward-regexp, with which I have no problem. Let us say I have the following sentence: foo bar with spaces and tabs between the two words If I put the cursor at the beginning and I use 'search-forward-regexp' with this [[:blank:]]+, I end up with the cursor right on the 'b', which is what I expect. Now, if I put the cursor at the end of that sentence and use search-backward-regexp, again with [[:blank:]]+, I would expect to end up on the second 'o' of 'foo'. Instead, I end up somewhere between the two words, which is very mysterious to me (I have tried with several combinations of emacs-version/distributions/hardware). Thanks in advance for any tip. Alain