GNU bug report logs - #8688
23.2; search-whitespace-regexp not working as documented

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Worik Stanton <worik.stanton@HIDDEN>; dated Tue, 17 May 2011 23:37:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 8688 <at> debbugs.gnu.org:


Received: (at 8688) by debbugs.gnu.org; 18 May 2011 22:14:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 18 18:14:09 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QMp0L-0005Zo-I5
	for submit <at> debbugs.gnu.org; Wed, 18 May 2011 18:14:09 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1QMp0K-0005Zb-Ts
	for 8688 <at> debbugs.gnu.org; Wed, 18 May 2011 18:14:09 -0400
Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:33701
	helo=ceviche.home)
	by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <monnier@HIDDEN>)
	id 1QMp0F-0005db-BO; Wed, 18 May 2011 18:14:03 -0400
Received: by ceviche.home (Postfix, from userid 20848)
	id 89AE566140; Wed, 18 May 2011 19:14:00 -0300 (ART)
From: Stefan Monnier <monnier@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented
Message-ID: <jwvd3jf3bh2.fsf-monnier+emacs@HIDDEN>
References: <4DD30660.7000309@HIDDEN> <6wzkmk5vje.fsf@HIDDEN>
	<m3boz0qvl9.fsf@HIDDEN> <gqzkmkc74y.fsf@HIDDEN>
Date: Wed, 18 May 2011 19:14:00 -0300
In-Reply-To: <gqzkmkc74y.fsf@HIDDEN> (Glenn Morris's message of
	"Wed, 18 May 2011 12:20:45 -0400")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -6.0 (------)
X-Debbugs-Envelope-To: 8688
Cc: 8688 <at> debbugs.gnu.org, Andreas Schwab <schwab@HIDDEN>,
	Worik Stanton <worik.stanton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.0 (------)

>>> I think you're being confused by the way customize treats regexps (it
>>> confuses me as well; I'm not sure it is helpful).
>> They are just literal strings, without lisp-level quoting.
> I know, but I find it confusing, and it seems others do too (eg this;
> also bug#2666). It makes it difficult to write doc-strings for 'regexp
> defcustoms, as we see in both of these cases.
>>> Oh, it's not possible to type a TAB, or ctrl-M, or newline, in a custom
>>> field
>> C-q works fine.
> Yes, but that's not what the doc says people should type, and IMO
> "ctrl-q ctrl-j" is a lot more confusing than "\n", especially in an
> interface that is supposed to make life easier.

Maybe our regexp language should accept \n and \t as escape sequences,
i.e. "\t" and "\\t" should match the same things.  I know it would be
redundant, but in cases such as regexp isearch or the above it can be handy.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8688; Package emacs. Full text available.

Message received at 8688 <at> debbugs.gnu.org:


Received: (at 8688) by debbugs.gnu.org; 18 May 2011 19:30:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 18 15:30:09 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QMmRc-0001qZ-Bt
	for submit <at> debbugs.gnu.org; Wed, 18 May 2011 15:30:08 -0400
Received: from mail-pw0-f44.google.com ([209.85.160.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMmRb-0001pz-2q
	for 8688 <at> debbugs.gnu.org; Wed, 18 May 2011 15:30:07 -0400
Received: by pwi5 with SMTP id 5so996664pwi.3
	for <8688 <at> debbugs.gnu.org>; Wed, 18 May 2011 12:30:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:message-id:date:from:user-agent:mime-version:to
	:cc:subject:references:in-reply-to:content-type
	:content-transfer-encoding;
	bh=Ni2rZ5b8S0xo+lPg0KA1qcIJvbjm84m08qBFqguDy7s=;
	b=edmZhAuCJZMmwaA/+Vm9bPW37BWx13f+OBvMzVVEl7XSX8izsHj3So5WF+sJoDmJmV
	K5qStXpTWbjl0EPQEAyDtB8vf6F4D4DzHKmw1caeCMu5mQqkeHAxviZHkBlFecN6Lj5r
	8W7HtghrFKz8e8S1mvzzG/lUn/yTKTL+qRV6w=
DomainKey-Signature: a=rsa-sha1; c=nofws; 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;
	b=C+t8yK4nPpbEfWFezFOo3cC8gwDJguE+VDZvvqhKZrnnQlY74baJfWm57P5TtifexP
	ekIaaPtLFiUi+1bL611aaYfL4IhYd4XN1uVCihVY/oaMrWk7yCF8FhbP/FJvMlT65mlV
	94xSxpiZ8lahEcHOGjwrpp3ojk/irOr57KuAY=
Received: by 10.142.224.17 with SMTP id w17mr1367639wfg.63.1305747001001;
	Wed, 18 May 2011 12:30:01 -0700 (PDT)
Received: from [192.168.1.22] ([202.27.210.211])
	by mx.google.com with ESMTPS id x15sm801868wfd.12.2011.05.18.12.29.57
	(version=SSLv3 cipher=OTHER); Wed, 18 May 2011 12:29:59 -0700 (PDT)
Message-ID: <4DD41E32.8070305@HIDDEN>
Date: Thu, 19 May 2011 07:29:54 +1200
From: Worik Stanton <worik.stanton@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
MIME-Version: 1.0
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented
References: <4DD30660.7000309@HIDDEN> <6wzkmk5vje.fsf@HIDDEN>
In-Reply-To: <6wzkmk5vje.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: 8688
Cc: 8688 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.1 (----)

On 18/05/11 19:15, Glenn Morris wrote:
> Worik Stanton wrote:
>
>> I set search-whitespace-regexp to [ \t\r\n]+ in customise as suggested
>> in the documentation but when I do a isearch-forward-regexp the space
>> character only matches a literal space.
>>
>>   '(search-whitespace-regexp "[ \\t\\r\\n]+"))
>>
>> is the line from .emacs
> I think you're being confused by the way customize treats regexps (it
> confuses me as well; I'm not sure it is helpful). There is extra
> escaping in the setting of search-whitespace-regexp that is written to
> your .emacs. It should be:
>
>    '(search-whitespace-regexp "[ \t\r\n]+"))
>
> The doc of search-whitespace-regexp says:
>
>    In the Customization buffer, that is `[' followed by a space,
>    a tab, a carriage return (control-M), a newline, and `]+'
>
> If you literally use that input, does it work?
Yes.  I copied the string direct from the documentation.  Perhaps this 
is a bug in the documentation?

Also I uncovered another bug, I guess it could be described as 
aesthetic.  I changed the "custom-set-variables"  command to...

(custom-set-variables
   ;; custom-set-variables was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(delete-by-moving-to-trash t)
  '(save-place t nil (saveplace))
  '(search-whitespace-regexp "[ \t\r\n]+"))

And executed it.  (regex-search works as expected now).

But C-h v search-whitespace-regexp  says it is set to...

search-whitespace-regexp's value is "[     ^M\n]+"

I was about to report that the custom-set-variables command did not work...

Thanks for your help, all the serious problems are solved.

cheers
Worik

> Oh, it's not possible to type a TAB, or ctrl-M, or newline, in a custom
> field, since it moves you out of the editable field... This is even more
> confusing.
>





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8688; Package emacs. Full text available.

Message received at 8688 <at> debbugs.gnu.org:


Received: (at 8688) by debbugs.gnu.org; 18 May 2011 16:20:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 18 12:20:53 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QMjUT-0004pW-0U
	for submit <at> debbugs.gnu.org; Wed, 18 May 2011 12:20:53 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1QMjUR-0004pL-UL
	for 8688 <at> debbugs.gnu.org; Wed, 18 May 2011 12:20:52 -0400
Received: from localhost ([127.0.0.1]:46642)
	by fencepost.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1QMjUM-0007oY-Jt; Wed, 18 May 2011 12:20:46 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented
References: <4DD30660.7000309@HIDDEN> <6wzkmk5vje.fsf@HIDDEN>
	<m3boz0qvl9.fsf@HIDDEN>
X-Spook: anarchy Elvis COSCO digicash Vickie Weaver Capricorn
X-Ran: qej#]cZw[JeG>35:2^+,'p!_&?K1!TC<oP]cKF?)10.FdBj[ZUh{m`HQ15#LVmMzU@jR^e
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 18 May 2011 12:20:45 -0400
Message-ID: <gqzkmkc74y.fsf@HIDDEN>
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.3 (------)
X-Debbugs-Envelope-To: 8688
Cc: 8688 <at> debbugs.gnu.org, Worik Stanton <worik.stanton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.3 (------)

Andreas Schwab wrote:

> Glenn Morris <rgm@HIDDEN> writes:
>
>> I think you're being confused by the way customize treats regexps (it
>> confuses me as well; I'm not sure it is helpful).
>
> They are just literal strings, without lisp-level quoting.

I know, but I find it confusing, and it seems others do too (eg this;
also bug#2666). It makes it difficult to write doc-strings for 'regexp
defcustoms, as we see in both of these cases.

>> Oh, it's not possible to type a TAB, or ctrl-M, or newline, in a custom
>> field
>
> C-q works fine.

Yes, but that's not what the doc says people should type, and IMO
"ctrl-q ctrl-j" is a lot more confusing than "\n", especially in an
interface that is supposed to make life easier.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8688; Package emacs. Full text available.

Message received at 8688 <at> debbugs.gnu.org:


Received: (at 8688) by debbugs.gnu.org; 18 May 2011 08:09:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 18 04:09:01 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QMboS-0000Gw-Je
	for submit <at> debbugs.gnu.org; Wed, 18 May 2011 04:09:00 -0400
Received: from mail-out.m-online.net ([212.18.0.9])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1QMboQ-0000Gk-Nx
	for 8688 <at> debbugs.gnu.org; Wed, 18 May 2011 04:08:59 -0400
Received: from frontend1.mail.m-online.net (unknown [192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 416CA1C0F594;
	Wed, 18 May 2011 10:08:53 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.8.164])
	by mail.m-online.net (Postfix) with ESMTP id 18E6D1C000B6;
	Wed, 18 May 2011 10:08:53 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.180])
	by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new,
	port 10024)
	with ESMTP id ar9RzTrDEIeR; Wed, 18 May 2011 10:08:52 +0200 (CEST)
Received: from hase (ppp-93-104-151-90.dynamic.mnet-online.de [93.104.151.90])
	by mail.mnet-online.de (Postfix) with ESMTP;
	Wed, 18 May 2011 10:08:51 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented
References: <4DD30660.7000309@HIDDEN> <6wzkmk5vje.fsf@HIDDEN>
X-Yow: Is it NOUVELLE CUISINE when 3 olives are struggling with a scallop
	in a plate of SAUCE MORNAY?
Date: Wed, 18 May 2011 10:08:50 +0200
In-Reply-To: <6wzkmk5vje.fsf@HIDDEN> (Glenn Morris's message of
	"Wed, 18 May 2011 03:15:33 -0400")
Message-ID: <m3boz0qvl9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 8688
Cc: 8688 <at> debbugs.gnu.org, Worik Stanton <worik.stanton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Glenn Morris <rgm@HIDDEN> writes:

> I think you're being confused by the way customize treats regexps (it
> confuses me as well; I'm not sure it is helpful).

They are just literal strings, without lisp-level quoting.

> Oh, it's not possible to type a TAB, or ctrl-M, or newline, in a custom
> field

C-q works fine.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8688; Package emacs. Full text available.

Message received at 8688 <at> debbugs.gnu.org:


Received: (at 8688) by debbugs.gnu.org; 18 May 2011 07:15:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 18 03:15:46 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QMayu-0007S8-JC
	for submit <at> debbugs.gnu.org; Wed, 18 May 2011 03:15:44 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1QMays-0007Rw-LE
	for 8688 <at> debbugs.gnu.org; Wed, 18 May 2011 03:15:43 -0400
Received: from localhost ([127.0.0.1]:60908)
	by fencepost.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1QMayk-0002iF-N3; Wed, 18 May 2011 03:15:34 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Worik Stanton <worik.stanton@HIDDEN>
Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented
References: <4DD30660.7000309@HIDDEN>
X-Spook: Soviet embassy clandestine FBI CISU Uzi NATO United
X-Ran: &=$gWgZ,g$*blY!/:$:rD)_)Jq'X1G!7"X&/(HK.\ITV5uSPFqUt7DmWQ-$j`Mmi'`\:rV
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 18 May 2011 03:15:33 -0400
In-Reply-To: <4DD30660.7000309@HIDDEN> (Worik Stanton's message of "Wed, 18
	May 2011 11:36:00 +1200")
Message-ID: <6wzkmk5vje.fsf@HIDDEN>
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.3 (------)
X-Debbugs-Envelope-To: 8688
Cc: 8688 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.3 (------)

Worik Stanton wrote:

> I set search-whitespace-regexp to [ \t\r\n]+ in customise as suggested
> in the documentation but when I do a isearch-forward-regexp the space
> character only matches a literal space.
>
>  '(search-whitespace-regexp "[ \\t\\r\\n]+"))
>
> is the line from .emacs

I think you're being confused by the way customize treats regexps (it
confuses me as well; I'm not sure it is helpful). There is extra
escaping in the setting of search-whitespace-regexp that is written to
your .emacs. It should be:

  '(search-whitespace-regexp "[ \t\r\n]+"))

The doc of search-whitespace-regexp says:

  In the Customization buffer, that is `[' followed by a space,
  a tab, a carriage return (control-M), a newline, and `]+'

If you literally use that input, does it work?

Oh, it's not possible to type a TAB, or ctrl-M, or newline, in a custom
field, since it moves you out of the editable field... This is even more
confusing.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8688; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 May 2011 23:36:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 17 19:36:22 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QMToL-00056n-Ge
	for submit <at> debbugs.gnu.org; Tue, 17 May 2011 19:36:22 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMToJ-00056b-9Q
	for submit <at> debbugs.gnu.org; Tue, 17 May 2011 19:36:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMToC-00020Q-Oj
	for submit <at> debbugs.gnu.org; Tue, 17 May 2011 19:36:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:51166)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMToC-00020M-NB
	for submit <at> debbugs.gnu.org; Tue, 17 May 2011 19:36:12 -0400
Received: from eggs.gnu.org ([140.186.70.92]:45228)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMToB-0005AG-1n
	for bug-gnu-emacs@HIDDEN; Tue, 17 May 2011 19:36:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMTo9-000209-JK
	for bug-gnu-emacs@HIDDEN; Tue, 17 May 2011 19:36:11 -0400
Received: from mail-pz0-f41.google.com ([209.85.210.41]:62287)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <worik.stanton@HIDDEN>) id 1QMTo9-000204-9L
	for bug-gnu-emacs@HIDDEN; Tue, 17 May 2011 19:36:09 -0400
Received: by pzk4 with SMTP id 4so642367pzk.0
	for <bug-gnu-emacs@HIDDEN>; Tue, 17 May 2011 16:36:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:message-id:date:from:user-agent:mime-version:to
	:subject:content-type:content-transfer-encoding;
	bh=oE4PuK8IO2RTwGdOZU0EmAstaNSz6bc8Qf132On9oz0=;
	b=spospMh+4EDpICTtj+1aMMwTkI0lzCRSfUwE/R0AIElX59Ykg7ynf/lUPnv526m0cm
	r/yXLcTkcKPeNpTYtF11b0kMCxIwqCrr369bfrA3JcB8pESumsVE/VVhLNEKSTTIIhni
	YBXw987Ed33vmu0x3ehGeHHxrPs+cXVJIuraw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	b=HyKbLu+CeM/SCkErTIKYbyQBRYHfEfT5h7C2E3lslkDMihm/U6dN82nxLDkdo1pTzz
	5HkzGGO6SmBT15xCZGbRgLfgJv2Yfk/KIe2nWTYRPVKV+Av4OJYTsgQamCPtH0VEWKps
	Ezmq+uY/EUb8dRrPxfr9BeB0tXehKL1SleoUU=
Received: by 10.142.231.11 with SMTP id d11mr727160wfh.35.1305675367792;
	Tue, 17 May 2011 16:36:07 -0700 (PDT)
Received: from [192.168.1.22] (ip202-27-210-211.dsl.kc.net.nz [202.27.210.211])
	by mx.google.com with ESMTPS id 25sm874136wfb.10.2011.05.17.16.36.03
	(version=SSLv3 cipher=OTHER); Tue, 17 May 2011 16:36:05 -0700 (PDT)
Message-ID: <4DD30660.7000309@HIDDEN>
Date: Wed, 18 May 2011 11:36:00 +1200
From: Worik Stanton <worik.stanton@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: 23.2; search-whitespace-regexp not working as documented
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.1 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.2 (-----)

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 bug report will be posted to the bug-gnu-emacs@HIDDEN 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.  If you can, give
a recipe starting from `emacs -Q':

I set search-whitespace-regexp to [ \t\r\n]+ in customise as suggested
in the documentation but when I do a isearch-forward-regexp the space
character only matches a literal space.

  '(search-whitespace-regexp "[ \\t\\r\\n]+"))

is the line from .emacs

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
/usr/share/emacs/23.2/etc/DEBUG.


In GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
  of 2011-04-04 on rothera, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11001000
configured using `configure  '--build' 'i686-linux-gnu' '--build' 
'i686-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.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' 
'--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 
'build_alias=i686-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_NZ.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default enable-multibyte-characters: t

Major mode: Help

Minor modes in effect:
   shell-dirtrack-mode: t
   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: (only . t)
   view-mode: t

Recent input:
C-s C-s C-s C-s <return> SPC s l C-x C-s C-h k C-M-S-s
C-x 0 <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <return>
<down> <down> <down> <down> <down> <down> <down> <down>
<up> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> C-SPC <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <left> C-w <down> <down> <down> <down>
<down> C-g <down> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <return> <down-mouse-1>
<mouse-movement> <mouse-1> <backspace> <backspace>
<backspace> <backspace> C-y <help-echo> <down-mouse-1>
<help-echo> <down-mouse-1> <help-echo> <down-mouse-1>
q q C-M-S-s d e f i n e d . SPC + C-s <backspace> <backspace>
C-s C-s <backspace> <backspace> <backspace> <return>
C-h k C-M-S-s C-x 0 <help-echo> <down-mouse-1> <help-echo>
<mouse-2> C-x b D i <tab> t <tab> <return> <down> <down>
<down> f o o SPC <return> b a r <tab> SPC <tab> SPC
<up> <up> <up> C-M-S-s f o o SPC + b <return> C-x C-s
C-a C-k C-k C-k C-x C-s <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <send-emacs-bug-report> C-g C-g C-x b <return>
<help-echo> <help-echo> <down-mouse-1> <mouse-movement>
<mouse-movement> <drag-mouse-1> C-w <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>
<send-emacs-bug-report>

Recent messages:
Mark saved where search started
Type C-x 1 to delete the help window, C-M-v to scroll help.
Mark saved where search started
Saving file 
/home/worik/Documents/Research/Masters/Thesis/Dissertation.tex...
Wrote /home/worik/Documents/Research/Masters/Thesis/Dissertation.tex
Saving file 
/home/worik/Documents/Research/Masters/Thesis/Dissertation.tex...
Wrote /home/worik/Documents/Research/Masters/Thesis/Dissertation.tex
Sorting environment...
Removing duplicates... done
Quit [2 times]
byte-code: Buffer is read-only: #<buffer *Help*>

Load-path shadows:
/usr/share/emacs/23.2/site-lisp/auctex/multi-prompt hides 
/usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs/23.2/site-lisp/auctex/font-latex hides 
/usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs/23.2/site-lisp/auctex/context hides 
/usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs/23.2/site-lisp/auctex/tex-fold hides 
/usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs/23.2/site-lisp/auctex/texmathp hides 
/usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs/23.2/site-lisp/auctex/latex hides 
/usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs/23.2/site-lisp/auctex/tex-fptex hides 
/usr/share/emacs/site-lisp/auctex/tex-fptex
/usr/share/emacs/23.2/site-lisp/auctex/tex-buf hides 
/usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs/23.2/site-lisp/auctex/tex-mik hides 
/usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs/23.2/site-lisp/auctex/bib-cite hides 
/usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs/23.2/site-lisp/auctex/tex-bar hides 
/usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs/23.2/site-lisp/auctex/tex-info hides 
/usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs/23.2/site-lisp/auctex/context-en hides 
/usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs/23.2/site-lisp/auctex/tex hides 
/usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs/23.2/site-lisp/auctex/tex-style hides 
/usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs/23.2/site-lisp/auctex/tex-jp hides 
/usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs/23.2/site-lisp/auctex/toolbar-x hides 
/usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs/23.2/site-lisp/auctex/context-nl hides 
/usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs/23.2/site-lisp/auctex/tex-font hides 
/usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs23/site-lisp/ess/noweb-mode hides 
/usr/share/emacs/site-lisp/noweb-mode
/usr/share/emacs/23.2/site-lisp/debian-startup hides 
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides 
/usr/share/emacs/23.2/lisp/textmodes/flyspell
/usr/share/emacs23/site-lisp/dictionaries-common/ispell hides 
/usr/share/emacs/23.2/lisp/textmodes/ispell
/usr/share/emacs/23.2/site-lisp/octave3.2-emacsen/octave-mod hides 
/usr/share/emacs/23.2/lisp/progmodes/octave-mod
/usr/share/emacs/23.2/site-lisp/octave3.2-emacsen/octave-inf hides 
/usr/share/emacs/23.2/lisp/progmodes/octave-inf

Features:
(shadow sort mail-extr message sendmail 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 mailheader canlock sha1 hex-util
hashcash mail-utils emacsbug cus-edit cus-start cus-load wid-edit pp
dired texmathp log-edit pcvs-util add-log vc vc-dispatcher preview
prv-emacs byte-opt tex-bar tex-buf toolbar-x noutline outline font-latex
bytecomp byte-compile latex easy-mmode edmacro kmacro tex-style tex
latexenc ess-help newcomment multi-isearch help-mode view vc-rcs
ess-roxy advice help-fns advice-preload hideshow imenu saveplace
ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv
ess-noweb noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l
ess-sas-a executable shell ess-arc-d ess-vst-d ess-xls-d ess-lsp-l
ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d
ess-sp3-d ess-r-d ess-r-args assoc ess-s-l ess-inf ess-utils comint ring
ess-mode noweb-mode ess ess-custom regexp-opt easymenu ess-compat
ess-site preview-latex tex-site auto-loads 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)





Acknowledgement sent to Worik Stanton <worik.stanton@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#8688; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.