From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yoni Rabkin Newsgroups: gmane.emacs.devel Subject: Re: Adding M-x iwconfig to net-utils.el Date: Fri, 08 Feb 2008 06:42:02 +0200 Message-ID: <87d4r8jbz9.fsf@rabkins.net> References: <87lk5wkh1c.fsf@rabkins.net> <87hcgkjcy9.fsf@rabkins.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202445840 29647 80.91.229.12 (8 Feb 2008 04:44:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Feb 2008 04:44:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 08 05:44:22 2008 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 1JNL66-0005Xc-2s for ged-emacs-devel@m.gmane.org; Fri, 08 Feb 2008 05:44:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNL5d-0001Hq-GA for ged-emacs-devel@m.gmane.org; Thu, 07 Feb 2008 23:43:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNL5Z-0001Hb-LB for emacs-devel@gnu.org; Thu, 07 Feb 2008 23:43:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNL5W-0001HP-UR for emacs-devel@gnu.org; Thu, 07 Feb 2008 23:43:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNL5W-0001HM-Lx for emacs-devel@gnu.org; Thu, 07 Feb 2008 23:43:46 -0500 Original-Received: from mailgw.comm.net.il ([193.238.208.251]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JNL5W-0001vz-1R for emacs-devel@gnu.org; Thu, 07 Feb 2008 23:43:46 -0500 Original-Received: from rabkins.net (www.radkins.co.il [193.238.208.83] (may be forged)) by mailgw.comm.net.il (8.12.8/8.12.8) with ESMTP id m183ahOp027245 for ; Fri, 8 Feb 2008 05:36:44 +0200 Original-Received: from ardbeg.rabkins.net [62.56.252.178] by rabkins.net with ESMTP (SMTPD32-8.15) id AE33BC100C6; Fri, 08 Feb 2008 06:44:35 +0200 X-Ethics: Use GNU In-Reply-To: (Miles Bader's message of "Fri, 08 Feb 2008 13:27:09 +0900") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:88499 Archived-At: Miles Bader writes: > Yoni Rabkin writes: >>> BTW, why does net-utils.el constantly refer to it as "ipconfig", when >>> clearly it's running "ifconfig"? Every system I've ever used has called >>> it "ifconfig", so it seems very weird... >> >> It must be a Microsoft Windows thing, since the net-utils.el code says: >> >> (defcustom ipconfig-program >> (if (eq system-type 'windows-nt) >> "ipconfig" >> "ifconfig") > > Yuck... Emacs shouldn't be using windows-influenced names, I think. That can be added to my proposed patch easily enough, or as an additional trivial patch. It would also probably change the name of the buffer and the current net-utils.el alias: ;; This is the normal name on most Unixes. ;;;###autoload (defalias 'ifconfig 'ipconfig) ...to: ;; This is the the name of the command on Windows NT. ;;;###autoload (defalias 'ipconfig 'ifconfig) -- "Cut your own wood and it will warm you twice"