unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* what can I do with regexp match?
@ 2007-05-14 12:36 Seweryn Kokot
  2007-05-14 12:42 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 14+ messages in thread
From: Seweryn Kokot @ 2007-05-14 12:36 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I would like to have a function that visits all the tex files included
in main.tex file. I wrote the following function:
(defun my-document-files ()
  "Open all document files"
  (interactive)
  (while (re-search-forward "\\\\include{\\(.*\\)}")
	 (find-file (concat "~/nauka/doktorat/thesis/" "\\1" ".tex"))))

But it doesn't work since \\1 is not replaced by regexp match. The
result is that the function visits \1.tex file. The question is how to
process the regexp match to make it argument for find-file or more
general question how to save the match in a variable or list?

regards,
Seweryn Kokot

^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <mailman.635.1179146680.32220.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2007-06-09 22:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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

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).