From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#1039: 23.0.60; emacs forgets EOL convention after revert-buffer Date: Sun, 12 Oct 2008 20:48:45 +0200 Message-ID: <48F2468D.3040705@gmx.at> References: <87iqs3oyg5.fsf@cyd.mit.edu> <48ECF5DD.7020104@gmx.at> <20081012001041.116d71e5@tleilaxu> Reply-To: martin rudalics , 1039@emacsbugs.donarmstrong.com 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: ger.gmane.org 1223838669 10476 80.91.229.12 (12 Oct 2008 19:11:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Oct 2008 19:11:09 +0000 (UTC) Cc: Chong Yidong , 1039@emacsbugs.donarmstrong.com, Kenichi Handa To: Peter De Wachter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 12 21:12:08 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kp6MH-0003DT-DD for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Oct 2008 21:12:05 +0200 Original-Received: from localhost ([127.0.0.1]:32957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kp6LC-0002Uw-UC for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Oct 2008 15:10:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kp6KM-0002CL-1k for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2008 15:10:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kp6KJ-0002Bk-CF for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2008 15:10:04 -0400 Original-Received: from [199.232.76.173] (port=40394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kp6KJ-0002Be-1l for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2008 15:10:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36054) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kp6KI-0008NI-Ek for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2008 15:10:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9CJ9woB016535; Sun, 12 Oct 2008 12:09:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9CJ04CD013574; Sun, 12 Oct 2008 12:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 12 Oct 2008 19:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1039 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by 1039-submit@emacsbugs.donarmstrong.com id=B1039.122383746512248 (code B ref 1039); Sun, 12 Oct 2008 19:00:03 +0000 Original-Received: (at 1039) by emacsbugs.donarmstrong.com; 12 Oct 2008 18:51:05 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m9CIp0R6012240 for <1039@emacsbugs.donarmstrong.com>; Sun, 12 Oct 2008 11:51:02 -0700 Original-Received: (qmail invoked by alias); 12 Oct 2008 18:50:48 -0000 Original-Received: from 62-47-59-57.adsl.highway.telekom.at (EHLO [62.47.59.57]) [62.47.59.57] by mail.gmx.net (mp025) with SMTP; 12 Oct 2008 20:50:48 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19iGcQPh0Bi1dW4R79NElxANvwijYC+dneBgIr+71 Rs7tX4Cz/fexuE User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <20081012001041.116d71e5@tleilaxu> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.73 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 12 Oct 2008 15:10:04 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21422 Archived-At: > That patch fixes the bug I reported, but it creates a new one: Are you sure that this worked _before_ my patch? > if you > change the EOL convention outside of emacs, revert-buffer no longer > detects this. Indeed. BTW, can you confirm that when you delete the entire buffer text first reverting works correctly? Unfortunately, I don't understand this part of `insert-file-contents' at all. I suppose Emacs should redecode when it finds out that the eol-types of the buffer and the part of the file it has already read differ. But somehow this doesn't happen. Handa-san do you have any ideas? martin