From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.mail.mh-e.devel,gmane.emacs.devel Subject: Re: Compatibility aliases, defsubsts, and macros... Date: Tue, 31 Jan 2006 08:05:34 +0900 Message-ID: References: <22611.1138658353@olgas.newt.com> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138662368 23107 80.91.229.2 (30 Jan 2006 23:06:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2006 23:06:08 +0000 (UTC) Original-X-From: mh-e-devel-admin@lists.sourceforge.net Tue Jan 31 00:06:07 2006 Return-path: Envelope-to: gmmd-mh-e-devel@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3i60-0007uf-So for gmmd-mh-e-devel@m.gmane.org; Tue, 31 Jan 2006 00:06:05 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id 2084888F87; Mon, 30 Jan 2006 15:06:04 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1F3i5b-0006pU-Rp for mh-e-devel@lists.sourceforge.net; Mon, 30 Jan 2006 15:05:39 -0800 Original-Received: from uproxy.gmail.com ([66.249.92.201]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1F3i5a-0005Th-Cq for mh-e-devel@lists.sourceforge.net; Mon, 30 Jan 2006 15:05:39 -0800 Original-Received: by uproxy.gmail.com with SMTP id s2so28150uge for ; Mon, 30 Jan 2006 15:05:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cjzkEjQehNW+XBdnKJWcQyD6mndpzYORq5RAeRbmQPt3ZHJelsZ/PoURsQim1KONWyncciKWMNtvEzaVC37hVoBRhn7KHr2LLLwlAHPa3Ui3HNhDpAMaEBLVpiZx2SCE7M7w1Ama2fGdcBkSOjpTSzzpLaTwGVFTR2Ni7hyHOjg= Original-Received: by 10.48.108.7 with SMTP id g7mr912856nfc; Mon, 30 Jan 2006 15:05:34 -0800 (PST) Original-Received: by 10.48.1.9 with HTTP; Mon, 30 Jan 2006 15:05:34 -0800 (PST) Original-To: emacs-devel@gnu.org, mh-e-devel@lists.sourceforge.net In-Reply-To: <22611.1138658353@olgas.newt.com> Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 0.0 RCVD_BY_IP Received by mail server with no name Original-Sender: mh-e-devel-admin@lists.sourceforge.net Errors-To: mh-e-devel-admin@lists.sourceforge.net X-BeenThere: mh-e-devel@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Forum for the MH-E developers List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Tue, 31 Jan 2006 08:05:34 +0900 Xref: news.gmane.org gmane.mail.mh-e.devel:11463 gmane.emacs.devel:49796 Archived-At: 2006/1/31, Bill Wohler : > Unless I'm missing a subtlety, these two paragraphs seem incompatible > with each other. The following seems OK by #1 but not by #2: #1 just means "don't _gratuitously_ add aliases simply for the purpose of making your code look neat" (which for whatever reason lots of people seem to like to do). E.g., don't add (defalias 'miles-car 'car) and call "miles-car" everywhere -- you know car is going to be defined. #2 then says "In the case where you _need_, for portability, to define your own version of a standard emacs function on certain platforms, do _not_ use the standard emacs name for it, instead use a package-specific name, and add an alias in the case where the Emacs standard definition is ok." #2 is very important; the bad old practice of just defining the standard functions on systems which didn't have it built in (as you demonstrate) caused many problems. -miles -- Do not taunt Happy Fun Ball. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642