From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Expanding Include Files Date: Fri, 14 Feb 2003 10:00:35 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84y94jz170.fsf@lucy.is.informatik.uni-duisburg.de> References: <841y2c4j4v.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045213546 13264 80.91.224.249 (14 Feb 2003 09:05:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2003 09:05:46 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jbmy-0003Rg-00 for ; Fri, 14 Feb 2003 10:05:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jbml-0005S6-05 for gnu-help-gnu-emacs@m.gmane.org; Fri, 14 Feb 2003 04:05:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!pd951faea.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: pd951faea.dip.t-dialin.net (217.81.250.234) Original-X-Trace: fu-berlin.de 1045213277 46998196 217.81.250.234 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:5Wj50R8dzwiRKCzegXK6BW8+kG8= Original-Xref: shelby.stanford.edu gnu.emacs.help:110172 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6676 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6676 "CarlC" writes: > "Kai Großjohann" 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