all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Michal <rabbitko@tenbit.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: find-file "before" hook.
Date: Wed, 29 Jul 2009 23:58:13 +0200	[thread overview]
Message-ID: <e01d8a50907291458w5cc01a50q8bb6021981c7a95a@mail.gmail.com> (raw)
In-Reply-To: <m21vnzi5d8.fsf@tenbit.pl>

On Wed, Jul 29, 2009 at 10:47 PM, Michal<rabbitko@tenbit.pl> wrote:
> 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:)

There are file handlers too. Look in for example sex-mode.el that
comes with nXhtml.




  parent reply	other threads:[~2009-07-29 21:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-29 20:47 find-file "before" hook Michal
2009-07-29 21:48 ` Peter Milliken
2009-07-29 21:58 ` Lennart Borgman [this message]
     [not found] ` <mailman.3419.1248904124.2239.help-gnu-emacs@gnu.org>
2009-07-30 12:20   ` Michal

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=e01d8a50907291458w5cc01a50q8bb6021981c7a95a@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rabbitko@tenbit.pl \
    /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.