From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Youngs Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] New convenience macros Date: Thu, 23 Aug 2007 20:54:10 +1000 Organization: The SXEmacs Project Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0207487529==" X-Trace: sea.gmane.org 1187867066 28807 80.91.229.12 (23 Aug 2007 11:04:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 11:04:26 +0000 (UTC) Keywords: featurep,optimisation,macros To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 23 13:04:22 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 1IOAU3-0003EC-BB for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 13:04:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOAU2-0000fl-RT for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 07:04:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOATy-0000fY-Tg for emacs-devel@gnu.org; Thu, 23 Aug 2007 07:04:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOATx-0000fM-CF for emacs-devel@gnu.org; Thu, 23 Aug 2007 07:04:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOATx-0000fJ-92 for emacs-devel@gnu.org; Thu, 23 Aug 2007 07:04:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IOATw-000590-Kb for emacs-devel@gnu.org; Thu, 23 Aug 2007 07:04:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IOAS6-0006kB-Re for emacs-devel@gnu.org; Thu, 23 Aug 2007 13:02:14 +0200 Original-Received: from 203-206-170-37.perm.iinet.net.au ([203.206.170.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 13:02:14 +0200 Original-Received: from steve by 203-206-170-37.perm.iinet.net.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 13:02:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203-206-170-37.perm.iinet.net.au X-Face: #O)>9erkUv7RJ~0G~5_6lEMz\HC2&~&kV2bsu4TWHI_v~<8Hj%KBBj1[*\uKF*dxbEzwAli ; tSuN`c)F,}p|7{6lA~e.P+7Qo\A%q"lJ7/UtUX@yEZ!X"Tph(3O8`nhPJF>hI4_GOvb%X{+e*Mi_| ^yTf#aTwGG,(3e41?C9B7Pak*'A$+$/hV Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUqHB9XS0r9/M/BuaSL gHVNKMr/AAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAwAAAAMADO7oxXAAAB2klEQVQ4 y22Ti43DIAyGbV0G8B8Y4AodICUdIAT2n+lsII+eakVqxefHb7Ap/LM0fil8sVruoLtG/YRovsB6 /HmzMPCZKtaahYV8zekOVjJjD6wf4CliIAPIfr9AlB5QZfLZWY3YzzdqhIkmIPXiUaUuhAYwbQzf +0jJCniY/5RrJuxXg1m8BbDLHoy5AWv5mS1L0+p9PlKplU3BpDGqdQ+COEC0AGp9CIVICEPuazFf 4vaFjc/iVX1VFjQG+UXaxgCFmL0Ifn6JVa07HkpLcPXIvEfLVfcwOn8v6giwXYC26M+nLVZ7Y/fW 9zBd+wCxNLHUzUS7EQG6WXNIX0Cz+SsAietAPlLpNNBPoKi1t/NUBwfYrDqNC7xIdnqwG7CXuaFc KoqpeshoYVSC33vnD7vwLsbM24g08AsWEeZD2lbabFN4ss4NyA/Ark1+agCaLfcB5Skdi/MQla4q u7+UMbAK0K1ncscWWXE7xUh0zjiFl/XX55B4FIgGrOqR6kxkQIdGi9cWcWVSsJCAKdvqCc/H+iZT 1QfQlskm6uxjwXEbqOLHfpncTd+lXbxwzfcIYZ0YNibs57F5eolPrazEBFfbjTgUKzC9Cnytde0L OUY0ruVd1NariZDiHz+hamROjsvkAAAAGnpUWHRqcGVnOmNvbG9yc3BhY2UAAHjaMwIAADMAM4k4 IzUAAAAmelRYdGpwZWc6c2FtcGxpbmctZmFjdG9yAAB42jOqMNIxrDAEYQARgwLpPZcvTwAAAABJ RU5ErkJggg== Mail-Copies-To: never X-X-Day: Only 2430277 days till X-Day. Got Slack? X-URL: X-Request-PGP: X-OpenPGP-Fingerprint: 1659 2093 19D5 C06E D320 3A20 1D27 DB4B A94B 3003 X-Now-Playing: The Reefer Song --- [Mindless Drug Hoover] X-Discordian-Date: Prickle-Prickle, the 15th day of Bureaucracy, 3173. X-Attribution: SY X-Arch-Repo: steve@sxemacs.org--2007 http://arch.sxemacs.org/2007/ User-Agent: Gnus/5.110007 (No Gnus v0.7) SXEmacs/22.1.7 (De Lorean, linux) Cancel-Lock: sha1:vk8IzSF0pD0wz3EDPrMYG/EPv+0= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:77022 Archived-At: --===============0207487529== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable * Richard Stallman writes: > However, Stefan wrote: > The advantage over a macro is that the elisp code will work regardl= ess of > whether this optimization is implemented (it only affects byte-comp= iler > warnings anyway), so it's trivially backward&forward compatible. > This is a good argument for _using_ featurep rather than the macros. > That doesn't mean we can't also install the macros. But maybe you > will agree it is better to use featurep. Yes, I agree. I'm even going to add a similar optimisation to SXEmacs and XEmacs. However, there are situations where this optimisation won't work, here's an example... (if (and (featurep 'simple) (featurep 'xemacs)) a b) warns about free variables for both `a' and `b'. So I think having the macros as well as the optimisation is a good idea. Can you please add them, Richard? (with the updated names of course) Thanks very much. =2D-=20 |---------------------| | SXEmacs - The only _______ you'll ever need. | | Fill in the blank, yes, it's THAT good! | |---------------------------------------| --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (GNU/Linux) Comment: The SXEmacs Project Comment: Eicq - The SXEmacs ICQ Client iEYEARECAAYFAkbNZ1IACgkQHSfbS6lLMAMeHACgohG/OLljvk3bhL2RZufs0mCy 6YUAmwb14+SXX80jkjfUAbd4clCZdhr4 =8wvQ -----END PGP SIGNATURE----- --=-=-=-- --===============0207487529== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0207487529==--