[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search and replace in all buffers

From: Kevin Rodgers
Subject: Re: Search and replace in all buffers
Date: Tue, 24 Jan 2006 10:07:55 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

AndyJB (sent by 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:

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]