all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: Expanding Include Files
Date: Fri, 14 Feb 2003 10:00:35 +0100	[thread overview]
Message-ID: <84y94jz170.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: dkP2a.6924$Lm5.42449@twister.austin.rr.com

"CarlC" <carlc@snowbd.com> writes:

> "Kai Großjohann" <kai.grossjohann@uni-duisburg.de> wrote in message
> news:841y2c4j4v.fsf@lucy.is.informatik.uni-duisburg.de...
>> Hm.  I think you could use overlays to display the source code, but I
>> don't know whether C-s searches in overlays or in the buffer text.
>
> Thanks, Kai. It is a start, but as you suggested, C-s searches aren't
> including overlay text. I will look further to see what capabilities I have
> with overlays and searching. My main purpose for this routine is to search
> for variables throughout the entire source of the program. I could create a
> temporary view buffer, but it just wouldn't be quite as sexy.

Yeah, temp buffers wouldn't be as nice.  Hm.

One possibility is to try to abstract from buffers.  M-x tags-search
RET can search across buffers, for example.  Maybe ECB also helps to
get a better overview of your source code.

Otherwise, I guess you'll just have to frob the buffer text itself.
Hm.  Hmmm...  How about this idea: you implement a generic facility
for viewing several files in one buffer.  You could use text
properties or markers to specify which part of the buffer comes from
which file, and then you'd have to intercept the saving routine to
save each part to its file.  Then you implement something which looks
for #include directives and then uses the generic facility.

And then you post it to gnu.emacs.sources so others can use it, too :-)

Maybe you can use format-alist to frob the buffer text on saving, or
you add stuff to write-file-hooks.  I'm not sure what's the right
way, here.  Maybe others have a suggestion for this.
-- 
A turnip curses Elvis

  reply	other threads:[~2003-02-14  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-12 22:16 Expanding Include Files CarlC
2003-02-13  9:36 ` Kai Großjohann
2003-02-13 16:02   ` CarlC
2003-02-14  9:00     ` Kai Großjohann [this message]
2003-02-13 18:38   ` Stefan Monnier <foo@acm.com>

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=84y94jz170.fsf@lucy.is.informatik.uni-duisburg.de \
    --to=kai.grossjohann@uni-duisburg.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.