unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* weird dired-do-query-replace-regexp problem: cannot run twice
@ 2007-02-06 15:06 amahabal
  0 siblings, 0 replies; only message in thread
From: amahabal @ 2007-02-06 15:06 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
  I have the following code where doing a single call to dired-do-
query-replace-regexp works fine, but if I do two, only the first
works. If I change the order of the call, only the (new) first works,
so the calls are individually fine:

The code:
=============================================
(defun seqsee-replace (what-to-replace replace-with)
  (interactive (list (read-string "Replace what? " nil)
                     (read-string "Replace with: " nil)))
  (replace-in-files-in-directory "d:/Seqsee/t/" what-to-replace
replace-with)
  (replace-in-files-in-directory "d:/Seqsee/lib/" what-to-replace
replace-with)
  )

(defun replace-in-files-in-directory (dir what-to-replace replace-
with)
  (find-file dir)
  (setq default-case-fold-search nil)
  (setq case-fold-search nil)
  (dired-mark-files-regexp "\\.pl$")
  (dired-mark-files-regexp "\\.pm$")
  (dired-mark-files-regexp "\\.t$")
  (dired-do-query-replace-regexp what-to-replace replace-with)
  (setq default-case-fold-search t))
==============================================

After successfully doing the first replace-in-files-in-directory,
seqsee-replace silently returns. *message* buffer does not have any
mention of the second directory whatsoever.

I hope somebody knows what is going on here...

Thanks much,
  abhijit

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-06 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-06 15:06 weird dired-do-query-replace-regexp problem: cannot run twice amahabal

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