From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.help Subject: Re: global-replace to include linked files? Date: Sun, 25 May 2014 14:30:00 +0900 (JST) Message-ID: <20140525.143000.487380331.tak.kunihiro@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1400998349 31090 80.91.229.3 (25 May 2014 06:12:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 May 2014 06:12:29 +0000 (UTC) Cc: tak.kunihiro@gmail.com To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 25 08:12:22 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WoRfS-0005K9-FU for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2014 08:12:22 +0200 Original-Received: from localhost ([::1]:50444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoRfR-0002HF-CK for geh-help-gnu-emacs@m.gmane.org; Sun, 25 May 2014 02:12:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoR0v-00036U-M9 for help-gnu-emacs@gnu.org; Sun, 25 May 2014 01:30:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoR0m-0007ya-Dt for help-gnu-emacs@gnu.org; Sun, 25 May 2014 01:30:29 -0400 Original-Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:48992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoR0m-0007yT-6G for help-gnu-emacs@gnu.org; Sun, 25 May 2014 01:30:20 -0400 Original-Received: by mail-pa0-f46.google.com with SMTP id kq14so5959049pab.5 for ; Sat, 24 May 2014 22:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:to:cc:subject:from:mime-version:content-type :content-transfer-encoding; bh=lisKeurELiXiPOrEnqkaCwOjApFQH9ptOQPAgMGvpqA=; b=zztG1LV6RwcX0f7X0FTmyxHo8PXjjbG+V6cKWPOsNZpPOmbMQhnOnhcVxe4AGWrJ1G ztk0okM/Qe2LTzBiYZ2Wn9wI8RpOzYxNY0iCDakFyBHlVvtLqqBGLTVOAiqu4vG5gMjh yvqtBzHVDq1zLADZbkaVyztn2bRu0Et12JnqvcfT+VdiDkUTdgTDHAudyWD4Hb0NRa+f mAYGGUrahLcWfypsCD8TLXWoZxtzvWvuecHr86LtIrTBkuPzPkDvv+DqqyKesK++TsQx koAk0A/yy2tDJ9ozwPBLg6Q3OmXsAvwCmCKZ6yAGR0e0caVxLxftuyDRQGUQq8TtGLEt YldQ== X-Received: by 10.66.190.167 with SMTP id gr7mr17858800pac.75.1400995818851; Sat, 24 May 2014 22:30:18 -0700 (PDT) Original-Received: from localhost (g1-27-253-251-110.bmobile.ne.jp. [27.253.251.110]) by mx.google.com with ESMTPSA id xg4sm11941799pbb.47.2014.05.24.22.30.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 22:30:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22e X-Mailman-Approved-At: Sun, 25 May 2014 02:12:13 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97843 Archived-At: 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.