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: Tue, 02 Sep 2014 13:03:23 +0200 Message-ID: <5405A3FB.6090904@yahoo.fr> References: <8761h764uv.fsf@geodiff-mac3.ulb.ac.be> <874mwrrudt.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1409655694 3214 80.91.229.3 (2 Sep 2014 11:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 11:01:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Renato Pontefice Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 13:01:27 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 1XOlq1-0002le-Kc for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 13:01:25 +0200 Original-Received: from localhost ([::1]:37253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOlq0-00016C-WC for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 07:01:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOlpe-0000yp-M0 for help-gnu-emacs@gnu.org; Tue, 02 Sep 2014 07:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOlpY-0001UT-Gv for help-gnu-emacs@gnu.org; Tue, 02 Sep 2014 07:01:02 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:37892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOlpY-0001UL-Ay for help-gnu-emacs@gnu.org; Tue, 02 Sep 2014 07:00:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An8DAISiBVSkD4Xx/2dsb2JhbAANTIczrCQGnRCDHwGBJoR7AQEEIw8BRQEQCxoCBRYLAgIJAwIBAgFFBg0BBwEBiCkBpGJ4gXKMPQGGKAEXgSyEUIIihl4BAU8HgnmBUwEEnFyHH5FigXmBQAEBAQ Original-Received: from mathsrv4.ulb.ac.be (HELO [172.19.79.241]) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 02 Sep 2014 13:00:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: X-TagToolbar-Keys: D20140902130323387 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:99585 Archived-At: Le 02/09/2014 09:48, Renato Pontefice a écrit : > wich coul be the elisp code, than check all the tags ([-.....-]), but, > from the beginning ([-) to the end (-]) find some non capital letter > (any one) I did not give it much testing, but I think this should do it: (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))) (I think my previous mail was sent twice, sorry about that.) -- Nicolas.