* Re: search and replacement at once in some buffers
[not found] <mailman.1036577288.17678.help-gnu-emacs@gnu.org>
@ 2002-11-06 13:41 ` Friedrich Dominicus
2002-11-06 21:17 ` Luis O. Silva
2002-11-06 14:36 ` Bernd Wolter
2002-11-06 18:34 ` kgold
2 siblings, 1 reply; 6+ messages in thread
From: Friedrich Dominicus @ 2002-11-06 13:41 UTC (permalink / raw)
"Luis O. Silva" <silva@paloma.spbu.ru> writes:
see if ibuffer works for you there you can mark buffers and after that
you can run a bunch of program on it.
That's all
Regards
Friedrich
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: search and replacement at once in some buffers
2002-11-06 13:41 ` search and replacement at once in some buffers Friedrich Dominicus
@ 2002-11-06 21:17 ` Luis O. Silva
0 siblings, 0 replies; 6+ messages in thread
From: Luis O. Silva @ 2002-11-06 21:17 UTC (permalink / raw)
Cc: help-gnu-emacs
Hi Friedrich,
On 06 Nov 2002 14:41:38 +0100, Friedrich Dominicus writes:
FD> see if ibuffer works for you there you can mark buffers and
FD> after that you can run a bunch of program on it.
I didn't find ibuffer.el in my emacs system (Emacs
21.1.1)...
... Nevertheless I found it on the net. This add-on says
that it is part of Emacs, so I suppose that it is included in
the new versions.
Thank you very much for your help. It seems to be what I need.
Best regards,
luis
--
Luis Octavio Silva P.
St. Petersburg State University.
66/3 Botanicheskaya St., Apt.119/2
Stary Peterhof
St. Petersburg, Russia.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: search and replacement at once in some buffers
[not found] <mailman.1036577288.17678.help-gnu-emacs@gnu.org>
2002-11-06 13:41 ` search and replacement at once in some buffers Friedrich Dominicus
@ 2002-11-06 14:36 ` Bernd Wolter
2002-11-06 18:34 ` kgold
2 siblings, 0 replies; 6+ messages in thread
From: Bernd Wolter @ 2002-11-06 14:36 UTC (permalink / raw)
"Luis O. Silva" <silva@paloma.spbu.ru> writes:
> Dear Emacs Community,
>
> I want to use some of the search and replacement commands,
> viz.
>
> `search-forward', `search-backward', `isearch-forward',
> `isearch-backward', `query-replace', `replace-regexp',
> `replace-string'
>
> at once in a predefined list of buffers, just in the same way
> in which these commands are used in the current buffer.
I think you may find dired's Q command helpful (also look at the
different marking commands).
,----[ To be found by "C-h i RET m emacs RET m dired -> "Operating on Files"" ]
| `Q REGEXP <RET> TO <RET>'
| Perform `query-replace-regexp' on each of the specified files,
| replacing matches for REGEXP with the string TO
| (`dired-do-query-replace-regexp').
`----
HTH
bernd
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: search and replacement at once in some buffers
[not found] <mailman.1036577288.17678.help-gnu-emacs@gnu.org>
2002-11-06 13:41 ` search and replacement at once in some buffers Friedrich Dominicus
2002-11-06 14:36 ` Bernd Wolter
@ 2002-11-06 18:34 ` kgold
2002-11-06 21:17 ` Luis O. Silva
2 siblings, 1 reply; 6+ messages in thread
From: kgold @ 2002-11-06 18:34 UTC (permalink / raw)
If you will accept "files" instead of "buffers", use dired-mode,
mark the files you want to work on, and use the "Q" command.
"Luis O. Silva" <silva@paloma.spbu.ru> writes:
> Dear Emacs Community,
>
> I want to use some of the search and replacement commands,
> viz.
>
> `search-forward', `search-backward', `isearch-forward',
> `isearch-backward', `query-replace', `replace-regexp',
> `replace-string'
>
> at once in a predefined list of buffers, just in the same way
> in which these commands are used in the current buffer. This
> means that if I do `query-replace-some-buffers', for instance,
> I'll be prompted with the list of buffers and then the first
> buffer in that list will become the current buffer and
> `query-replace' will run throughout it until the
> end. Afterwards the second buffer in the list will become the
> current buffer and so on. I think I could write the
> corresponding elisp functions, but, since I'm not a programmer
> (just a bad mathematician), I'd like to know whether someone
> has already written similar functions and has contributed with
> a package.
--
--
Ken Goldman kgold@watson.ibm.com 914-784-7646
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: search and replacement at once in some buffers
2002-11-06 18:34 ` kgold
@ 2002-11-06 21:17 ` Luis O. Silva
0 siblings, 0 replies; 6+ messages in thread
From: Luis O. Silva @ 2002-11-06 21:17 UTC (permalink / raw)
Cc: help-gnu-emacs
Hi Ken,
On 6 Nov 2002 18:34:19 GMT, kgold writes:
kgold> If you will accept "files" instead of "buffers", use
kgold> dired-mode, mark the files you want to work on, and
kgold> use the "Q" command.
Yes I was indeed missing this. This command is helpful to me, but I
think that the best solution to my problem is to use ibuffer
(as was suggested by Friedrich). I haven't tried it, but if it
has the "Q" command I'll be simply happy.
Thank you very much for your help. (I'm also expressing my
gratitude to Bernd)
Best regards,
luis
--
Luis Octavio Silva P.
St. Petersburg State University.
66/3 Botanicheskaya St., Apt.119/2
Stary Peterhof
St. Petersburg, Russia.
^ permalink raw reply [flat|nested] 6+ messages in thread
* search and replacement at once in some buffers
@ 2002-11-06 10:12 Luis O. Silva
0 siblings, 0 replies; 6+ messages in thread
From: Luis O. Silva @ 2002-11-06 10:12 UTC (permalink / raw)
Dear Emacs Community,
I want to use some of the search and replacement commands,
viz.
`search-forward', `search-backward', `isearch-forward',
`isearch-backward', `query-replace', `replace-regexp',
`replace-string'
at once in a predefined list of buffers, just in the same way
in which these commands are used in the current buffer. This
means that if I do `query-replace-some-buffers', for instance,
I'll be prompted with the list of buffers and then the first
buffer in that list will become the current buffer and
`query-replace' will run throughout it until the
end. Afterwards the second buffer in the list will become the
current buffer and so on. I think I could write the
corresponding elisp functions, but, since I'm not a programmer
(just a bad mathematician), I'd like to know whether someone
has already written similar functions and has contributed with
a package.
Thanks in advance,
luis
--
Luis Octavio Silva P.
St. Petersburg State University.
66/3 Botanicheskaya St., Apt.119/2
Stary Peterhof
St. Petersburg, Russia.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-06 21:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1036577288.17678.help-gnu-emacs@gnu.org>
2002-11-06 13:41 ` search and replacement at once in some buffers Friedrich Dominicus
2002-11-06 21:17 ` Luis O. Silva
2002-11-06 14:36 ` Bernd Wolter
2002-11-06 18:34 ` kgold
2002-11-06 21:17 ` Luis O. Silva
2002-11-06 10:12 Luis O. Silva
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).