From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.help Subject: Re: isearch-forward-regexp across lines in various modes Date: Thu, 29 Jul 2004 20:38:22 +0900 Organization: Emacsen advocacy group Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091101327 6168 80.91.224.253 (29 Jul 2004 11:42:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2004 11:42:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 29 13:41:59 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bq9IM-0002tD-00 for ; Thu, 29 Jul 2004 13:41:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bq9LW-0000rD-Mm for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jul 2004 07:45:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-X-Trace: news.uni-berlin.de VoQtE71Q5BEYivb1xeqBTQwZmk4HvQLaqe4Dm45O5N3CbQNKc= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:VrBBmMQxIX0bgyvCcu0Ilnjntns= Original-Xref: shelby.stanford.edu gnu.emacs.help:124541 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19876 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19876 See the doc-string for the search-whitespace-regexp variable. >>>>> In >>>>> thomas.meyer@dla-marbach.de (Thomas Meyer) wrote: > the emacs Info file, chapter > "Regular Expression Search" states: > "If you type in incremental > regexp search, it matches any > sequence of whitespace characters, > including newlines. If you want to > match just a space, type `C-q > '." > I can see this behaviour when in > text-mode, but not in e.g. lisp-mode or > c-mode: It is because the char syntax for newline is different between text-mode and others. The following form returns " " for text-mode, but returns ">" for lisp-mode. (char-to-string (char-syntax ?\n)) -- Katsumi Yamaoka