From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ken Manheimer" Newsgroups: gmane.emacs.devel Subject: small elaboration in tips.texi Date: Mon, 10 Jul 2006 12:14:50 -0400 Message-ID: <2cd46e7f0607100914x587b58e7g846755525844723c@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152548122 1695 80.91.229.2 (10 Jul 2006 16:15:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2006 16:15:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 10 18:15:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FzyPc-0004PD-J2 for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2006 18:15:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FzyPb-00028t-UT for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2006 12:15:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FzyPP-00028o-4j for emacs-devel@gnu.org; Mon, 10 Jul 2006 12:14:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FzyPM-00028c-O2 for emacs-devel@gnu.org; Mon, 10 Jul 2006 12:14:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FzyPM-00028Z-H2 for emacs-devel@gnu.org; Mon, 10 Jul 2006 12:14:52 -0400 Original-Received: from [64.233.182.189] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FzyQU-0006CO-3u for emacs-devel@gnu.org; Mon, 10 Jul 2006 12:16:02 -0400 Original-Received: by nf-out-0910.google.com with SMTP id n15so513886nfc for ; Mon, 10 Jul 2006 09:14:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FG4D1HB5OmpFaJB5qE2sBOOzlYHnkug6L00hJea9y6w7f9w53m6nNbY+MUTN60FKv3FYzlH5RDw6Uy+uHoD0r7fxvTMy7jLmPrW3jVdSi6XYWkBZnB/X/Oi5n//bCXIFOOhHMo+fO/c+GC40YMBcmQmQYnyVxZK4KJUUvr8sWMg= Original-Received: by 10.78.97.7 with SMTP id u7mr1764053hub; Mon, 10 Jul 2006 09:14:51 -0700 (PDT) Original-Received: by 10.78.202.13 with HTTP; Mon, 10 Jul 2006 09:14:50 -0700 (PDT) Original-To: emacs-devel@gnu.org Content-Disposition: inline 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:56892 Archived-At: i hadn't connected the fact that requiring a package for macros can be limited to the byte-compilation phase, since the macro expansions are compiled in to the resulting byte-code. i've elaborated the entry about limiting dependencies on 'cl in tips.texi to convey that fact. i'm including the patch inline below my signature. -- ken ken.manheimer@gmail.com http://myriadicity.net --- tips.texi 10 Jul 2006 10:58:03 -0400 1.85 +++ tips.texi 10 Jul 2006 11:40:42 -0400 @@ -119,7 +119,9 @@ that could cause name clashes for users who don't use that package. However, there is no problem with using the @code{cl} package at compile -time, with @code{(eval-when-compile (require 'cl))}. +time, with @code{(eval-when-compile (require 'cl))}. That's sufficient +particularly for @code{cl} macros - they are compiled in to the resulting +byte-code, so @code{cl} becomes unnecessary at run time. @item When defining a major mode, please follow the major mode