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: Deprecate _emacs on Windows Date: Sun, 13 Mar 2011 05:14:19 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299989712 23950 80.91.229.12 (13 Mar 2011 04:15:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 04:15:12 +0000 (UTC) Cc: Lennart Borgman , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 13 05:15:08 2011 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.69) (envelope-from ) id 1Pychv-0003Oq-23 for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2011 05:15:07 +0100 Original-Received: from localhost ([127.0.0.1]:58932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pychu-00046f-7p for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2011 23:15:06 -0500 Original-Received: from [140.186.70.92] (port=52783 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pychp-00046Q-JZ for emacs-devel@gnu.org; Sat, 12 Mar 2011 23:15:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pycho-0000Qa-H2 for emacs-devel@gnu.org; Sat, 12 Mar 2011 23:15:01 -0500 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:44331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pycho-0000QV-Bt for emacs-devel@gnu.org; Sat, 12 Mar 2011 23:15:00 -0500 Original-Received: by gwaa12 with SMTP id a12so1867058gwa.0 for ; Sat, 12 Mar 2011 20:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=04Y323fAFdac1okjap5U+n45j5c91PFCLjVWQ9RKGTQ=; b=VVqiNKmioi6pDL1kWr9V4mWpL8+0NX+kYs6BTaP8H9hFOAiR4n32BKA5N5rMJxY67T WbIuq8uRCawyIaUhojUsHqqkKl9akLOITEnNaHtjVMkeASh8VxVe67oyT7OD00A56Raa Vs2ez+oBUW52QUKv7ScdJcTttInC+EDli/i38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=LmKqikUU50QRidj0qiQz077Ln/afxk3NHSzvdAupRhsqX3br5fMVoa+OpM2nz7k3rQ 6uKPGHOKdM33Aeb0qQRcjs2ARqbm7SVb1Plu4KT2tXm6xsJsZF8il/XWlwPdZdEtoaZx 92e+5NMgOT1rNH/tTUXenTT2OhBgEQUfVm36A= Original-Received: by 10.151.27.16 with SMTP id e16mr921462ybj.356.1299989699868; Sat, 12 Mar 2011 20:14:59 -0800 (PST) Original-Received: by 10.147.137.2 with HTTP; Sat, 12 Mar 2011 20:14:19 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.41 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:137182 Archived-At: On Sun, Mar 13, 2011 at 05:01, Stefan Monnier wr= ote: > The patch doesn't show it to be a simplification It's one line and a bit of reordering, because I find much clearer this (cond ((eq system-type 'ms-dos) (concat "~" init-file-user "/_emacs")) ((not (eq system-type 'windows-nt)) (concat "~" init-file-user "/.emacs")) ;; Else deal with the Windows situation ((directory-files "~" nil "^\\.emacs\\(\\.elc?\\)?$") ;; Prefer .emacs on Windows. "~/.emacs") ((directory-files "~" nil "^_emacs\\(\\.elc?\\)?$") ;; Also support _emacs for compatibility, but warn about it. (warn "`_emacs' init file is deprecated, please use `.emacs'") "~/_emacs") (t ;; But default to .emacs if _emacs does not exist. "~/.emacs")))) rather than (cond ((eq system-type 'ms-dos) (concat "~" init-file-user "/_emacs")) ((eq system-type 'windows-nt) ;; Prefer .emacs on Windows. (if (directory-files "~" nil "^\\.emacs\\(\\.elc?\\)?$") "~/.emacs" ;; Also support _emacs for compatibility, but warn about it (if (directory-files "~" nil "^_emacs\\(\\.elc?\\)?$") (progn (warn "`_emacs' init file is deprecated, please use `.emacs'") "~/_emacs") ;; But default to .emacs if _emacs does not exist. "~/.emacs"))) (t (concat "~" init-file-user "/.emacs"))))) with the nested if / else if / else thingy, but I can install this change instead if people dislikes the other. > but I think it's a good idea. That's great to hear. =C2=A0 =C2=A0 Juanma