From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: byte-compiler warnings Date: 12 Sep 2010 18:12:53 GMT Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291868169 5906 80.91.229.12 (9 Dec 2010 04:16:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 04:16:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 05:16:05 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQXvI-00066n-Pe for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 05:16:04 +0100 Original-Received: from localhost ([127.0.0.1]:45293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQXvH-0003jw-Ts for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:16:04 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: individual.net OSXbo4657Jfe3tKFXnxWTAI6BGt0ansEhXoyUClNZ+xr/Fxi9Y Cancel-Lock: sha1:I1i5jO+9C1P+YspPps6qd98fshQ= User-Agent: slrn/0.9.9p1 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:181247 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76625 Archived-At: hi all, having upgraded to GNU Emacs 23.2.1, some of my elisp code that used to compile without any messages now produces some warnings. the first is: Function `copy-list' from cl package called at runtime this one appears a couple of times, also for `gensym' and `evenp'. i do require the cl package at compile time, but since copy-list, gensym and evenp are functions, that of course doesn't help. if i require the package at runtime, the byte compiler complains about it, too: "cl package required at runtime"... so isn't one supposed to use these functions at all, except in private code? the second warning i get is: `save-excursion' defeated by `set-buffer' this applies to code chunks like the following: (save-excursion (set-buffer ... in each case, i can actually take out the save-excursion, i think, because the save-excursion scopes until the end of the function it's in and that's where the effect of set-buffer ends anyway. but it does make me curious, why this warning never appeared in previous emacs versions. and looking at the elisp info files a bit, i find that besides set-buffer there are also save-current-buffer and with-current-buffer, which seem to do pretty much the same thing. anyone know which function is preferred in which situation? TIA -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)