From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pedz Newsgroups: gmane.emacs.help Subject: help with file not found hook Date: Fri, 20 Mar 2009 15:54:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237613577 614 80.91.229.12 (21 Mar 2009 05:32:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 05:32:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 06:34:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LktqW-0005k5-Nz for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 06:34:12 +0100 Original-Received: from localhost ([127.0.0.1]:33596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LktpA-00065y-3f for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 01:32:48 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!y13g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 64.128.19.234 Original-X-Trace: posting.google.com 1237589677 13704 127.0.0.1 (20 Mar 2009 22:54:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 20 Mar 2009 22:54:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y13g2000yqn.googlegroups.com; posting-host=64.128.19.234; posting-account=j0oKSQkAAADb_wCn3dbchvL0gYTbQEsx User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167852 X-Mailman-Approved-At: Sat, 21 Mar 2009 01:31:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63151 Archived-At: 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