help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what can I do with regexp match?


From: Michaël Cadilhac
Subject: Re: what can I do with regexp match?
Date: Mon, 14 May 2007 17:36:38 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Seweryn Kokot <address@hidden> 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.          |
 `----  address@hidden  |       -- Zero Wings               -  --'

Attachment: pgpfoCAonEWjo.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]