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 17:40:57 +0100 Message-ID: References: <198E2B70-D060-41D8-8BC2-A9614C2729CC@inf.ed.ac.uk> <06675819-C4A8-4D78-AD59-0A2AF296AC7E@inf.ed.ac.uk> <87ve7gn5zc.fsf@red-bean.com> <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 1196786517 29381 80.91.229.12 (4 Dec 2007 16:41:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 16:41:57 +0000 (UTC) Cc: Emacs Devel To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 17:42:07 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 1IzaqS-0007uY-N0 for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 17:42:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzaqC-0000fW-7W for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 11:41:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzapS-0008AZ-Nn for emacs-devel@gnu.org; Tue, 04 Dec 2007 11:41:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzapR-00088A-18 for emacs-devel@gnu.org; Tue, 04 Dec 2007 11:41:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzapQ-00087x-OX for emacs-devel@gnu.org; Tue, 04 Dec 2007 11:41:00 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzapP-0001ku-TS for emacs-devel@gnu.org; Tue, 04 Dec 2007 11:41:00 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so6421269wah for ; Tue, 04 Dec 2007 08:40:58 -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=g4dxzuhfxXxYE9/n2H59dmdGjjWtJbdV2LBFL/EzJrA=; b=Ty6rmaFFAQeole+NWnnybqwswZ0xYYfdh9dLz9troiSE/wZJHk4mmmqSD88/MK8obbASVCNlmQl6fdCmxd9PcjNpTEUhxc19Pviff22oVgBBUSadXObSXZBcLK7hQ12T3TAKfCmbX8n+JgQum7LDNq5xO7jZNbKbX2WtXLoYv6U= 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=FTFm81xdo9Z/6zKv+iGvDB6ZpgdoheotA6fcZ/vvhECIv+O8GhdHxRs3oGUZ/NJozWID9wYXKduEVycWRrcoNxJN07Y2z4XHJ3z8E1KAuEPbnZteubjEJrO4A3hHPPesC/CbaF4rrTy5EG2xsLEJ5CfvLf6bzY+KeO2I4YizBgY= Original-Received: by 10.115.33.1 with SMTP id l1mr966229waj.1196786457110; Tue, 04 Dec 2007 08:40:57 -0800 (PST) Original-Received: by 10.114.170.5 with HTTP; Tue, 4 Dec 2007 08:40:57 -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:84654 Archived-At: On Dec 4, 2007 5:20 AM, Eli Zaretskii wrote: > Yes; and saveplace file is an internal Emacs file, not unlike > auto-save files. I've followed suit and used emacs-mule for the ido history file in Emacs 22. Which brings forth a similar case: the savehist-file (from savehist.el) is by default saved in utf-8 (at least on recent XEmacs and Emacs). However, the eol-conversion is left for Emacs to decide. That's Not Good when some of the saved variables contain "^M" or "^J" on a non-unix environment. For example, I did some "^M^J" -> "^J" replacements (to fix a garbled patch) on Windows, and in subsequent invocations of Emacs the contents of query-replace-history got sillier and sillier: "^M^M^J", "^M^M^M^M^J", etc. Now, savehist.el is friendly enough to contain a variable `savehist-coding-system', so it's easy to fix in your own .emacs. The question is, for a file whose intention is to preserve exactly some variable's contents, wouldn't be a better default to use utf-8-unix? Juanma