unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* returning to 21.3 version of C-x C-f RET
@ 2005-04-19 21:06 araucaria.araucana
  2005-04-19 21:45 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: araucaria.araucana @ 2005-04-19 21:06 UTC (permalink / raw)


In Emacs 21.3, C-x C-f RET had the effect of reverting the buffer (and
saving the current point).

In Emacs 22.0.50, it now runs dired on the current directory.

I already know about "C-x C-f M-n RET" and "C-x C-v RET", but the
friend who asked me this does not want to relearn keystrokes after 10+
years.  For now I've snarfed the 21.3 lisp for find-file.  Is there a
better way to revert to the 21.3 behavior, say by using defadvice on
find-file-read-args?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: returning to 21.3 version of C-x C-f RET
  2005-04-19 21:06 returning to 21.3 version of C-x C-f RET araucaria.araucana
@ 2005-04-19 21:45 ` Peter Dyballa
  2005-04-19 21:59   ` Araucaria Araucana
       [not found] ` <mailman.2075.1113947453.2895.help-gnu-emacs@gnu.org>
  2005-04-20  3:44 ` Jaeyoun  Chung
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2005-04-19 21:45 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 19.04.2005 um 23:06 schrieb araucaria.araucana@gmail.com:

> In Emacs 21.3, C-x C-f RET had the effect of reverting the buffer (and
> saving the current point).
>

When I type that GNU Emacs 21.3.50 executes find-file ... and since I 
don't supply a file name it opens the current working directory in a 
dired buffer.

(Isn't Araucaria a bit ugly?)
--
Greetings

   Pete

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: returning to 21.3 version of C-x C-f RET
  2005-04-19 21:45 ` Peter Dyballa
@ 2005-04-19 21:59   ` Araucaria Araucana
  0 siblings, 0 replies; 5+ messages in thread
From: Araucaria Araucana @ 2005-04-19 21:59 UTC (permalink / raw)


On 19 Apr 2005 at 14:45 UTC-0700, Peter Dyballa wrote:
> Am 19.04.2005 um 23:06 schrieb araucaria.araucana@gmail.com:
>
>> In Emacs 21.3, C-x C-f RET had the effect of reverting the buffer (and
>> saving the current point).
>>
>
> When I type that GNU Emacs 21.3.50 executes find-file ... and since I
> don't supply a file name it opens the current working directory in a 
> dired buffer.

CVS 21.3.50 is the same as 22.0.50, and a bit out of date as well.
21.4 is just 21.3 plus one security update.

Sometime between 21.3 release and 21.3.50/22.0.50 CVS, the default
functionality changed.

It used to be that C-x C-f RET did *NOT* start dired on the buffer's
current directory.  It ran something akin to 

        (revert-buffer buffer-file-name t t)

>
> (Isn't Araucaria a bit ugly?)

That's a matter of opinion.  I think they are beautiful in a prickly
sort of way:

     http://waynesword.palomar.edu/ecoph27.htm

See also

     http://www.metafilter.com/user/23101

-- 
araucaria dot araucana at gmail dot com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: returning to 21.3 version of C-x C-f RET
       [not found] ` <mailman.2075.1113947453.2895.help-gnu-emacs@gnu.org>
@ 2005-04-20  1:19   ` rgb
  0 siblings, 0 replies; 5+ messages in thread
From: rgb @ 2005-04-20  1:19 UTC (permalink / raw)



Peter Dyballa wrote:
> Am 19.04.2005 um 23:06 schrieb araucaria.araucana@gmail.com:
>
> > In Emacs 21.3, C-x C-f RET had the effect of reverting the buffer
(and
> > saving the current point).
> >
>
> When I type that GNU Emacs 21.3.50 executes find-file ... and since I

> don't supply a file name it opens the current working directory in a
> dired buffer.
>
21.3.50 is the old name for 22.0.50 which refers to an unstable
version.
By either name they are quite distinct from 21.3 which is nearly
identical to 21.4 which is the current stable version.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: returning to 21.3 version of C-x C-f RET
  2005-04-19 21:06 returning to 21.3 version of C-x C-f RET araucaria.araucana
  2005-04-19 21:45 ` Peter Dyballa
       [not found] ` <mailman.2075.1113947453.2895.help-gnu-emacs@gnu.org>
@ 2005-04-20  3:44 ` Jaeyoun  Chung
  2 siblings, 0 replies; 5+ messages in thread
From: Jaeyoun  Chung @ 2005-04-20  3:44 UTC (permalink / raw)


Use this simple fixup:

(defun find-file-read-args (prompt mustmatch)
  (list (let ((find-file-default
               (and buffer-file-name
                    (abbreviate-file-name buffer-file-name))))
          (read-file-name prompt nil find-file-default mustmatch))
        t))

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-20  3:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-19 21:06 returning to 21.3 version of C-x C-f RET araucaria.araucana
2005-04-19 21:45 ` Peter Dyballa
2005-04-19 21:59   ` Araucaria Araucana
     [not found] ` <mailman.2075.1113947453.2895.help-gnu-emacs@gnu.org>
2005-04-20  1:19   ` rgb
2005-04-20  3:44 ` Jaeyoun  Chung

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).