From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: cc-vars.el Date: 20 Nov 2002 11:22:13 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200211180057.JAA24537@etlken.m17n.org> <5bbs4m8qz9.fsf@lister.roxen.com> <5bwun97ecw.fsf@lister.roxen.com> <20021119165749.GA27657@gnu.org> <5b65utkyqt.fsf@lister.roxen.com> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037759117 13860 80.91.224.249 (20 Nov 2002 02:25:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 02:25:17 +0000 (UTC) Cc: Dave Love , Kenichi Handa , rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18EKYG-0003bP-00 for ; Wed, 20 Nov 2002 03:25:16 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18EKbE-00083m-00 for ; Wed, 20 Nov 2002 03:28:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EKWO-0005Xx-00; Tue, 19 Nov 2002 21:23:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EKVh-0004ZR-00 for emacs-devel@gnu.org; Tue, 19 Nov 2002 21:22:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EKVf-0004Ut-00 for emacs-devel@gnu.org; Tue, 19 Nov 2002 21:22:36 -0500 Original-Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EKVe-0004Sb-00; Tue, 19 Nov 2002 21:22:35 -0500 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id gAK2MGl21317; Wed, 20 Nov 2002 11:22:16 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id gAK2MGR04905; Wed, 20 Nov 2002 11:22:16 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id gAK2MF229830; Wed, 20 Nov 2002 11:22:15 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id gAK2MEB17958; Wed, 20 Nov 2002 11:22:14 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id A3A243815; Wed, 20 Nov 2002 11:22:13 +0900 (JST) Original-To: Martin Stjernholm System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <5b65utkyqt.fsf@lister.roxen.com> Original-Lines: 38 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9555 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9555 Martin Stjernholm writes: > > /.../ A few extra fboundp checks at load-time are so utterly > > inconsequential that it's hardly worth worrying about the possibility that > > they might be generated in some cases. > > What makes you think they are restricted to load time code? The idioms I'm thinking of are: (if (fboundp 'foo) (foo bar) (foo-work-around bar)) which will work for `when' too, due to macroexpansion: (when (fboundp 'foo) ...do stuff... (foo bar) ...do more stuff...) I'd probably make it work for `and' too, so you could do: (and (fboundp 'foo) (foo bar)) What case do you have in mind where these aren't sufficient? Can you give examples? > What would be the problem of adding a macro in the bytecomp > environment to control the warning aspect only? That has to be > simpler than recognizing the if-form. It's not like it's an either-or > issue between two irreconcilable solutions. No, but let's not add both unless it's actually necessary. -Miles -- Come now, if we were really planning to harm you, would we be waiting here, beside the path, in the very darkest part of the forest?