all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: global-replace to include linked files?
@ 2014-05-25  5:30 Tak Kunihiro
  0 siblings, 0 replies; 7+ messages in thread
From: Tak Kunihiro @ 2014-05-25  5:30 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: tak.kunihiro

Use wgrep.
  (require 'wgrep)
  (setq wgrep-enable-key (kbd "C-x C-q"))

Call grep with recursive option.
  grep -Hnir STRING . --include=*.tex

Then call wgrep by wgrep-enable-key and modify *grep* buffer
with `query-replace'.  Type C-x C-s to finish.



^ permalink raw reply	[flat|nested] 7+ messages in thread
* global-replace to include linked files?
@ 2014-05-24 19:56 Sharon Kimble
  2014-05-24 23:23 ` lee
  0 siblings, 1 reply; 7+ messages in thread
From: Sharon Kimble @ 2014-05-24 19:56 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

I have a master document with 14 files linked into it like this
--8<---------------cut here---------------start------------->8---
\include{020-ob2014}
--8<---------------cut here---------------end--------------->8---
is it possible to do a "global-replace" of
╭────
│\begin{verbatim}
╰────
to
╭────
│\begin{lstlisting}[frame=single]
╰────
please?

I tried "M-x replace-string" but that wasn't able to follow the
import links to the subsidiary files.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.91.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-25 20:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2025.1400961387.1147.help-gnu-emacs@gnu.org>
2014-05-24 20:47 ` global-replace to include linked files? Emanuel Berg
2014-05-25  5:23   ` Dale Snell
2014-05-25 19:28     ` Robert Thorpe
     [not found]   ` <mailman.2051.1400995439.1147.help-gnu-emacs@gnu.org>
2014-05-25 20:26     ` Emanuel Berg
2014-05-25  5:30 Tak Kunihiro
  -- strict thread matches above, loose matches on Subject: below --
2014-05-24 19:56 Sharon Kimble
2014-05-24 23:23 ` lee

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.