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: Wed, 08 Oct 2008 20:03:09 +0200 Message-ID: <48ECF5DD.7020104@gmx.at> References: <87iqs3oyg5.fsf@cyd.mit.edu> 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 1223490634 28358 80.91.229.12 (8 Oct 2008 18:30:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 18:30:34 +0000 (UTC) Cc: 1039@emacsbugs.donarmstrong.com, Peter De Wachter To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 20:31:22 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 1KndoW-0005ts-Nc for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 20:31:12 +0200 Original-Received: from localhost ([127.0.0.1]:58087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KndnS-0001Rm-P0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 14:30:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KndnO-0001RD-Dw for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 14:30:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KndnM-0001Qk-QP for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 14:30:02 -0400 Original-Received: from [199.232.76.173] (port=41119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KndnM-0001QX-Hi for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 14:30:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48081) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KndnM-0000j4-4W for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 14:30:00 -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 m98ITvxD015180; Wed, 8 Oct 2008 11:29:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m98IA4uE010576; Wed, 8 Oct 2008 11:10:04 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 18:10:04 +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.12234890918504 (code B ref 1039); Wed, 08 Oct 2008 18:10:04 +0000 Original-Received: (at 1039) by emacsbugs.donarmstrong.com; 8 Oct 2008 18:04:51 +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 m98I4hdc008495 for <1039@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 11:04:45 -0700 Original-Received: (qmail invoked by alias); 08 Oct 2008 18:04:37 -0000 Original-Received: from 62-47-54-129.adsl.highway.telekom.at (EHLO [62.47.54.129]) [62.47.54.129] by mail.gmx.net (mp015) with SMTP; 08 Oct 2008 20:04:37 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18+y3IeWCc+8zuaWL5Wa5lkN4sGsf04h4OuqIa3CU 7peHRT3ZqGXRUR User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <87iqs3oyg5.fsf@cyd.mit.edu> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 08 Oct 2008 14:30:02 -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:21291 Archived-At: > I don't understand the need for the revert-buffer-file-coding-system > variable. Why doesn't last-coding-system-used work here? I suppose it's because of the intelligent point preserving behavior of `revert-buffer'. When buffer and file don't differ (modulo decoding) nothing gets inserted. OTOH Handa kills `buffer-file-coding-system' in `revert-buffer' since 2002 so the old value is lost and Emacs goes for the default value instead. I don't understand though why the problem became virulent only lately. In any case it would be helpful if the OP tested whether my patch works for him ;-) martin