From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Newsgroups: gmane.emacs.help Subject: find-file "before" hook. Date: Wed, 29 Jul 2009 22:47:15 +0200 Organization: education Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248903652 975 80.91.229.12 (29 Jul 2009 21:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2009 21:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 29 23:40:46 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 1MWGt8-0003lk-H5 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2009 23:40:42 +0200 Original-Received: from localhost ([127.0.0.1]:60168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWGt7-00071V-W6 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2009 17:40:42 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!newsfeed.kpn.net!pfeed08.wxs.nl!plix.pl!newsfeed1.plix.pl!news2.icm.edu.pl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: chello089076179140.chello.pl Original-X-Trace: achot.icm.edu.pl 1248900437 540 89.76.179.140 (29 Jul 2009 20:47:17 GMT) Original-X-Complaints-To: abuse@icm.edu.pl Original-NNTP-Posting-Date: Wed, 29 Jul 2009 20:47:17 +0000 (UTC) X-MAILER: KMail/1.7.1 Cancel-Lock: sha1:K5jchtUMeOLW6h1xDkk0a2Ya310= User-Agent: mozilla news reader Original-Xref: news.stanford.edu gnu.emacs.help:171308 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:66495 Archived-At: Hallo Group Members I would like to invoke some action just before file is opened. I do not see any hook that would allow it for me. find-file-hook is invoked after file is opened. Do YOu know any or have an idea on how to do it. I imagine 2 ways: - overloading find-file - I do not like it. - advising find-file. ... but maybe there is better solution:) best regards, Michal