From: pedz <pedzsan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: help with file not found hook
Date: Fri, 20 Mar 2009 15:54:37 -0700 (PDT) [thread overview]
Message-ID: <e6c5683e-4b48-48b6-b39a-e7db774b220b@y13g2000yqn.googlegroups.com> (raw)
I'm trying to write a hook for the find-file-not-found-functions but I
may be way off course.
This is for OSF DCE which has a tree that is "backed" by a matching
tree (which can also be backed...)
So, if I try to find a file
/a/b/BASE/c/d/e/f.c
that may not exist so the next place to look is
/a/b/BASE/link/c/d/e/f.c
and after that
/a/b/BASE/link/link/c/d/e/f.c
etc.
Questions:
1) After I find the file, I currently set buffer-file-name to the
full path and then call insert-file-contents and return true. Is that
what I should be doing?
2) The problem I have is if I find the same file a second time, I
get a duplicate buffer. I can check to see if such a buffer already
exists but what do I do if it does?
Thanks
next reply other threads:[~2009-03-20 22:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-20 22:54 pedz [this message]
2009-03-21 12:26 ` help with file not found hook Nikolaj Schumacher
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=e6c5683e-4b48-48b6-b39a-e7db774b220b@y13g2000yqn.googlegroups.com \
--to=pedzsan@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.