From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.bugs Subject: bug#870: Repeatable instance of bug#870 Date: Mon, 5 Jan 2009 15:28:25 +0100 Message-ID: References: <4961E7F7.2000509@gnu.org> <4961ED68.1090609@gnu.org> <4962100E.4060808@gnu.org> Reply-To: Juanma Barranquero , 870@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231166622 23310 80.91.229.12 (5 Jan 2009 14:43:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 14:43:42 +0000 (UTC) Cc: 870@emacsbugs.donarmstrong.com, Emacs Devel To: "Jason Rumney" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 15:44:51 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 1LJqhG-0005og-5d for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 15:44:51 +0100 Original-Received: from localhost ([127.0.0.1]:35704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJqg0-0004dC-Nj for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 09:43:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJqfw-0004d7-U5 for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 09:43:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJqfu-0004cv-F2 for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 09:43:27 -0500 Original-Received: from [199.232.76.173] (port=58907 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJqfu-0004cs-9c for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 09:43:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54648) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJqft-0000wW-Pp for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 09:43:26 -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 n05EhNTA032576; Mon, 5 Jan 2009 06:43:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n05EZ2DK030275; Mon, 5 Jan 2009 06:35:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Mon, 05 Jan 2009 14:35:02 +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.123116570929011 (code B ref 870); Mon, 05 Jan 2009 14:35:02 +0000 Original-Received: (at 870) by emacsbugs.donarmstrong.com; 5 Jan 2009 14:28:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n05ESQfF029005 for <870@emacsbugs.donarmstrong.com>; Mon, 5 Jan 2009 06:28:27 -0800 Original-Received: by yx-out-2324.google.com with SMTP id 8so2254291yxg.31 for <870@emacsbugs.donarmstrong.com>; Mon, 05 Jan 2009 06:28:25 -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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=s63wXUWEeg0SYBriglhjrDoQNJsQUdANwDLZpvZ3OMM=; b=JLR2izIkAO9AD2+PP4iu+dpAtdTrT8ORCusPgDxddc1vQLG9LnonfnoVcRIffcWAvl 3l/9KtWkdR/05Ld+3c6zeTRRH+eXtc0xKTZXDLYppIgcd3m1tk2SqtqgCDl3F2VKRwWk /VmQ6YHByelhzZIgsC+yE16dqZVO9x36nr3kQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LPpidG1hODAiv+0FQohcwbkN5PTOHAs+5zv6lcm9VDYFA2O0lAMZBGT4aXn0QMf54G Q/xKYi9PwXvf+kS19auTWTVKSNR0s1pxGaMcMgqfhQToQ4X3oCgf+mVFWNhA1CvPh/Mv hJ0Q5So30yA13a15pBvxo9jT1+Tcvi2hZsnBc= Original-Received: by 10.100.227.6 with SMTP id z6mr11019251ang.120.1231165705828; Mon, 05 Jan 2009 06:28:25 -0800 (PST) Original-Received: by 10.100.252.15 with HTTP; Mon, 5 Jan 2009 06:28:25 -0800 (PST) In-Reply-To: <4962100E.4060808@gnu.org> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 05 Jan 2009 09:43:27 -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:23793 Archived-At: On Mon, Jan 5, 2009 at 14:50, Jason Rumney wrote: > So > maybe I am wrong about exactly what happens in that part of the decode > functions - maybe the CR does get written to the buffer, but the following > LF is somehow swallowed. The bug does not happen on encoding (for writing), because it is already visible after re-decoding (I mean, after desktop.el applies buffer-file-coding-system, or after the revert-buffer-with-coding-system call in your example). Once the buffer has the lone ^M, it's no wonder it ends up in the file after writing. I think you're right that the problem is related to decoding a CRLF when the pair crosses a buffer boundary. Juanma