From: Peter Milliken <peter.milliken@gmail.com>
To: Michal <rabbitko@tenbit.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: find-file "before" hook.
Date: Thu, 30 Jul 2009 07:48:33 +1000 [thread overview]
Message-ID: <791153ba0907291448s6b16eeabp8e058f044f79f469@mail.gmail.com> (raw)
In-Reply-To: <m21vnzi5d8.fsf@tenbit.pl>
[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]
Well, I am curious about what you might want to do before a file is opened.
Just off the top of my head, I can't think of anything you might want to do
before it is opened that you can't do equally as well after it is open :-)
But in answer to your later questions - have a look at ido, it must do
something similar in "overloading"/hijacking the find-file command, I
haven't bothered looking at how or what it does, but I do use the mode
occasionally. It definitely hijacks find-file and adds its own
functionality.
Best of luck
Peter
On Thu, Jul 30, 2009 at 6:47 AM, 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:)
>
> best regards,
> Michal
>
[-- Attachment #2: Type: text/html, Size: 1348 bytes --]
next prev parent reply other threads:[~2009-07-29 21:48 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 [this message]
2009-07-29 21:58 ` Lennart Borgman
[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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=791153ba0907291448s6b16eeabp8e058f044f79f469@mail.gmail.com \
--to=peter.milliken@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).