From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] find-file-noselect-1 Date: Thu, 10 Feb 2005 22:16:56 -0500 Message-ID: <87u0oju6q8.fsf-monnier+emacs@gnu.org> References: <16907.50624.707323.36975@farnswood.snap.net.nz> <16908.7466.270296.502380@farnswood.snap.net.nz> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108091776 19310 80.91.229.6 (11 Feb 2005 03:16:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2005 03:16:16 +0000 (UTC) Cc: snogglethorpe@gmail.com, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 04:16:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CzRHr-0001RU-00 for ; Fri, 11 Feb 2005 04:16:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzRWi-00008C-FR for ged-emacs-devel@m.gmane.org; Thu, 10 Feb 2005 22:31:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzRVy-0008KG-Kc for emacs-devel@gnu.org; Thu, 10 Feb 2005 22:30:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzRVw-0008JV-Pq for emacs-devel@gnu.org; Thu, 10 Feb 2005 22:30:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzRVw-0008JJ-I7 for emacs-devel@gnu.org; Thu, 10 Feb 2005 22:30:40 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CzRIk-0007DA-DC; Thu, 10 Feb 2005 22:17:02 -0500 Original-Received: from alfajor ([65.92.240.235]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050211031657.BOSF1899.tomts13-srv.bellnexxia.net@alfajor>; Thu, 10 Feb 2005 22:16:57 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id CB95ED73CC; Thu, 10 Feb 2005 22:16:56 -0500 (EST) Original-To: Nick Roberts In-Reply-To: <16908.7466.270296.502380@farnswood.snap.net.nz> (Nick Roberts's message of "Fri, 11 Feb 2005 15:49:14 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:33238 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33238 >> Is this not something that could be served by a hook? Or _should_ be >> served by a hook? > Yes, that's good feedback. vc adds vc-find-file-hook to find-file-hook > in vc-hooks.el. However, that file is built into Emacs through loadup. > Where could I add such a hook, so that it would always be included? Why would you always need it? I mean it can only needed if gdba.el is loaded, right? So what's wrong with adding (add-hook 'find-file-hook 'gdb-find-file-hook) at the top-level of gdba.el ? Stefan