From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: saveplace: don't ask for coding system Date: Tue, 4 Dec 2007 23:51:17 +0100 Message-ID: References: <198E2B70-D060-41D8-8BC2-A9614C2729CC@inf.ed.ac.uk> <0CD94276-1D9F-42BB-A6F7-A90ED9E06817@inf.ed.ac.uk> <87bq98n0ka.fsf@red-bean.com> <87fxykjb6y.fsf@red-bean.com> <87hcizihwh.fsf@red-bean.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 1196808703 16008 80.91.229.12 (4 Dec 2007 22:51:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 22:51:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 23:51:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IzgcH-0004a7-UP for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 23:51:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Izgc0-0006Rf-9Q for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 17:51:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Izgbw-0006Ph-5n for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:51:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Izgbr-0006G3-0P for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:51:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Izgbq-0006Ft-SV for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:51:22 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Izgbq-0001z6-5H for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:51:22 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so6681938wah for ; Tue, 04 Dec 2007 14:51:18 -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=u8R4QFm/IXz2PfCRrhjg7S/jp2xDqRaW4BHers/YEdA=; b=EYJL6QAUymVpIF8Udi7nsiO6R6YSOKLx3fKeGXmQAm3vZEMZgksfdbwXJiQ7xjqqeB1uwxo+Xj3hRH37rixFSe9TiX80RpJs8WqMbZnUEhMiIOMClQLcbYAfUENlTB7G8Dbzq9Tp/M2gnIaRXJr1ZysCDEOa53a/4PVwJXrrpa8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SCfv5o/7Mo+y4k74jsnInKSbgGQ1YZu6ko390gKboKLVypq7vBzh1yT5E9b1m4H6gy+SVE4UK7NixWd+5Hx7Zn8H4rYls0Mp1xWennJhLRi7kDnbkdg3vKBH1PKmKqefAi46P0RKf9yCpAbFRGJqlp/E7oRPF5b/9d6AewdjK5A= Original-Received: by 10.114.192.1 with SMTP id p1mr1358995waf.1196808678015; Tue, 04 Dec 2007 14:51:18 -0800 (PST) Original-Received: by 10.114.170.5 with HTTP; Tue, 4 Dec 2007 14:51:17 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84682 Archived-At: On Dec 4, 2007 10:32 PM, Eli Zaretskii wrote: > When saving history, there's nothing to decide: savehist uses a > temporary buffer, which is born with the native EOL convention of the > underlying platform: -unix on Posix platforms, -dos on Windows. I don't understand. Wouldn't a -unix coding force it to be saved with Unix EOL convention? > So you mean when reading the history file, yes? Well, I do "M-x replace-string ^M^J ^J ", and the savehist file contains 0x0D 0x0A and 0x0D 0x0D 0x0A. > What would help, I think, is have an explicit EOL > conversion stated in the coding: cookie. We are miscommunicating somehow. The value of `savehist-coding-system' is used to write the file, and is also written in the coding: cookie. When I propose to use a -unix variant to write the file, I of course mean to also write it in the cookie. Juanma