From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: help with file not found hook Date: Sat, 21 Mar 2009 13:26:13 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237638420 20427 80.91.229.12 (21 Mar 2009 12:27:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 12:27:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: pedz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 13:28:17 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 1Ll0J8-0003kJ-Qy for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 13:28:11 +0100 Original-Received: from localhost ([127.0.0.1]:57486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ll0Hm-0006JN-1a for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 08:26:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ll0HM-0006J3-M7 for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 08:26:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ll0HK-0006Ip-W6 for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 08:26:20 -0400 Original-Received: from [199.232.76.173] (port=48260 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ll0HK-0006Ii-Sc for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 08:26:18 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:51964) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ll0HK-0002No-D9 for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 08:26:18 -0400 Original-Received: from thursday (g227016042.adsl.alicedsl.de [92.227.16.42]) by dd18200.kasserver.com (Postfix) with ESMTP id D8EB6182C9FE5; Sat, 21 Mar 2009 13:26:17 +0100 (CET) In-Reply-To: (pedz's message of "Fri, 20 Mar 2009 15:54:37 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63164 Archived-At: pedz wrote: > 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? I think you should call `find-alternate-file' with the new name. That should take care of everything (including running the hook again). regards, Nikolaj Schumacher