From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: cc-vars.el Date: Thu, 21 Nov 2002 13:55:07 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200211211855.gALIt7q06098@rum.cs.yale.edu> 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> <200211201358.gAKDwsG21304@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037904990 29224 80.91.224.249 (21 Nov 2002 18:56:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 18:56:30 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, miles@lsi.nec.co.jp, mast@lysator.liu.se, d.love@dl.ac.uk, handa@m17n.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 18EwUz-0007bA-00 for ; Thu, 21 Nov 2002 19:56:25 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18EwYn-0004nh-00 for ; Thu, 21 Nov 2002 20:00: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 18EwUr-0000lp-00; Thu, 21 Nov 2002 13:56:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EwTq-0008VA-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 13:55:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EwTl-0008Rt-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 13:55:13 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EwTk-0008Qp-00; Thu, 21 Nov 2002 13:55:08 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id gALIt7q06098; Thu, 21 Nov 2002 13:55:07 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman 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:9610 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9610 > There's already a macro to turn off warnings for variables: (defvar foo). > I suggested to do the same for (defun bar), but IIRC Richard vetoed it > because he thinks pragmas to turn off some warnings are just wrong. > > I don't think it is wrong necessarily. However, what would (defun bar) > actually do? Would it be a magic flag just for the compiler? Yes, just like (defvar foo): it wouldn't define the function but would instead just declare that there exist such a function somewhere and that the byte-compiler should consequently not emit any warning about it. But it's more important to focus on the (if (fboundp ...) ...) case. Stefan