From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Search and replace in all buffers Date: Tue, 24 Jan 2006 10:07:55 -0700 Message-ID: References: <2520975.post@talk.nabble.com> <2525247.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138126114 8835 80.91.229.2 (24 Jan 2006 18:08:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2006 18:08:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 19:08:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1Sal-0002of-Eo for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jan 2006 19:08:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1SdR-0005g6-I4 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jan 2006 13:11:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1RkD-0002Mc-DS for help-gnu-emacs@gnu.org; Tue, 24 Jan 2006 12:14:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1RkA-0002JZ-Dm for help-gnu-emacs@gnu.org; Tue, 24 Jan 2006 12:14:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1Rk5-0002Iy-1h for help-gnu-emacs@gnu.org; Tue, 24 Jan 2006 12:14:08 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1F1Rp1-0004BX-0A for help-gnu-emacs@gnu.org; Tue, 24 Jan 2006 12:19:11 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F1ReW-0004Me-6i for help-gnu-emacs@gnu.org; Tue, 24 Jan 2006 18:08:20 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2006 18:08:20 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2006 18:08:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <2525247.post@talk.nabble.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32829 Archived-At: AndyJB (sent by Nabble.com) wrote: > Back in my Windows days I used an editor called TSE, and I wrote > something for it that achieved much the same effect as find-tag and > friends without the need to manually update the tags file. It maintained > the equivalent of a TAGS file and dynamically updated it as you added > new files and definitions. I rather miss it's convenience - maybe one > day I'll miss it enough to write an Emacs equivalent :) I suspect that > all that wouldbe needed would be to hook something in to rerun "etags" > at the appropriate times, so it would be easier than what I wrote for > TSE, where I had to implement the whoe etags style functionality. Unless > someone else has already done it? It should be as simple as: (add-hook 'c-mode-hook (lambda () (add-hook 'local-write-file-hooks (lambda () (shell-command "etags (your arguments here)") ;; Return nil to ensure that file gets written: nil)))) -- Kevin Rodgers