all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: renato.pontefice@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: regexp on emacs how to...
Date: Wed, 3 Sep 2014 02:25:53 -0700 (PDT)	[thread overview]
Message-ID: <4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com> (raw)
In-Reply-To: <a449b564-22c1-4273-b3b5-248ade5d4dac@googlegroups.com>

Il giorno mercoledì 3 settembre 2014 11:24:49 UTC+2, renato.p...@gmail.com ha scritto:
> Il giorno martedì 2 settembre 2014 13:03:23 UTC+2, Nicolas Richard ha scritto:
> 
> > 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.
> 
> 
> 
> (as rightly said Nicolas, I continue the post on the groups. My last two messages:)
> 
> 
> 
> Nicolas...I would not be too hasty..... but it seems to work!!!!!!!!!!!!!
> 
> 
> 
> I thank you for your help, now Icontinue to try!!!!!
> 
> 
> 
> Thanks again
> 
> 
> 
> Renato

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\òlllò...)
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 error, it arrive at end of file

TIA

Renato



  reply	other threads:[~2014-09-03  9:25 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-30 21:01 regexp on emacs how to renato.pontefice
2014-08-30 22:17 ` Thorsten Jolitz
2014-08-30 22:39   ` Thorsten Jolitz
     [not found]   ` <mailman.7955.1409438369.1147.help-gnu-emacs@gnu.org>
2014-09-01  8:15     ` renato.pontefice
2014-09-01  8:24       ` Eric Abrahamsen
2014-09-01  9:14         ` Thorsten Jolitz
2014-09-01  9:10       ` Thorsten Jolitz
     [not found]       ` <mailman.8023.1409562921.1147.help-gnu-emacs@gnu.org>
2014-09-01 10:11         ` renato.pontefice
2014-09-01 10:28           ` Thorsten Jolitz
2014-09-01 10:38           ` Álvar Ibeas
2014-09-01  9:56 ` Nicolas Richard
     [not found]   ` <CAF83ECB74PD7An-scqk74gN4YzrGC9DW8at1-cCFzV1utYSFRQ@mail.gmail.com>
2014-09-02 10:53     ` Nicolas Richard
     [not found]     ` <874mwrrudt.fsf@yahoo.fr>
     [not found]       ` <CAF83ECB2NbV0QdCbd0H8Z-PJB0ZbYboswpjFudc__9JQH+P=1Q@mail.gmail.com>
2014-09-02 11:03         ` Nicolas Richard
     [not found]         ` <mailman.8096.1409655669.1147.help-gnu-emacs@gnu.org>
2014-09-03  9:24           ` renato.pontefice
2014-09-03  9:25             ` renato.pontefice [this message]
2014-09-03 10:47               ` Nicolas Richard
     [not found]               ` <mailman.8184.1409741111.1147.help-gnu-emacs@gnu.org>
2014-09-04 10:48                 ` Renato Pontefice
2014-09-05 12:02                   ` Nicolas Richard
     [not found]                   ` <mailman.8325.1409918483.1147.help-gnu-emacs@gnu.org>
2014-09-10  8:55                     ` Renato Pontefice
2014-09-10 10:01                       ` Nicolas Richard
     [not found]                       ` <mailman.8606.1410343132.1147.help-gnu-emacs@gnu.org>
2014-09-10 10:20                         ` Renato Pontefice
2014-09-10 13:52                           ` Nicolas Richard
     [not found]                           ` <mailman.8618.1410357057.1147.help-gnu-emacs@gnu.org>
2014-09-11  7:29                             ` Renato Pontefice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fcd473a-30bd-4f90-a9cc-d0a20ec52660@googlegroups.com \
    --to=renato.pontefice@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.