From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: What is wrong with this regexp search? Date: 10 Nov 2006 08:46:08 -0800 Organization: http://groups.google.com Message-ID: <1163177168.657810.174530@m73g2000cwd.googlegroups.com> References: <1163175893.633418.30770@h54g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1163180576 23154 80.91.229.2 (10 Nov 2006 17:42:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Nov 2006 17:42:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 10 18:42:53 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GiaOR-0000ft-WE for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Nov 2006 18:42:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GiaOR-00054r-EL for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Nov 2006 12:42:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 168.208.215.220 Original-X-Trace: posting.google.com 1163177174 30124 127.0.0.1 (10 Nov 2006 16:46:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 10 Nov 2006 16:46:14 +0000 (UTC) In-Reply-To: <1163175893.633418.30770@h54g2000cwb.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=168.208.215.220; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:143005 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: , 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:38624 Archived-At: > The problem is that re-search-forward seems to capture the very next > character, irrespective whether the following one is uppercase or > lowercase. case-fold-search is probably non-nil Put a let someplace around your search. Then it doesn't matter if it's on or off. (let (case-fold-search)(re-search-forward "[a-z][A-Z]"))