From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#870: Repeatable instance of bug#870 Date: Tue, 13 Jan 2009 11:30:16 +0900 Message-ID: References: <4961E7F7.2000509@gnu.org> <4964657F.5010205@gmx.at> <4964CB64.2090506@gmx.at> Reply-To: Kenichi Handa , 870@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1231814636 18820 80.91.229.12 (13 Jan 2009 02:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2009 02:43:56 +0000 (UTC) Cc: 870@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 03:45:08 2009 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 1LMZH8-0000Fi-Sq for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 03:45:07 +0100 Original-Received: from localhost ([127.0.0.1]:33919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMZFs-0001YO-GR for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 21:43:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMZFb-0001MC-1q for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 21:43:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMZFY-0001Kb-J0 for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 21:43:29 -0500 Original-Received: from [199.232.76.173] (port=42735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMZFY-0001KL-BO for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 21:43:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57161) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMZFX-0006m1-KK for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 21:43:28 -0500 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 n0D2hPls001203; Mon, 12 Jan 2009 18:43:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0D2e4gG032497; Mon, 12 Jan 2009 18:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Tue, 13 Jan 2009 02:40:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 870 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 870-submit@emacsbugs.donarmstrong.com id=B870.123181382330746 (code B ref 870); Tue, 13 Jan 2009 02:40:03 +0000 Original-Received: (at 870) by emacsbugs.donarmstrong.com; 13 Jan 2009 02:30:23 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0D2UIUh030608 for <870@emacsbugs.donarmstrong.com>; Mon, 12 Jan 2009 18:30:20 -0800 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n0D2UH70025259; Tue, 13 Jan 2009 11:30:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n0D2UHPn029035; Tue, 13 Jan 2009 11:30:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n0D2UG44021111; Tue, 13 Jan 2009 11:30:16 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1LMZ2m-0007JP-So; Tue, 13 Jan 2009 11:30:16 +0900 In-reply-to: <4964CB64.2090506@gmx.at> (message from martin rudalics on Wed, 07 Jan 2009 16:33:56 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 12 Jan 2009 21:43:29 -0500 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:24057 Archived-At: In article <4964CB64.2090506@gmx.at>, martin rudalics writes: > Thanks for taking care of this. Your fix solves the problem for me > though I'm not sure whether it fixes the issue raised by Peter: > That patch fixes the bug I reported, but it creates a new one: if you > change the EOL convention outside of emacs, revert-buffer no longer > detects this. To reproduce: > printf "hello\r\nworld\r\n" > hello > emacs -Q hello & > printf "hello\rworld\r" > hello > M-x revert-buffer > # emacs still sees DOS newlines As I can't reproduce the above problem, I think the bug is fixed. > In particular, when I visit a file, (1) save it with a different line > ending, (2) change the line ending outside this instance of Emacs, and > (3) revert the buffer, its line ending is the one saved in (1) and not > the one from (2). But IIUC Emacs 22 didn't handle this either. By (1), the variable buffer-file-coding-system-explicit is set to XXX, and, in such a case, revert-buffer binds coding-system-for-read to XXX to respect your decision made by (1). I'm not sure this behavior is a bug. --- Kenichi Handa handa@m17n.org