bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: correct name for new buffer of same file


From: Eli Zaretskii
Subject: Re: correct name for new buffer of same file
Date: Wed, 23 May 2001 20:47:09 +0300

> From: Dan Jacobson <address@hidden>
> Newsgroups: gnu.emacs.bug
> Date: 23 May 2001 15:21:58 +0800
> 
> perhaps you do this several times.  Before long you will have
> 
>     my_internal_links<3>  10890       Compilation 
> /home/jidanni/my_internal_links
>     my_internal_links<2>  10544       Compilation 
> /home/jidanni/my_internal_links
> 
> etc. etc. in the buffer list.  Nothing bad do far.  Well, there you
> are viewing what you thought was that file and you make a little
> adjustment and
> 
>         my_internal_links changed on disk; really edit the buffer? (y, n, r 
> or C-h) 
>         Please type y, n or r; or ? for help
> 
> Only now emacs tells me!  I've been looking at that file for a half an
> hour already and only now does emacs tell me it is an old version.

This is a feature: it allows you to keep material in a buffer even
though it is long gone, by omission or by commission, from your hard
disk.  If you mistakenly wipe out your files one day, you will be
grateful that Emacs buffers aren't automatically synchronized with the
disk ;-)

But if you want Emacs to alert you or even automatically sync with the
disk, look on the net for something called autorevert.el.

> As proof positive let me ask, for files on disk, does the original
> version keep the same name while the newer versions have ~1~ ~2~ ~3~
> appended?  No.  So why for buffer names do that (with <2> <3> ...)?

Because otherwise Emacs would confuse the user: users don't expect
buffers to change their names under their feet.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]