* general emacs question: advising find-file
@ 2005-04-19 19:11 Ted Stern
2005-04-19 19:51 ` Reiner Steib
2005-04-19 19:56 ` Karl Pflästerer
0 siblings, 2 replies; 5+ messages in thread
From: Ted Stern @ 2005-04-19 19:11 UTC (permalink / raw)
Sorry, this is a general emacs question, but there are some find
defadvice programmers on this list. I'll keep it short.
Is there a way to change the default "C-x C-f RET" so that it re-opens
the current file instead of the current directory? What I want to do
is change the default find-file prompt to the current file.
Ted
--
Ted Stern Applications Group
Cray Inc. office: 206-701-2182
411 First Avenue South, Suite 600 cell: 206-383-1049
Seattle, WA 98104-2860 FAX: 206-701-2500
Frango ut patefaciam -- I break so that I may reveal
(The Paleontological Society motto, equally apropos for debugging)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: general emacs question: advising find-file
2005-04-19 19:11 general emacs question: advising find-file Ted Stern
@ 2005-04-19 19:51 ` Reiner Steib
2005-04-19 20:45 ` Alan Shutko
2005-04-19 19:56 ` Karl Pflästerer
1 sibling, 1 reply; 5+ messages in thread
From: Reiner Steib @ 2005-04-19 19:51 UTC (permalink / raw)
On Tue, Apr 19 2005, Ted Stern wrote:
> Sorry, this is a general emacs question, but there are some find
> defadvice programmers on this list. I'll keep it short.
Please ask in gnu.emacs.help or comp.emacs.
> Is there a way to change the default "C-x C-f RET" so that it re-opens
> the current file instead of the current directory?
Use `C-x C-v RET'.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: general emacs question: advising find-file
2005-04-19 19:11 general emacs question: advising find-file Ted Stern
2005-04-19 19:51 ` Reiner Steib
@ 2005-04-19 19:56 ` Karl Pflästerer
2005-04-19 20:35 ` Ted Stern
1 sibling, 1 reply; 5+ messages in thread
From: Karl Pflästerer @ 2005-04-19 19:56 UTC (permalink / raw)
On 19 Apr 2005, stern+gnus@cray.com wrote:
> Is there a way to change the default "C-x C-f RET" so that it re-opens
> the current file instead of the current directory? What I want to do
> is change the default find-file prompt to the current file.
That's certainly easy possible but why don't you just use `C-x C-v'
(`find-alternate-file')?
KP
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: general emacs question: advising find-file
2005-04-19 19:56 ` Karl Pflästerer
@ 2005-04-19 20:35 ` Ted Stern
0 siblings, 0 replies; 5+ messages in thread
From: Ted Stern @ 2005-04-19 20:35 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1091 bytes --]
On 19 Apr 2005 at 12:56 UTC-0700, Karl Pflästerer wrote:
>On 19 Apr 2005, stern+gnus@cray.com wrote:
>
>> Is there a way to change the default "C-x C-f RET" so that it re-opens
>> the current file instead of the current directory? What I want to do
>> is change the default find-file prompt to the current file.
>
> That's certainly easy possible but why don't you just use `C-x C-v'
> (`find-alternate-file')?
I agree, that would be easier, but I have a question from a user who
has been using the old C-x C-f functionality for over 10 years and
doesn't want to relearn keystrokes.
The find-file function [specifically the "(interactive ...)" line]
changed sometime between Emacs 21.3 and Emacs 22.0.50.
Ted
--
Ted Stern Applications Group
Cray Inc. office: 206-701-2182
411 First Avenue South, Suite 600 cell: 206-383-1049
Seattle, WA 98104-2860 FAX: 206-701-2500
Frango ut patefaciam -- I break so that I may reveal
(The Paleontological Society motto, equally apropos for debugging)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: general emacs question: advising find-file
2005-04-19 19:51 ` Reiner Steib
@ 2005-04-19 20:45 ` Alan Shutko
0 siblings, 0 replies; 5+ messages in thread
From: Alan Shutko @ 2005-04-19 20:45 UTC (permalink / raw)
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> Use `C-x C-v RET'.
That loses the location of point. M-x revert-buffer is what it used
to do.
--
Alan Shutko <ats@acm.org> - I am the rocks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-19 20:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19 19:11 general emacs question: advising find-file Ted Stern
2005-04-19 19:51 ` Reiner Steib
2005-04-19 20:45 ` Alan Shutko
2005-04-19 19:56 ` Karl Pflästerer
2005-04-19 20:35 ` Ted Stern
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 NNTP newsgroup(s).