From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#4427: 23.1; defun* don't work when compiled. Date: Wed, 10 Mar 2010 21:50:01 +0100 Organization: ThierryVolpiatto Message-ID: <87mxyfewau.fsf@tux.homenetwork> References: <87fxajolh2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1268256281 22113 80.91.229.12 (10 Mar 2010 21:24:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2010 21:24:41 +0000 (UTC) Cc: 4427@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 10 22:24:37 2010 Return-path: Envelope-to: geb-bug-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 1NpTOO-0002jO-HU for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Mar 2010 22:24:36 +0100 Original-Received: from localhost ([127.0.0.1]:55163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpTON-0002tH-U2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Mar 2010 16:24:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpTOI-0002rq-Nu for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2010 16:24:30 -0500 Original-Received: from [140.186.70.92] (port=45510 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpTOH-0002q3-OM for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2010 16:24:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpTOG-00033T-HR for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2010 16:24:29 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58258) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpTOG-00033M-Ee for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2010 16:24:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NpSvm-0001kA-Dp; Wed, 10 Mar 2010 15:55:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Mar 2010 20:55:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 4427 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 4427-submit@debbugs.gnu.org id=B4427.12682544706692 (code B ref 4427); Wed, 10 Mar 2010 20:55:02 +0000 Original-Received: (at 4427) by debbugs.gnu.org; 10 Mar 2010 20:54:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpSvG-0001jt-FO for submit@debbugs.gnu.org; Wed, 10 Mar 2010 15:54:30 -0500 Original-Received: from mail-bw0-f209.google.com ([209.85.218.209]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpSvE-0001jn-PO for 4427@emacsbugs.donarmstrong.com; Wed, 10 Mar 2010 15:54:29 -0500 Original-Received: by bwz1 with SMTP id 1so5324354bwz.1 for <4427@emacsbugs.donarmstrong.com>; Wed, 10 Mar 2010 12:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:face:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=tb7r8ynNnTm2NjtTYY85jyBi1r29NbZE2EhzoqhEgIY=; b=hKQBx1Eu7zohiKeQi5IhY1IvJL5AXhWa5m8Ia9PobwQFHn/sn30KPQI4/731/hQ5a3 JZR5dxrdP8rkUOA1i9YS5eFTQs6EMniMVOEYGbeJbyKZl8fZvU6uw8/qODgtGGFoRwZM tphqao4CWbre0R2oPQcN7IhsO3ycOfC7tH0Nw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=niWVBA/RjynQ+yyqPqXLCsXcw65rJRdAoWee51ij4d1fTfPYlW2tKhUh7D+6ByxH6P I6WBlrEFvSOM5EJDR+rQY6as7w1JBmvkrnrdvPVDGhGWqJ30b22BCEzN7SN/q7Y7FCpI NoqRa4dp+FWfXU3dbTjckprPLO16ifX94Fk18= Original-Received: by 10.204.5.154 with SMTP id 26mr2486586bkv.62.1268254462989; Wed, 10 Mar 2010 12:54:22 -0800 (PST) Original-Received: from tux.homenetwork (131.211.85-79.rev.gaoland.net [79.85.211.131]) by mx.google.com with ESMTPS id 24sm29228225bkr.18.2010.03.10.12.54.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 10 Mar 2010 12:54:18 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHBARgJRFPS0WbMBTC TSG/uJs0yyVHAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABpUlE QVQ4y3VTQXKDMAyUnD7AwvQOhtxj5N4LFh9ow/+/UtlpM0BczWSS0Wola7UBeEb3+3kJ/5p9ZLz3 UI0n0J0Y4K/lh1nG24FhlJOR2LdSKtpV5gfi/Zd+NdaJBbB4D5N0JnfUIVp6obZURkJwS2a8b9uX AkgxA5gCEcknAH1s2z0DPooWmjGKcJR+HNZt+9bm0GtGRycRuZGs98Ffr02vABWGopIAhmXmxnQN BwBXZjgFLHRoqbfeYxCLWqsjLyKhbEHW+A5nEs699Q2O80ALrgHTmUTy6P0MnKyKQpKHpoNWokxs F0D5VegvWmEozyE6nuMiS98mWzlUQ9bW8qYfqOaFtzWlYCqGeIs6HEyl08jkrxUG9MF5ipXpOOpd ZMoXPPVSLWJiiwNNB+eRSyxJZmQKcacikgucnCRiHuJOLmyYJRDPwOqAvY4pA+Wy+VS8G26BAsdb Ph2Hw7ORy/H0IOG0TnaM8Cp0XrFYyU0v2z8AqkifPVbLZ0qo/gsRg60C7p+8Ov9jrUIxFde+jnAq X42hyp/c+ZcnVyUYBarrqZt3+R8450png3cWKgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAwOC0wNS0z MVQyMjoxNDoyMiswMjowMK3VBDcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMDctMTAtMjhUMTc6MDg6 NDgrMDE6MDDLdIcLAAAAEXRFWHRqcGVnOmNvbG9yc3BhY2UAMix1VZ8AAAAgdEVYdGpwZWc6c2Ft cGxpbmctZmFjdG9yADJ4MiwxeDEsMXgxSfqmtAAAAABJRU5ErkJggg== In-Reply-To: <87fxajolh2.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 18 Sep 2009 19:56:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Mar 2010 15:55:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35513 Archived-At: Hi, sorry for very late reply, but i couldn't make a small recipe reproducing that, however that lead to another bug with defsubst*. Here a file foo.el that contain this very useful code: (eval-when-compile (require 'cl)) (defsubst* compare-a-b (a b &key (test 'eq)) (funcall test a b)) 1) save the file 2) Go in emacs -Q 3) load the file (foo.el) ,---- | Loading /home/thierry/tmp/foo.el (source)... | Load error for /home/thierry/tmp/foo.el: | (void-function defsubst*) `---- That is the same if you (require 'cl) instead of (eval-when-compile...) Now compile (always in emacs -Q) the file and load it (foo.elc) That work as expected. Chong Yidong writes: >> In traverselisp.el, i use cl stuff with >> (eval-when-compile (require 'cl)) at start of file. >> I have functions that are like: >> (defun* foo (&key a b)... >> >> They all work fine after compiling file. >> >> However, i have one new function that don't work when compiling file but >> work as normal when loading the .el file, or evaluate the function with >> C-M x. > > Could you try to make a small, self-contained test case? Your example > is not small, and it is not self-contained (it calls > traverse-find-readlines). This makes it difficult to debug. > -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/