unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: michael@cadilhac.name (Michaël Cadilhac)
To: Seweryn Kokot <s.kokot@po.opole.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: what can I do with regexp match?
Date: Mon, 14 May 2007 17:36:38 +0200	[thread overview]
Message-ID: <87tzuf4dtl.fsf@lrde.org> (raw)
In-Reply-To: <87lkfrzgrn.fsf@poczta.po.opole.pl> (Seweryn Kokot's message of "Mon\, 14 May 2007 15\:17\:16 +0200")


[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]

Seweryn Kokot <s.kokot@po.opole.pl> writes:

> Now my function is:
> (defun my-document-files ()
>   "Open all document files"
>   (interactive)
>   (while (re-search-forward "\\\\include{\\(.*\\)}")
> 	 (find-file (concat "~/nauka/doktorat/thesis/" (match-string 1) ".tex"))))
>
> why it failed although I have much more occurences of \include{...} in
> the main.tex file? Any idea?

See the documentation for `find-file', and maybe use
`save-window-excursion'.

-- 
 |   Michaël `Micha' Cadilhac       |  All your base are belong to us.       |
 |   http://michael.cadilhac.name   |    You have no chance to survive       |
 |   JID/MSN:                       |       make your time, hahaha.          |
 `----  michael.cadilhac@gmail.com  |       -- Zero Wings               -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  parent reply	other threads:[~2007-05-14 15:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-14 12:36 what can I do with regexp match? Seweryn Kokot
2007-05-14 12:42 ` Lennart Borgman (gmail)
2007-05-14 13:17   ` Seweryn Kokot
2007-05-14 15:09     ` Lennart Borgman (gmail)
2007-05-14 17:07       ` Seweryn Kokot
2007-05-14 17:14         ` Lennart Borgman (gmail)
2007-05-14 17:46           ` Seweryn Kokot
2007-05-14 15:36     ` Michaël Cadilhac [this message]
     [not found]     ` <mailman.649.1179157491.32220.help-gnu-emacs@gnu.org>
2007-06-09 22:01       ` Stefan Monnier
     [not found] <mailman.635.1179146680.32220.help-gnu-emacs@gnu.org>
2007-05-14 17:38 ` David Kastrup
2007-05-14 20:17   ` Seweryn Kokot
2007-05-14 20:33     ` Lennart Borgman (gmail)
2007-05-14 19:01 ` Ralf Angeli
2007-05-14 20:06   ` Seweryn Kokot

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87tzuf4dtl.fsf@lrde.org \
    --to=michael@cadilhac.name \
    --cc=help-gnu-emacs@gnu.org \
    --cc=s.kokot@po.opole.pl \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).