[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs equivalent of vi %
From: |
Nikolaj Schumacher |
Subject: |
Re: emacs equivalent of vi % |
Date: |
Thu, 14 Aug 2008 01:50:14 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) |
Nikolaj Schumacher <n_schumacher@web.de> wrote:
> "Rustom Mody" <rustompmody@gmail.com> wrote:
>
>> Bind the character '%' to
>> (file-name-nondirectory (buffer-file-name))
>
> Also, note that you'll need to make an interactive function out of the
> form to bind it to a key.
Oups, that's not all...
It won't work, because `buffer-file-name' will of course return the
minibuffer's file name (i.e. none). I'm currently not aware of an easy
way to get the originating buffer from the minibuffer. Sorry.
regards,
Nikolaj Schumacher
- emacs equivalent of vi %, Rustom Mody, 2008/08/13
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/13
- Re: emacs equivalent of vi %, Rustom Mody, 2008/08/13
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/13
- Re: emacs equivalent of vi %, Rustom Mody, 2008/08/13
- Re: emacs equivalent of vi %, Nikolaj Schumacher, 2008/08/13
- Re: emacs equivalent of vi %,
Nikolaj Schumacher <=
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/13
- Re: emacs equivalent of vi %, Kevin Rodgers, 2008/08/13
- Re: emacs equivalent of vi %, Rustom Mody, 2008/08/14
- Re: emacs equivalent of vi %, Lennart Borgman (gmail), 2008/08/14
- Re: emacs equivalent of vi %, Kevin Rodgers, 2008/08/14
- Message not available
- Re: emacs equivalent of vi %, Jason Rumney, 2008/08/13
RE: emacs equivalent of vi %, Arnaldo Mandel, 2008/08/13