From: "David L" <idht4n@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: buffer for unopened file?
Date: Sun, 21 Oct 2007 13:56:46 -0700 [thread overview]
Message-ID: <b79371120710211356r3100dd3cs92a0e9657f17f7bd@mail.gmail.com> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICCELNEAAA.drew.adams@oracle.com>
[-- Attachment #1.1: Type: text/plain, Size: 2100 bytes --]
>
> There are libraries that let you define a named set of files or buffers
> that
> you frequently want to visit, search, etc. Icicles, filename-cache, and
> bs.el come to mind, but there are others.
I played with filename-cache a bit. It is an ok solution for
what I'm trying to do, but IMHO, it would be much better
if something like that could be integrated better so that
buffer lists could list a combination of real buffers or
pseudo-buffers (buffer names that would exist if all
files in the filecache were opened). This would integrate
better with ECB, etc. I also wouldn't have to have any
if else logic in my brain when changing to a new file
(ie, if a file is already opened, change to its buffer
else open a file-cached file).
If I weren't lisp-challenged, I'd try to implement what
I'm suggesting, but for now I'll just complain. ;)
In any case, I added a makefile target "filecache" that
creates a file of the format that is read using the
file-cache-read-cache-from-file function:
$(EXECDIR)$(EXECROOT).filecache: $(EXECDIR)$(EXECROOT).files
@echo "(" > $@;\
for i in `cat $(EXECDIR)$(EXECROOT).files`; \
do echo `basename $$i` $(CVSROOTLEVEL) `dirname $$i` \
| awk '{printf("(\"%s\" \"%s/%s/\")\n", $$1,$$2,$$3)}' >> $@;\
done; \
echo ")" >> $@;
A little bit of background to explain this code... I run make from
a directory that is the root of my CVS working copy, so all of the
file names in my list are relative to that directory (not absolute).
$(EXECDIR) is the directory name relative to the CVS root level
that I put my binary in. $(EXECROOT) is the root name of the
application that I'm building. In a separate target, I have
commands that create a file that lists all of the .c, .cpp, .h, etc
files that are dependencies of my binary. This target takes that
list of files and creates another list of absolute filenames that can
be digested by file-cache-read-cache-from-file function. I also
have an etags target:
$(EXECDIR)$(EXECROOT).etags: $(EXECDIR)$(EXECROOT).files
etags --members -C `cat $(EXECDIR)$(EXECROOT).files` -o $@
[-- Attachment #1.2: Type: text/html, Size: 2677 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2007-10-21 20:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 14:27 buffer for unopened file? David L
2007-10-19 15:18 ` Amy Templeton
2007-10-19 15:36 ` Sebastian Tennant
2007-10-19 15:54 ` Drew Adams
2007-10-19 16:07 ` Sebastian Tennant
2007-10-19 17:21 ` Drew Adams
2007-10-19 17:53 ` David L
2007-10-19 18:20 ` Drew Adams
2007-10-20 16:39 ` Dieter Wilhelm
2007-10-20 17:09 ` Drew Adams
2007-10-20 17:53 ` Dieter Wilhelm
2007-10-20 20:47 ` Dieter Wilhelm
2007-10-20 21:29 ` Icicles and Emacs [was: buffer for unopened file?] Drew Adams
[not found] ` <mailman.2372.1192913119.18990.help-gnu-emacs@gnu.org>
2007-10-23 13:29 ` Icicles integration into CVS emacs (was: buffer for unopened file?) Giles Chamberlin
2007-10-21 20:56 ` David L [this message]
[not found] ` <mailman.2406.1193000213.18990.help-gnu-emacs@gnu.org>
2007-10-24 12:55 ` buffer for unopened file? Mathias Dahl
[not found] <mailman.2307.1192804070.18990.help-gnu-emacs@gnu.org>
2007-10-19 17:42 ` Stefan Monnier
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=b79371120710211356r3100dd3cs92a0e9657f17f7bd@mail.gmail.com \
--to=idht4n@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.