all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* find-file change between emacs 21 and emacs 22
@ 2006-11-13 23:22 Perry Smith
  2006-11-14  4:17 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Perry Smith @ 2006-11-13 23:22 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 667 bytes --]

In emacs 21 (what I'm use to), ^X-^F would put in the minibuffer the  
directory path with a final / on the end.  Simply hitting return  
would re-read the file.  If you wanted to read the directory, you  
would backspace and erase the / and then hit return.

In emacs 22, simply hitting return after the ^X-^F reads in the  
directory.  That confuses me a lot.  I'm simply not use to it.

Is it possible to revert it back to what emacs 21 did -- maybe a  
customized option or some variable I can set?

Thanks,
Perry Smith
Ease Software, Inc.
pedz@easesoftware.com
http://www.easesoftware.com

Low cost SATA Products for IBMs p5, pSeries, and RS/6000 AIX systems




[-- Attachment #1.2: Type: text/html, Size: 3566 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: find-file change between emacs 21 and emacs 22
  2006-11-13 23:22 find-file change between emacs 21 and emacs 22 Perry Smith
@ 2006-11-14  4:17 ` Eli Zaretskii
  2006-11-14  5:22   ` Perry Smith
       [not found]   ` <mailman.549.1163481741.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2006-11-14  4:17 UTC (permalink / raw)


> From: Perry Smith <pedz@easesoftware.com>
> Date: Mon, 13 Nov 2006 17:22:46 -0600
> 
> In emacs 22, simply hitting return after the ^X-^F reads in the  
> directory.  That confuses me a lot.  I'm simply not use to it.

Most people wanted this change.  You seem to be the first one to want
the old and confusing behavior.  It is confusing because re-reading
the file is not something an Emacs user would normally want.  Can you
tell why you need that?

> Is it possible to revert it back to what emacs 21 did -- maybe a  
> customized option or some variable I can set?

Not really, but the NEWS entry that describes the change shows a
work-around:

  ** C-x C-f RET, typing nothing in the minibuffer, is no longer a special case.

  Since the default input is the current directory, this has the effect
  of specifying the current directory.  Normally that means to visit the
  directory with Dired.

  You can get the old behavior by typing C-x C-f M-n RET, which fetches
  the actual file name into the minibuffer.

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

* Re: find-file change between emacs 21 and emacs 22
  2006-11-14  4:17 ` Eli Zaretskii
@ 2006-11-14  5:22   ` Perry Smith
  2006-11-14 20:01     ` Eli Zaretskii
       [not found]   ` <mailman.549.1163481741.2155.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 8+ messages in thread
From: Perry Smith @ 2006-11-14  5:22 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 2274 bytes --]

On Nov 13, 2006, at 10:17 PM, Eli Zaretskii wrote:

>> From: Perry Smith <pedz@easesoftware.com>
>> Date: Mon, 13 Nov 2006 17:22:46 -0600
>>
>> In emacs 22, simply hitting return after the ^X-^F reads in the
>> directory.  That confuses me a lot.  I'm simply not use to it.
>
> Most people wanted this change.  You seem to be the first one to want
> the old and confusing behavior.  It is confusing because re-reading
> the file is not something an Emacs user would normally want.  Can you
> tell why you need that?

If I'm writing quick scaffolding code, I get my Makefile to compile  
and then execute the program and capture various things in different  
output files.  I want to reload the output files to look at them.   
Another example, (roughly the same situation) I'm mucking with my C++  
code and checking the assembly output trying to find things that the  
compiler optimizes better than other things.  Again, the output is to  
foo.s (the assembly language).  I need to reload the file after each  
test.

I did not find it confusing.  I thought it was really brilliant to  
give me two nice things with only one key stroke difference: reload  
the file or do the dired.  As it is now, I can only do one of those.   
(I haven't tried your suggestion yet.)

>> Is it possible to revert it back to what emacs 21 did -- maybe a
>> customized option or some variable I can set?
>
> Not really, but the NEWS entry that describes the change shows a
> work-around:
>
>   ** C-x C-f RET, typing nothing in the minibuffer, is no longer a  
> special case.
>
>   Since the default input is the current directory, this has the  
> effect
>   of specifying the current directory.  Normally that means to  
> visit the
>   directory with Dired.
>
>   You can get the old behavior by typing C-x C-f M-n RET, which  
> fetches
>   the actual file name into the minibuffer.

Oh! thats just as good!  I'll have to re-teach my fingers but that  
shouldn't be a problem.

I looked in the NEWS before my post and did not find the entry you  
mention.  (I was searching for find-file.) I'll look again.

Thanks for your help.
Perry Smith
Ease Software, Inc.
pedz@easesoftware.com
http://www.easesoftware.com

Low cost SATA Products for IBMs p5, pSeries, and RS/6000 AIX systems




[-- Attachment #1.2: Type: text/html, Size: 8426 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: find-file change between emacs 21 and emacs 22
       [not found]   ` <mailman.549.1163481741.2155.help-gnu-emacs@gnu.org>
@ 2006-11-14  7:23     ` Mathias Dahl
  2006-11-14 18:53       ` Kevin Rodgers
  2006-11-14  8:09     ` spamfilteraccount
  1 sibling, 1 reply; 8+ messages in thread
From: Mathias Dahl @ 2006-11-14  7:23 UTC (permalink / raw)


Perry Smith <pedz@easesoftware.com> writes:

>    Oh! thats just as good!  I'll have to re-teach my fingers but
>    that shouldn't be a problem.

I use this instead:

(global-set-key "\C-cr" 'revert-buffer)

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

* Re: find-file change between emacs 21 and emacs 22
       [not found]   ` <mailman.549.1163481741.2155.help-gnu-emacs@gnu.org>
  2006-11-14  7:23     ` Mathias Dahl
@ 2006-11-14  8:09     ` spamfilteraccount
  2006-11-14 13:52       ` Perry Smith
  1 sibling, 1 reply; 8+ messages in thread
From: spamfilteraccount @ 2006-11-14  8:09 UTC (permalink / raw)



Perry Smith wrote:
>
> Oh! thats just as good!  I'll have to re-teach my fingers but that
> shouldn't be a problem.
>

When I have to revert then I usually simply type any character (a),
emacs detects the file changed on the disk and offer me to revert it, I
press r and it's reverted. The only condition is that the file has to
be editable, but it usually is.

So it's simply: <any char>r
No modifier is needed.

Can it be simpler than that?

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

* Re: find-file change between emacs 21 and emacs 22
  2006-11-14  8:09     ` spamfilteraccount
@ 2006-11-14 13:52       ` Perry Smith
  0 siblings, 0 replies; 8+ messages in thread
From: Perry Smith @ 2006-11-14 13:52 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 461 bytes --]

On Nov 14, 2006, at 2:09 AM, spamfilteraccount@gmail.com wrote:

> Perry Smith wrote:
>>
>> Oh! thats just as good!  I'll have to re-teach my fingers but that
>> shouldn't be a problem.
>>
>
> Can it be simpler than that?

Wonderful!  I've been using emacs since '85 or so.  Never figured  
that one out.

Perry Smith
Ease Software, Inc.
pedz@easesoftware.com
http://www.easesoftware.com

Low cost SATA Products for IBMs p5, pSeries, and RS/6000 AIX systems




[-- Attachment #1.2: Type: text/html, Size: 4141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: find-file change between emacs 21 and emacs 22
  2006-11-14  7:23     ` Mathias Dahl
@ 2006-11-14 18:53       ` Kevin Rodgers
  0 siblings, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2006-11-14 18:53 UTC (permalink / raw)


Mathias Dahl wrote:
> Perry Smith <pedz@easesoftware.com> writes:
> 
>>    Oh! thats just as good!  I'll have to re-teach my fingers but
>>    that shouldn't be a problem.
> 
> I use this instead:
> 
> (global-set-key "\C-cr" 'revert-buffer)

My 2¢: C-x C-v RET

-- 
Kevin

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

* Re: find-file change between emacs 21 and emacs 22
  2006-11-14  5:22   ` Perry Smith
@ 2006-11-14 20:01     ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2006-11-14 20:01 UTC (permalink / raw)


> Cc: help-gnu-emacs@gnu.org
> From: Perry Smith <pedz@easesoftware.com>
> Date: Mon, 13 Nov 2006 23:22:06 -0600
> >
> > Most people wanted this change.  You seem to be the first one to want
> > the old and confusing behavior.  It is confusing because re-reading
> > the file is not something an Emacs user would normally want.  Can you
> > tell why you need that?
> 
> If I'm writing quick scaffolding code, I get my Makefile to compile  
> and then execute the program and capture various things in different  
> output files.  I want to reload the output files to look at them.   
> Another example, (roughly the same situation) I'm mucking with my C++  
> code and checking the assembly output trying to find things that the  
> compiler optimizes better than other things.  Again, the output is to  
> foo.s (the assembly language).  I need to reload the file after each  
> test.

Sounds like you might wish to try turning auto-revert-mode on.

> I looked in the NEWS before my post and did not find the entry you  
> mention.  (I was searching for find-file.) I'll look again.

That entry indeed doesn't mention find-file.  I added that now.
Thanks.

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

end of thread, other threads:[~2006-11-14 20:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-13 23:22 find-file change between emacs 21 and emacs 22 Perry Smith
2006-11-14  4:17 ` Eli Zaretskii
2006-11-14  5:22   ` Perry Smith
2006-11-14 20:01     ` Eli Zaretskii
     [not found]   ` <mailman.549.1163481741.2155.help-gnu-emacs@gnu.org>
2006-11-14  7:23     ` Mathias Dahl
2006-11-14 18:53       ` Kevin Rodgers
2006-11-14  8:09     ` spamfilteraccount
2006-11-14 13:52       ` Perry Smith

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.