From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How do you check for a feature during byte compilation? Date: Tue, 30 Dec 2008 15:20:54 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230668486 5961 80.91.229.12 (30 Dec 2008 20:21:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2008 20:21:26 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 30 21:22:32 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 1LHl6X-0000Zc-Ib for ged-emacs-devel@m.gmane.org; Tue, 30 Dec 2008 21:22:17 +0100 Original-Received: from localhost ([127.0.0.1]:45436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHl5J-0004U7-RL for ged-emacs-devel@m.gmane.org; Tue, 30 Dec 2008 15:21:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHl5F-0004U2-NR for emacs-devel@gnu.org; Tue, 30 Dec 2008 15:20:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHl5D-0004Tq-CX for emacs-devel@gnu.org; Tue, 30 Dec 2008 15:20:56 -0500 Original-Received: from [199.232.76.173] (port=45304 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHl5D-0004Tn-80 for emacs-devel@gnu.org; Tue, 30 Dec 2008 15:20:55 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:31869 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LHl5D-0004zM-4r for emacs-devel@gnu.org; Tue, 30 Dec 2008 15:20:55 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAPQRWklLd+aG/2dsb2JhbACBbMwEhkSBZw X-IronPort-AV: E=Sophos;i="4.36,304,1228107600"; d="scan'208";a="31619423" Original-Received: from 75-119-230-134.dsl.teksavvy.com (HELO pastel.home) ([75.119.230.134]) by ironport2-out.teksavvy.com with ESMTP; 30 Dec 2008 15:20:54 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 551478CF4; Tue, 30 Dec 2008 15:20:54 -0500 (EST) In-Reply-To: (Lennart Borgman's message of "Sun, 28 Dec 2008 20:10:20 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:107423 Archived-At: > This does not work during byte compilation AFAICS, featurep returns nil: > (when (featurep 'typesetter) > (defun typesetter-init-nxhtml-mode () > (typesetter-init-html-mode))) > What do you do instead? In what way does it fail to work? Give us more info. Stefan PS: BTW, your defun could be replaced by a defalias.