From debbugs-submit-bounces@debbugs.gnu.org Tue May 17 19:36:22 2011 Received: (at submit) by debbugs.gnu.org; 17 May 2011 23:36:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMToL-00056n-Ge for submit@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 ) id 1QMToJ-00056b-9Q for submit@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 ) id 1QMToC-00020Q-Oj for submit@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 ) id 1QMToC-00020M-NB for submit@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 ) id 1QMToB-0005AG-1n for bug-gnu-emacs@gnu.org; Tue, 17 May 2011 19:36:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMTo9-000209-JK for bug-gnu-emacs@gnu.org; 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 ) id 1QMTo9-000204-9L for bug-gnu-emacs@gnu.org; Tue, 17 May 2011 19:36:09 -0400 Received: by pzk4 with SMTP id 4so642367pzk.0 for ; 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@gmail.com> Date: Wed, 18 May 2011 11:36:00 +1200 From: Worik Stanton 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@gnu.org 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@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.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@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. 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 SPC s l C-x C-s C-h k C-M-S-s C-x 0 C-SPC C-w C-g C-y q q C-M-S-s d e f i n e d . SPC + C-s C-s C-s C-h k C-M-S-s C-x 0 C-x b D i t f o o SPC b a r SPC SPC C-M-S-s f o o SPC + b C-x C-s C-a C-k C-k C-k C-x C-s C-g C-g C-x b C-w 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: # 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) From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 03:15:46 2011 Received: (at 8688) by debbugs.gnu.org; 18 May 2011 07:15:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMayu-0007S8-JC for submit@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 ) id 1QMays-0007Rw-LE for 8688@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 ) id 1QMayk-0002iF-N3; Wed, 18 May 2011 03:15:34 -0400 From: Glenn Morris To: Worik Stanton Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented References: <4DD30660.7000309@gmail.com> 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@gmail.com> (Worik Stanton's message of "Wed, 18 May 2011 11:36:00 +1200") Message-ID: <6wzkmk5vje.fsf@fencepost.gnu.org> 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@debbugs.gnu.org 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.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. From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 04:09:01 2011 Received: (at 8688) by debbugs.gnu.org; 18 May 2011 08:09:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMboS-0000Gw-Je for submit@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 ) id 1QMboQ-0000Gk-Nx for 8688@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 To: Glenn Morris Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented References: <4DD30660.7000309@gmail.com> <6wzkmk5vje.fsf@fencepost.gnu.org> 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@fencepost.gnu.org> (Glenn Morris's message of "Wed, 18 May 2011 03:15:33 -0400") Message-ID: 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@debbugs.gnu.org, Worik Stanton 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: -2.6 (--) Glenn Morris 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@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 12:20:53 2011 Received: (at 8688) by debbugs.gnu.org; 18 May 2011 16:20:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMjUT-0004pW-0U for submit@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 ) id 1QMjUR-0004pL-UL for 8688@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 ) id 1QMjUM-0007oY-Jt; Wed, 18 May 2011 12:20:46 -0400 From: Glenn Morris To: Andreas Schwab Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented References: <4DD30660.7000309@gmail.com> <6wzkmk5vje.fsf@fencepost.gnu.org> X-Spook: anarchy Elvis COSCO digicash Vickie Weaver Capricorn X-Ran: qej#]cZw[JeG>35:2^+,'p!_&?K1!TC 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@debbugs.gnu.org, Worik Stanton 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.3 (------) Andreas Schwab wrote: > Glenn Morris 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. From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 15:30:09 2011 Received: (at 8688) by debbugs.gnu.org; 18 May 2011 19:30:09 +0000 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 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 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-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@gmail.com> Date: Thu, 19 May 2011 07:29:54 +1200 From: Worik Stanton 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 Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented References: <4DD30660.7000309@gmail.com> <6wzkmk5vje.fsf@fencepost.gnu.org> In-Reply-To: <6wzkmk5vje.fsf@fencepost.gnu.org> 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@debbugs.gnu.org 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: -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. > From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 18:14:09 2011 Received: (at 8688) by debbugs.gnu.org; 18 May 2011 22:14:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMp0L-0005Zo-I5 for submit@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 ) id 1QMp0K-0005Zb-Ts for 8688@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 ) 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 To: Glenn Morris Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented Message-ID: References: <4DD30660.7000309@gmail.com> <6wzkmk5vje.fsf@fencepost.gnu.org> Date: Wed, 18 May 2011 19:14:00 -0300 In-Reply-To: (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@debbugs.gnu.org, Andreas Schwab , Worik Stanton 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.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 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 15:21:06 2021 Received: (at 8688) by debbugs.gnu.org; 4 Dec 2021 20:21:06 +0000 Received: from localhost ([127.0.0.1]:55108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbWs-0006nQ-7B for submit@debbugs.gnu.org; Sat, 04 Dec 2021 15:21:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbWq-0006mF-M4 for 8688@debbugs.gnu.org; Sat, 04 Dec 2021 15:21:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/KfNik9QhlvtEbKyi6nleIyrPqSJOcVB+dYEutjPFBc=; b=Fy7pICODFPub+Yp/rnLW7tjl6H TvPOsNb+NhBBag+Omdd5El73AHmI3ToMItuXFQoc5W1Qu8WbtebfUO7IULlpI9B1HDP2CgNozDY7x RoIft08WeLFTF3yQD46NbSUI8iYkO/IMXUDwBTdRzQu4gVjgzLtYstZKJG3pVJvLvtBQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtbWh-00009l-5T; Sat, 04 Dec 2021 21:20:57 +0100 From: Lars Ingebrigtsen To: Worik Stanton Subject: Re: bug#8688: 23.2; search-whitespace-regexp not working as documented References: <4DD30660.7000309@gmail.com> <6wzkmk5vje.fsf@fencepost.gnu.org> <4DD41E32.8070305@gmail.com> X-Now-Playing: Kraftwerk's _Exceller 8_: "Comet Melody 2" Date: Sat, 04 Dec 2021 21:20:54 +0100 In-Reply-To: <4DD41E32.8070305@gmail.com> (Worik Stanton's message of "Thu, 19 May 2011 07:29:54 +1200") Message-ID: <87bl1w3yvt.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Worik Stanton writes: > 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 t [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8688 Cc: 8688@debbugs.gnu.org, Glenn Morris X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Worik Stanton writes: > 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. (I'm going through old bug reports that unfortunately weren't resolved at the time.) It seems like the problems in this bug report stem from the various ways Emacs presents and represents strings, and Emacs has many ways of doing that. For instance: (let ((print-escape-newlines t)) (prin1 "[ \t\r\n]+" (current-buffer))) "[ ^M\n]+" (let ((print-escape-control-characters t)) (prin1 "[ \t\r\n]+" (current-buffer))) "[ \11\15\12]+" etc. This is, unfortunately, just the way it is, so I don't think there's anything actionable in this bug report, and I'm closing it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 15:21:10 2021 Received: (at control) by debbugs.gnu.org; 4 Dec 2021 20:21:10 +0000 Received: from localhost ([127.0.0.1]:55111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbWw-0006ng-E2 for submit@debbugs.gnu.org; Sat, 04 Dec 2021 15:21:10 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbWu-0006nF-MX for control@debbugs.gnu.org; Sat, 04 Dec 2021 15:21:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6n5t3wEDY3iN5FXvqilM+kYeKEpfRXCsb/KpwMFkIcU=; b=uOUHnMB6HQ+KNMAzWa1DQ1gwLp zwEgSoIgdllXEesgGVbt4PfQHEZcTOamwBobDjzpSNHgNXaoV5Z2CEzvmQV4Ha6cXrsJMWWyGmvwD t9qnBG+miWY9s5QVel4bk+sk2UYWfhUAE5kvWNZtnDNlJlAAAQ6xYipiHGPlhRAWMyzA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtbWn-00009t-0M for control@debbugs.gnu.org; Sat, 04 Dec 2021 21:21:03 +0100 Date: Sat, 04 Dec 2021 21:21:00 +0100 Message-Id: <87a6hg3yvn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #8688 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 8688 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 8688 quit From unknown Tue Sep 09 00:07: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: Sun, 02 Jan 2022 12:24:11 +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