all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rajinder Yadav <devguy.ca@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: reload modified files in buffer
Date: Thu, 16 Dec 2010 06:42:37 -0500	[thread overview]
Message-ID: <4D09FB2D.5000809@gmail.com> (raw)
In-Reply-To: <AANLkTinajFXZkeNR5Bt5oA80KXNw0uSLrq83zMNatA-P@mail.gmail.com>

On 10-12-15 07:39 PM, suvayu ali wrote:
> On Wed, Dec 15, 2010 at 11:14 AM, Andrea Crotti
> <andrea.crotti.0@gmail.com>  wrote:
>> Peter Dyballa<Peter_Dyballa@Web.DE>  writes:
>>
>>>
>>> It does! But wouldn't it be better GNU Emacs would reload the file
>>> instead of warning/asking things?
>>>
>>
>> not correct, what if you modified that file?
>> You would lose your modification without even knowing, not a very good idea...
>>
>
> I think auto-revert-mode doesn't revert the buffer either if it has
> been modified. I think that is a good thing, but then tastes may vary.
> :)
>

it's good to know that auto-revert mode will not revert a modify buffer. 
however afaik Emacs will not let you save a modified buffer if the file 
has changed.

i like Peter's idea of Emacs having the ability to diff-merge a conflict 
when you've modified a buffer and the file has changed.

Emacs should be smart enough to auto-reload a buffer if the file has 
changed and the buffer has not been edited, this would be a welcomed 
enhancement =)

-- 
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-23-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.3



  reply	other threads:[~2010-12-16 11:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1292309755.5276.help-gnu-emacs@gnu.org>
2010-12-14  7:12 ` reload modified files in buffer Sven Joachim
2010-12-15 15:42   ` Peter Dyballa
2010-12-15 19:14     ` Andrea Crotti
2010-12-15 19:26       ` Peter Dyballa
2010-12-16  0:39       ` suvayu ali
2010-12-16 11:42         ` Rajinder Yadav [this message]
2010-12-16 16:32           ` PJ Weisberg
2010-12-16 18:08           ` suvayu ali
2010-12-17 23:09           ` Andrea Crotti
     [not found]   ` <mailman.9.1292427789.4561.help-gnu-emacs@gnu.org>
2010-12-15 16:04     ` Sven Joachim
2010-12-14  6:55 Rajinder Yadav
2010-12-14  7:57 ` suvayu ali
2010-12-14  9:28 ` Deniz Dogan
2010-12-14 15:19 ` Andrea Crotti
2010-12-15 15:43   ` suvayu ali
2010-12-15 16:58     ` Andrea Crotti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D09FB2D.5000809@gmail.com \
    --to=devguy.ca@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.