From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel Subject: Re: cc-vars.el Date: 20 Nov 2002 16:35:37 +0000 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200211180057.JAA24537@etlken.m17n.org> <5bbs4m8qz9.fsf@lister.roxen.com> <5bwun97ecw.fsf@lister.roxen.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037810518 15532 80.91.224.249 (20 Nov 2002 16:41:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 16:41:58 +0000 (UTC) Cc: Miles Bader , 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 18EXvI-00042L-00 for ; Wed, 20 Nov 2002 17:41:56 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18EXyZ-0007Ky-00 for ; Wed, 20 Nov 2002 17:45:19 +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 18EXpv-0006To-00; Wed, 20 Nov 2002 11:36:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EXpQ-0005U5-00 for emacs-devel@gnu.org; Wed, 20 Nov 2002 11:35:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EXpN-0005Kp-00 for emacs-devel@gnu.org; Wed, 20 Nov 2002 11:35:51 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EXpE-0005D9-00; Wed, 20 Nov 2002 11:35:40 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.35 #1 (Debian)) id 18EXpC-00030Q-00; Wed, 20 Nov 2002 16:35:38 +0000 Original-To: Martin Stjernholm Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:9567 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9567 Martin Stjernholm writes: > That's the problem; you can't get the pragma without getting the code > then. E.g. if ACTION gets very large and I decide to split it up in > several functions I had to add otherwise completely unnecessary > fboundp checks in them just to silence the compiler. You can put a conditional around the lot, but I don't remember that sort of situation actually occurring in code I've worked on. > Your suggestion will work most of the time, but it still needs to be > complemented with some pragma forms that doesn't have other effects. As I said, it's easy to suppress undefined function warnings safely if you compile file-by-file in batch, for instance with dummy autoloads for them inside eval-when-compile. There's probably a case for something like `(defun fred)' being treated by the optimizer like `(defvar fred)', but I'm surprised this is such a big deal.