From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: regexp on emacs how to... Date: Wed, 03 Sep 2014 12:47:22 +0200 Message-ID: <87ppfd3rr9.fsf@geodiff-mac3.ulb.ac.be> References: <8761h764uv.fsf@geodiff-mac3.ulb.ac.be> <874mwrrudt.fsf@yahoo.fr> <4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com> 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 1409741129 793 80.91.229.3 (3 Sep 2014 10:45:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2014 10:45:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: renato.pontefice@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 12:45:21 2014 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 1XP840-00087R-TJ for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2014 12:45:21 +0200 Original-Received: from localhost ([::1]:44017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP840-0007jP-Du for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2014 06:45:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP83i-0007eT-Tv for help-gnu-emacs@gnu.org; Wed, 03 Sep 2014 06:45:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP83b-000291-Ef for help-gnu-emacs@gnu.org; Wed, 03 Sep 2014 06:45:02 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:40551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP83b-00028x-9m for help-gnu-emacs@gnu.org; Wed, 03 Sep 2014 06:44:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhgKAL7wBlSkD4Xx/2dsb2JhbABahDeCfKxnBqAvAYEnd4QEAQUjVhALGgIFIQICDwEEDU+ILQEDEac8gXKNIQFKDYYQAReBLIRQgiKFAoF6MwcWgmOBUwWaTIkvh0iGN4NjOy+CTwEBAQ Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 03 Sep 2014 12:44:53 +0200 In-Reply-To: <4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com> (renato pontefice's message of "Wed, 3 Sep 2014 02:25:53 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:99623 Archived-At: renato.pontefice@gmail.com writes: > As I told you before, your code works great. The only things I find that = seems not work is: > > - when inside the file, there is no error text (\lojkklj\=C3=B2lll=C3=B2.= ..) > the cursor, stop him self, at every occurence of [- and I have to press C= -M c to reach the end of file. > > It could be a good things, that, if there is not any occurence of the err= or, it arrive at end of file I guess I misunderstood know what constitutes an error. Could you provide examples where the code below stops and shouldn't ? (while (and (not (eobp)) (search-forward "[-" nil t)) (skip-chars-forward "A-Z") (unless (looking-at "-]") (message "Problem found, please fix and hit C-M-c to continue") (recursive-edit))) --=20 Nicolas Richard