public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: Mo DeJong <mdejong@cygnus.com>
To: sourcenav@sourceware.cygnus.com
Subject: Re: replace
Date: Tue, 03 Jul 2001 14:45:00 -0000	[thread overview]
Message-ID: <Pine.SOL.3.91.1010703143933.8226A-100000@cse.cygnus.com> (raw)
In-Reply-To: <0107032252030B.01898@localhost.localdomain>

On Tue, 3 Jul 2001, Gacquer William wrote:

> I once wrote this but do not have the code anymore since I have left my last 
> society. That was a bit tricky cos I had to play with flex. That was a 
> command line tool.
> 
> As soon as I find some time to rewrite it, I'll contribute it to SN.
> 
> Just a question : was using flex a good idea? ( in fact, I was using it as if 
> it was bison! )
> 
> William Gacquer
> EKKLA Research 

Well, that is actually a bit different. I was talking about a global
text based find/replace. What you are talking about is a global
symbol aware find/replace. Both are important, but they are two
different solutions.

The symbol aware search and replace should be possible using the
existing symbol database. Running a search replace would consist
of:

1. Find the symbols in question.

2. Edit the file in question based on the info in the DB.
   (file name, line number, column start and column end)

3. Save the modified file.

4. Rinse, lather, repeat.

The good thing about this approach is that it makes use of
the existing parsers. The downside is that some nasty grubbing
around in the DB layer will be needed. Some hacking would be
required, but it would be a really cool feature.

Mo DeJong
Red Hat Inc

  reply	other threads:[~2001-07-03 14:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29  7:02 replace Aurelian Melinte
2001-07-03 13:12 ` replace Mo DeJong
2001-07-03 13:54   ` replace Gacquer William
2001-07-03 14:45     ` Mo DeJong [this message]
2001-07-03 15:32       ` SN +gvim + ex-ctags == excellent free IDE Subrata Datta
2001-07-03 18:37       ` replace (plain text) Berek Half-hand
2001-07-03 22:54         ` Eric Christopher
2001-07-04 11:49         ` Mo DeJong
2001-07-04 12:09           ` Berek Half-hand
2001-07-04 15:11             ` Eric Christopher
2001-07-09  7:17               ` Aurelian Melinte
2001-07-04 13:52           ` Gacquer William
2001-07-04 14:38             ` Mo DeJong
2001-07-04 15:10               ` Gacquer William
2001-07-05 18:21                 ` Mo DeJong
2001-07-06 13:41           ` Andrew Cagney

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

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

  git send-email \
    --in-reply-to=Pine.SOL.3.91.1010703143933.8226A-100000@cse.cygnus.com \
    --to=mdejong@cygnus.com \
    --cc=sourcenav@sourceware.cygnus.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).