unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Search and replace in all buffers
Date: Tue, 24 Jan 2006 10:07:55 -0700	[thread overview]
Message-ID: <dr5mtd$oqg$1@sea.gmane.org> (raw)
In-Reply-To: <2525247.post@talk.nabble.com>

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

      reply	other threads:[~2006-01-24 17:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-22 16:57 Serach and replace in all buffers AndyJB (sent by Nabble.com)
2006-01-22 19:40 ` Drew Adams
2006-01-22 22:23   ` Search " AndyJB (sent by Nabble.com)
2006-01-23  0:31     ` AndyJB (sent by Nabble.com)
     [not found]   ` <mailman.2152.1137968793.26925.help-gnu-emacs@gnu.org>
2006-01-23  2:28     ` Giorgos Keramidas
2006-01-22 19:57 ` Serach " Eli Zaretskii
2006-01-22 22:33   ` Search " AndyJB (sent by Nabble.com)
2006-01-24 17:07     ` Kevin Rodgers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dr5mtd$oqg$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).