From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: printing.el again Date: Mon, 15 Nov 2004 20:29:08 -0500 Message-ID: References: <419779C4.50909@ig.com.br> <871xew44v1.fsf-monnier+emacs@gnu.org> <41990B75.1080603@ig.com.br> <41994FFB.2060308@ig.com.br> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100568601 31021 80.91.229.6 (16 Nov 2004 01:30:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Nov 2004 01:30:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 16 02:29:54 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CTsAM-0001MV-00 for ; Tue, 16 Nov 2004 02:29:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTsJ4-0007Bv-Kk for ged-emacs-devel@m.gmane.org; Mon, 15 Nov 2004 20:38:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CTsIw-0007Be-Sn for emacs-devel@gnu.org; Mon, 15 Nov 2004 20:38:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CTsIw-0007B7-0v for emacs-devel@gnu.org; Mon, 15 Nov 2004 20:38:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTsIv-0007Ag-LQ for emacs-devel@gnu.org; Mon, 15 Nov 2004 20:38:45 -0500 Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CTs9e-0005QB-GF for emacs-devel@gnu.org; Mon, 15 Nov 2004 20:29:10 -0500 Original-Received: from empanada.home ([70.48.82.50]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041116012909.FPXE1542.simmts12-srv.bellnexxia.net@empanada.home>; Mon, 15 Nov 2004 20:29:09 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id 7344736CB07; Mon, 15 Nov 2004 20:29:09 -0500 (EST) Original-To: Vinicius Jose Latorre In-Reply-To: <41994FFB.2060308@ig.com.br> (Vinicius Jose Latorre's message of "Mon, 15 Nov 2004 22:55:23 -0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) 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: main.gmane.org gmane.emacs.devel:29899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29899 > Does the byte-compiler do constant folding optimization or it is an ad hoc > optimization? It's pretty ad-hoc. But it does do some amount of constant folding. > Maybe this should be documented in Emacs Lisp Reference or in other > suitable info, probably Byte Compiler Users Guide. Also other > byte-compiler optimizations should be documented. Actually, I don't think optimizations should be particularly mentioned. The interesting part of optimizing (featurep 'xemacs) is that it eliminates spurious warnings. There are other ways to get the same effect, such as what is done with (if (fboundp 'foo) ...) where the test is not optimized away, but where warnings are selectively prevented. I think a chapter on "eliminating warnings" is in order to document the use of (featurep 'xemacs), (fboundp 'foo), (defvar foo), (with-no-warning ...), ... Stefan