From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Strange re-search-forward Date: Wed, 24 Feb 2016 10:52:38 +0100 Message-ID: <87ziuq77vd.fsf@mbork.pl> References: <56CD697B.9090501@easy-emacs.de> <871t828ohb.fsf@mbork.pl> <56CD7575.2040808@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456307595 5059 80.91.229.3 (24 Feb 2016 09:53:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 09:53:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 10:53:07 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYW82-0008O6-Oa for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 10:53:06 +0100 Original-Received: from localhost ([::1]:34778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYW7x-0006m7-6a for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 04:53:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYW7m-0006m1-Es for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 04:52:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYW7j-00046U-9N for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 04:52:50 -0500 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:36481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYW7j-000461-1d for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 04:52:47 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id ACA799D2005; Wed, 24 Feb 2016 10:52:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1j+Us6FwZgh8; Wed, 24 Feb 2016 10:52:39 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 1E29A9D2004; Wed, 24 Feb 2016 10:52:39 +0100 (CET) User-agent: mu4e 0.9.13; emacs 25.1.50.3 In-reply-to: <56CD7575.2040808@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109288 Archived-At: On 2016-02-24, at 10:18, Andreas R=C3=B6hler wrote: > On 24.02.2016 10:08, Marcin Borkowski wrote: >> On 2016-02-24, at 09:27, Andreas R=C3=B6hler wrote: >> >>> Evaluating in buffer >>> >>> (re-search-forward "[ -?]+" nil t) >>> >>> foo.bar baz >>> >>> ;;;;;;; >>> >>> matches the period after foo. >>> >>> Any explanation? >> space: ascii 32 >> period: ascii 46 >> question mark: ascii 63 >> >> 46 =E2=88=88 {32,...,63} >> >> so what's wrong? >> > > Ohh, shame on me. > > Minus must come first if meant literally. Or last, or right after a range. > Thanks! You're welcome! Seems you had a problem, and you decided to use regexen... ;-) Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University