From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rajinder Yadav Newsgroups: gmane.emacs.help Subject: Re: reload modified files in buffer Date: Thu, 16 Dec 2010 06:42:37 -0500 Message-ID: <4D09FB2D.5000809@gmail.com> References: <87bp4ox1y4.fsf@turtle.gmx.de> <525B5A1D-5FEF-44F6-B93D-0F048E28BE64@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292501124 9351 80.91.229.12 (16 Dec 2010 12:05:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 12:05:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 13:05:20 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTCZT-0004si-VE for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 13:05:17 +0100 Original-Received: from localhost ([127.0.0.1]:57741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTCIT-0000Nn-3M for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 06:46:57 -0500 Original-Received: from [140.186.70.92] (port=45805 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTCER-0007GW-1M for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 06:42:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTCEJ-0006e9-UV for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 06:42:41 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:53940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTCEJ-0006du-RC for help-gnu-emacs@gnu.org; Thu, 16 Dec 2010 06:42:39 -0500 Original-Received: by iwn40 with SMTP id 40so3568696iwn.0 for ; Thu, 16 Dec 2010 03:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=VEp4iyS3Lqd9NjMx3QVWaVG9nygjK9xWm+uJplev8jc=; b=kfnDihrxxU3x74w/U+VjhZty2fVACGyzKklOd+edNxZQh3HKdAIv3UClU03VRynjWt oXvvYD/sU+siUhSJI75S6oGlD9qX4+Kchr64Ncj9PFsl7fH6bS4GSR/vyg27wgFETCbS sG+GWGrEPfswlpe2bjeMK26GH9/QwCjGDqGqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Nqn9qfIpTOefjoFpOVLHRZHU97N0af4olvRUf3C67OfKK5VMWKNGmUwCuzWRJ+zHB0 HXFNhT4TDNQ2QDhvLmC+uxvBIK1olUD8B66NGsRomPM/vXicx8TuwCBZs5/GL/blq8jc s66gNhqkTvwOlQGSmty6YpPXgc4+GbuLs9dXc= Original-Received: by 10.42.178.193 with SMTP id bn1mr7158776icb.14.1292499759272; Thu, 16 Dec 2010 03:42:39 -0800 (PST) Original-Received: from [192.168.2.100] (dsl-173-248-230-235.acanac.net [173.248.230.235]) by mx.google.com with ESMTPS id gy41sm1890597ibb.11.2010.12.16.03.42.38 (version=SSLv3 cipher=RC4-MD5); Thu, 16 Dec 2010 03:42:38 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77588 Archived-At: On 10-12-15 07:39 PM, suvayu ali wrote: > On Wed, Dec 15, 2010 at 11:14 AM, Andrea Crotti > wrote: >> Peter Dyballa 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