From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: cc-vars.el Date: Thu, 21 Nov 2002 12:12:41 -0500 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> <200211201358.gAKDwsG21304@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037898772 1878 80.91.224.249 (21 Nov 2002 17:12:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 17:12:52 +0000 (UTC) Cc: 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 18Eusf-0000TT-00 for ; Thu, 21 Nov 2002 18:12:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18EuwR-0003lU-00 for ; Thu, 21 Nov 2002 18:16:39 +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 18Euu7-0001K8-00; Thu, 21 Nov 2002 12:14:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18Eusj-0000SR-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 12:12:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18Eusc-0000Kh-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 12:12:47 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Eusc-0000Jo-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 12:12:42 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18Eusb-00026X-00; Thu, 21 Nov 2002 12:12:41 -0500 Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-reply-to: <200211201358.gAKDwsG21304@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) 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:9604 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9604 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? As for whether or not pragmas will ever be made unnecessary, my opinion is that it seems highly unlikely that we'll ever get the byte-compiler to understand all the cases where a function call is safe. I see no reason to try to get even close to that. It would be wasted effort. If there are a few standard constructions that avoid warnings, programmers can use those constructions. That is easy all around.