From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nobody@nowhere.invalid (Unknown) Newsgroups: gmane.emacs.bugs Subject: bug#8688: 23.2; search-whitespace-regexp not working as documented Date: Thu, 19 May 2011 07:29:54 +1200 From: Worik Stanton Message-ID: <4DD41E32.8070305@gmail.com> References: <4DD30660.7000309@gmail.com> <6wzkmk5vje.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1305747078 456 80.91.229.12 (18 May 2011 19:31:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 19:31:18 +0000 (UTC) Cc: 8688@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 21:31:13 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMmSZ-0003Wh-6x for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 21:31:12 +0200 Original-Received: from localhost ([::1]:47322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMmSY-0000nw-P8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 15:31:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMmSV-0000nU-Ph for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 15:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMmSU-0005rA-TH for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 15:31:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMmSU-0005r6-OV for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 15:31:02 -0400 Original-Received: from Debian-debbugs by debbugs,gnu.org with local (Exim 4.69) (envelope-from ) id 1QMmSU-0001rn-Gq; Wed, 18 May 2011 15:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Worik Stanton Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2011 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8688-submit@debbugs.gnu.org id=B8688.13057470097107 (code B ref 8688); Wed, 18 May 2011 19:31:02 +0000 Original-Received: (at 8688) by debbugs.gnu.org; 18 May 2011 19:30:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMmRc-0001qZ-Bt for submit@debbugs.gnu.org; Wed, 18 May 2011 15:30:08 -0400 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMmRb-0001pz-2q for 8688@debbugs.gnu.org; Wed, 18 May 2011 15:30:07 -0400 Original-Received: by pwi5 with SMTP id 5so996664pwi.3 for <8688@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-sja1; 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= Original-Received: by 10.142.224.17 with SMTP id w17mr1367639wfg.63.1305747001001; Wed, 18 May 2011 12:30:01 -0700 (PDT) Original-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) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: <6wzkmk5vje.fsf@fencepost.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 18 May 2011 15:31:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46564 Archived-At: 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. >