From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug#1853: Trouble with gzipped info files on Windows Date: Mon, 19 Jan 2009 06:11:42 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1232338315 22360 80.91.229.12 (19 Jan 2009 04:11:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2009 04:11:55 +0000 (UTC) Cc: lekktu@gmail.com, 1853@emacsbugs.donarmstrong.com, emacs-devel@gnu.org, handa@m17n.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 19 05:13:07 2009 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 1LOlVZ-00060R-UU for ged-emacs-devel@m.gmane.org; Mon, 19 Jan 2009 05:13:06 +0100 Original-Received: from localhost ([127.0.0.1]:58861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOlUI-0007XY-Gp for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2009 23:11:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOlUD-0007VC-Vz for emacs-devel@gnu.org; Sun, 18 Jan 2009 23:11:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOlUD-0007Uh-65 for emacs-devel@gnu.org; Sun, 18 Jan 2009 23:11:41 -0500 Original-Received: from [199.232.76.173] (port=32807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOlUD-0007UW-0l for emacs-devel@gnu.org; Sun, 18 Jan 2009 23:11:41 -0500 Original-Received: from mtaout6.012.net.il ([84.95.2.16]:31261) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOlUC-0000EP-Ho for emacs-devel@gnu.org; Sun, 18 Jan 2009 23:11:40 -0500 Original-Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KDP008009R7SJ00@i-mtaout6.012.net.il> for emacs-devel@gnu.org; Mon, 19 Jan 2009 06:11:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.131.96]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KDP005CDABPCMA0@i-mtaout6.012.net.il>; Mon, 19 Jan 2009 06:11:51 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:107979 Archived-At: > From: Stefan Monnier > Cc: 1853@emacsbugs.donarmstrong.com, handa@m17n.org, lekktu@gmail.com, emacs-devel@gnu.org > Date: Sun, 18 Jan 2009 16:01:40 -0500 > > > Upon further thought, perhaps we want the default coding-systems to > > have an explicit -dos EOL type on DOS and Windows, for consistency > > with how we set up things on startup. This would involve explicitly > > changing eol-type of default-coding before the last line above. > > Ideally, it should not only do the same as done on startup, but also do > it by running the same code. Right, I had that in mind, too. The problem is, it's not trivial. The way it works on startup now is a bit kludgey: dos-w32.el says (setq-default buffer-file-coding-system 'undecided-dos) and then set-language-environment-coding-systems does (let* ((priority (get-language-info language-name 'coding-priority)) (default-coding (car priority)) (eol-type (coding-system-eol-type default-buffer-file-coding-system))) ... (if (memq eol-type '(0 1 2 unix dos mac)) (coding-system-change-eol-conversion default-coding eol-type))) the kludge being that this only works because of the specific order files are loaded at dump time and the order of function invocation during startup. Are we okay with making non-trivial changes in that at this time?