From unknown Tue Aug 19 21:03:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4427: 23.1; defun* don't work when compiled. Reply-To: Thierry Volpiatto , 4427@debbugs.gnu.org Resent-From: Thierry Volpiatto Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Sep 2009 10:40:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4427 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125292425924118 (code B ref -1); Mon, 14 Sep 2009 10:40:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Sep 2009 10:30:59 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8EAUvNm024115 for ; Mon, 14 Sep 2009 03:30:58 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mn8pk-00074E-QZ for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mn8pf-00072r-8h for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:55 -0400 Received: from [199.232.76.173] (port=33200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn8pf-00072c-08 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:51 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:56844) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mn8pe-0001PJ-AS for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:50 -0400 Received: by ewy7 with SMTP id 7so1292574ewy.31 for ; Mon, 14 Sep 2009 03:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:organization :date:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=LVP/Q55ZS8vJGA3Fxp3SyYm8TKY0iwMxtlc81fbqsNw=; b=dpfV7cY6nHP7rIo9BPXsXjj9n7AcQlJpv0zlj00pLFWuSz8BzyfMvgDSuWOA7yiMuN ZIjouLdbU/czGljPYwAdaUj0eStqv9ENgT3ajczelcgN4ssqyspJWKNzydDGJSQ6e0Li oY8aIa3PII7SlBSJwRxuRCL1cACJ7PSI5HIR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:organization:date:message-id:user-agent :mime-version:content-type:content-transfer-encoding; b=DMFe/K3ZFOaBkAXAxB/htsrv4NjHwfS3pyL94DbXP8uWP/v0/yjUVcsZHbnyucYWNF kneBGn4U4biZYSQVXihPnH9q34N2hw7W6ETCktkH2S1/vODQSQVxMqLa++bzZxiiIvH+ O4SxKTZEC7HYQKtUmRlKCuI9llmWzdFgRdkps= Received: by 10.211.131.12 with SMTP id i12mr2964195ebn.97.1252924248873; Mon, 14 Sep 2009 03:30:48 -0700 (PDT) Received: from tux.homenetwork ([79.88.78.121]) by mx.google.com with ESMTPS id 7sm501310eyg.38.2009.09.14.03.30.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Sep 2009 03:30:48 -0700 (PDT) From: Thierry Volpiatto To: bug-gnu-emacs@gnu.org Organization: ThierryVolpiatto Date: Mon, 14 Sep 2009 12:24:40 +0200 Message-ID: <87k5016cyf.fsf@tux.homenetwork> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi all, 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. I wonder why. It seem that variables coming from key arg and evaluated in a cond clause don't work when compiled and evaluated from compiled file (.elc). Here is the output of: (symbol-function 'traverse-auto-document-lisp-buffer) After loading only .elc file. --8<---------------cut here---------------start------------->8--- #[(&rest --cl-rest--) "\306>A@.\307>A@.. \2038. @\310>\203!. AA\211.\202.\203Y.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \360=\203\222.\354\355.C!!\204\345. \203\210.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \361=\203\270. \203\256.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \362=\203\336. \203\324.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210+.?A\211.?\204.. \312\207" [--cl-rest-- type prefix --cl-keys-- boundary-regexp regexp :type :prefix (:type :prefix :allow-other-keys) :allow-other-keys nil error ...] 9 ("/home/thierry/elisp/traverselisp.elc" . 45818)] --8<---------------cut here---------------end--------------->8--- Here is the same after evaluation of .el file or function with C-M x: --8<---------------cut here---------------start------------->8--- (lambda (&rest --cl-rest--) "Not documented (fn &key TYPE PREFIX)" (let* ((type ...) (prefix ...)) (let (...) (while --cl-keys-- ...)) (block traverse-auto-document-lisp-buffer (let* ... ... ... ... ... ...)))) --8<---------------cut here---------------end--------------->8--- So here it is normal and the function work as intended. When using the function from .elc file, i have no error, the function just return nil, even with debug-on-error turned on. Here the function: ,---- | (defun* traverse-auto-document-lisp-buffer (&key type prefix) | (let* ((boundary-regexp "^;;=*LIMIT.*") | (regexp (case type | ('nested "^ +\(def\\(un\\|subst\\|advice\\)") | ('command "\(def\\(un\\|subst\\)") | ('internal-variable "\(defvar") | ('user-variable "\(defcustom") | ('faces "\(defface") | ('function "\(def\\(un\\|subst\\|advice\\)") | (t (error "Unknow type")))) | (fn-list (traverse-find-readlines | (current-buffer) | regexp | :insert-fn 'buffer)) | beg end) | (insert "\n") (setq beg (point)) | (save-excursion (when (re-search-forward boundary-regexp) | (forward-line -1) (setq end (point)))) | (delete-region beg end) | (dolist (i fn-list) | (let* ((elm (cadr i)) | (elm-mod (replace-regexp-in-string regexp "" elm)) | (elm-fin (replace-regexp-in-string "\(\\|\)" ""(car (split-string elm-mod))))) | (cond ((eq type 'command) | (when (commandp (intern elm-fin)) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n"))))) | ((eq type 'function) | (when (not (commandp (intern elm-fin))) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n"))))) | ((eq type 'internal-variable) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n")))) | ((eq type 'nested) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n")))) | (t | (insert (concat ";; \`" elm-fin "\'\n")))))))) `---- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-07-31 on tux Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -pipe -O2' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: fr_FR.UTF-8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t icomplete-mode: t icicle-mode: t delete-selection-mode: t minibuffer-depth-indicate-mode: t auto-image-file-mode: t shell-dirtrack-mode: t partial-completion-mode: t show-paren-mode: t display-battery-mode: t display-time-mode: t diff-auto-refine-mode: t outline-minor-mode: t recentf-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x M-p a C-SPC C-n C-n C-w M-e C-h e s c M-> C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x r s a C-g M-x r e p o r t - e m a c s - b u Recent messages: Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help. [2 times] Parsing BBDB... (frobnicating...done) Loading /home/thierry/.emacs.d/yaoddmuse-cache.el (source)...done Mark set nil Auto-saving...done Mark set [2 times] Quit Computing completion candidates... -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France From unknown Tue Aug 19 21:03:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4427: 23.1; defun* don't work when compiled. Reply-To: Thierry Volpiatto , 4427@debbugs.gnu.org Resent-From: Thierry Volpiatto Original-Sender: news Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Sep 2009 13:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4427 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125293261716733 (code B ref -1); Mon, 14 Sep 2009 13:00:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Sep 2009 12:50:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD, GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8ECoD0M016730 for ; Mon, 14 Sep 2009 05:50:16 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnB0X-0005C6-Kl for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 08:50:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnB0S-00059g-46 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 08:50:13 -0400 Received: from [199.232.76.173] (port=40524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnB0R-00059d-TO for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 08:50:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:55218) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MnB0Q-0008Le-Fm for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 08:50:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MnB0M-0004Wr-Qh for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 14:50:02 +0200 Received: from 121.78.88-79.rev.gaoland.net ([79.88.78.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Sep 2009 14:50:02 +0200 Received: from thierry.volpiatto by 121.78.88-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Sep 2009 14:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Date: Mon, 14 Sep 2009 14:29:15 +0200 Organization: ThierryVolpiatto Lines: 198 Message-ID: <87ljkhwvz8.fsf@tux.homenetwork> References: <87k5016cyf.fsf@tux.homenetwork> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 121.78.88-79.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMjoxNDoyMiswMjowMM7uH/IAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE3OjA4OjQ4KzAxOjAwhqNSRgAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:iWaDS5b9qHFkrnwJBKml5/EWkm4= Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Complete information on this bug (if it is one). Of course when this function is defined as macro, and (eval-when-compile (require 'cl)) is used, the code is evaluated by the byte-compiler and things work as expected. But i wonder why the other "defun*" with &key that are in traverselisp works and specially this function doesn't work. Thierry Volpiatto writes: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, > and to the gnu.emacs.bug news group. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > Hi all, > > 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. > > I wonder why. > It seem that variables coming from key arg and evaluated in a cond clause > don't work when compiled and evaluated from compiled file (.elc). > > Here is the output of: > > (symbol-function 'traverse-auto-document-lisp-buffer) > After loading only .elc file. > > #[(&rest --cl-rest--) "\306>A@.\307>A@.. \2038. @\310>\203!. AA\211.\202.\203Y.\344 > .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \360=\203\222.\354\355.C!!\204\345. > \203\210.\344 > .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \361=\203\270. > \203\256.\344 > .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \362=\203\336. > \203\324.\344 > .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210+.?A\211.?\204... \312\207" [--cl-rest-- type prefix --cl-keys-- boundary-regexp regexp :type :prefix (:type :prefix :allow-other-keys) :allow-other-keys nil error ...] 9 ("/home/thierry/elisp/traverselisp.elc" . 45818)] > > Here is the same after evaluation of .el file or function with C-M x: > > (lambda (&rest --cl-rest--) "Not documented > > (fn &key TYPE PREFIX)" (let* ((type ...) (prefix ...)) (let (...) (while --cl-keys-- ...)) (block traverse-auto-document-lisp-buffer (let* ... ... ... ... ... ...)))) > > So here it is normal and the function work as intended. > When using the function from .elc file, i have no error, the function > just return nil, even with debug-on-error turned on. > > Here the function: > > ,---- > | (defun* traverse-auto-document-lisp-buffer (&key type prefix) > | (let* ((boundary-regexp "^;;=*LIMIT.*") > | (regexp (case type > | ('nested "^ +\(def\\(un\\|subst\\|advice\\)") > | ('command "\(def\\(un\\|subst\\)") > | ('internal-variable "\(defvar") > | ('user-variable "\(defcustom") > | ('faces "\(defface") > | ('function "\(def\\(un\\|subst\\|advice\\)") > | (t (error "Unknow type")))) > | (fn-list (traverse-find-readlines > | (current-buffer) > | regexp > | :insert-fn 'buffer)) > | beg end) > | (insert "\n") (setq beg (point)) > | (save-excursion (when (re-search-forward boundary-regexp) > | (forward-line -1) (setq end (point)))) > | (delete-region beg end) > | (dolist (i fn-list) > | (let* ((elm (cadr i)) > | (elm-mod (replace-regexp-in-string regexp "" elm)) > | (elm-fin (replace-regexp-in-string "\(\\|\)" ""(car (split-string elm-mod))))) > | (cond ((eq type 'command) > | (when (commandp (intern elm-fin)) > | (if prefix > | (when (string-match prefix elm-fin) > | (insert (concat ";; \`" elm-fin "\'\n"))) > | (insert (concat ";; \`" elm-fin "\'\n"))))) > | ((eq type 'function) > | (when (not (commandp (intern elm-fin))) > | (if prefix > | (when (string-match prefix elm-fin) > | (insert (concat ";; \`" elm-fin "\'\n"))) > | (insert (concat ";; \`" elm-fin "\'\n"))))) > | ((eq type 'internal-variable) > | (if prefix > | (when (string-match prefix elm-fin) > | (insert (concat ";; \`" elm-fin "\'\n"))) > | (insert (concat ";; \`" elm-fin "\'\n")))) > | ((eq type 'nested) > | (if prefix > | (when (string-match prefix elm-fin) > | (insert (concat ";; \`" elm-fin "\'\n"))) > | (insert (concat ";; \`" elm-fin "\'\n")))) > | (t > | (insert (concat ";; \`" elm-fin "\'\n")))))))) > `---- > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > If you would like to further debug the crash, please read the file > /usr/share/emacs/23.1/etc/DEBUG for instructions. > > > In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5) > of 2009-07-31 on tux > Windowing system distributor `The X.Org Foundation', version 11.0.10503000 > configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -pipe -O2' 'LDFLAGS=-Wl,-O1'' > > Important settings: > value of $LC_ALL: fr_FR.UTF-8 > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: fr_FR.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default-enable-multibyte-characters: t > > Major mode: Lisp Interaction > > Minor modes in effect: > eldoc-mode: t > icomplete-mode: t > icicle-mode: t > delete-selection-mode: t > minibuffer-depth-indicate-mode: t > auto-image-file-mode: t > shell-dirtrack-mode: t > partial-completion-mode: t > show-paren-mode: t > display-battery-mode: t > display-time-mode: t > diff-auto-refine-mode: t > outline-minor-mode: t > recentf-mode: t > savehist-mode: t > desktop-save-mode: t > tooltip-mode: t > mouse-wheel-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > M-x M-p a > C-SPC C-n C-n C-w M-e C-h e s c M-> > > > > > C-SPC C-n C-n > C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n > C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n > C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n > C-n C-n C-n C-n C-n C-n C-x r s a C-g M-x r e p o r > t - e m a c s - b u > > Recent messages: > Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help. [2 times] > > Parsing BBDB... (frobnicating...done) > Loading /home/thierry/.emacs.d/yaoddmuse-cache.el (source)...done > Mark set > nil > Auto-saving...done > Mark set [2 times] > Quit > Computing completion candidates... -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France From unknown Tue Aug 19 21:03:49 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4427: 23.1; defun* don't work when compiled. Reply-To: Chong Yidong , 4427@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 19 Sep 2009 00:05:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4427 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4427-submit@emacsbugs.donarmstrong.com id=B4427.125331822430941 (code B ref 4427); Sat, 19 Sep 2009 00:05:15 +0000 Received: (at 4427) by emacsbugs.donarmstrong.com; 18 Sep 2009 23:57:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po37.its.yale.edu (pantheon-po37.its.yale.edu [130.132.50.95]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8INv2iZ030922 for <4427@emacsbugs.donarmstrong.com>; Fri, 18 Sep 2009 16:57:04 -0700 Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po37.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n8INuvL7014279 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 18 Sep 2009 19:56:57 -0400 Received: by furry (Postfix, from userid 1000) id 9718FC070; Fri, 18 Sep 2009 19:56:57 -0400 (EDT) From: Chong Yidong To: Thierry Volpiatto Cc: 4427@debbugs.gnu.org Date: Fri, 18 Sep 2009 19:56:57 -0400 Message-ID: <87fxajolh2.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > 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. From lekktu@gmail.com Thu Oct 22 02:35:31 2009 Received: (at control) by emacsbugs.donarmstrong.com; 22 Oct 2009 09:35:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL,MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-fx0-f213.google.com (mail-fx0-f213.google.com [209.85.220.213]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9M9ZTNW004084 for ; Thu, 22 Oct 2009 02:35:31 -0700 Received: by fxm9 with SMTP id 9so9696363fxm.1 for ; Thu, 22 Oct 2009 02:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=8EmqKmTQZFxRHmBqMf0mAHPBq3MFliknc0lztWoJq6Y=; b=HxQYupT4FFltZz1ItMJj0h3XTFYNK5e7ryT0Cek2T3YESYQLNQM8G9V9i2CKiMAEbc EvYuLj8f7w1qApk14qvzihjcYCGQUOU+1DBevO5UhGKLQhzQ6+vBiuihHNGFYaXeeEYe kJYg0CmwEGM5xp9e/Qz4pt4br7Ml4TcpNJkWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Y5ybjjcxlLdLgAFAm7oQwPF4q6enZ/vhDgoBesbKLPsYfKZBy2gNxuVUArd1lZsA9C Mqc9bcUQhekOxrkhuBrM/oRLNjZDm8m0DPtCnEMhvvK6rKfs9H9j6QMJR6VObUwlfUeo 7VB35jQ8OYFrwvpcsbgPdQA8bmjmcb1XFRU14= MIME-Version: 1.0 Received: by 10.239.145.8 with SMTP id q8mr761204hba.122.1256204124158; Thu, 22 Oct 2009 02:35:24 -0700 (PDT) From: Juanma Barranquero Date: Thu, 22 Oct 2009 11:35:04 +0200 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 reassign 4326 emacs,ns merge 4261 4434 merge 1589 3359 4207 merge 3829 4077 tags 4781 + patch tags 4747 + patch tags 4579 + patch tags 4471 + patch tags 4434 + patch tags 4234 + patch tags 4221 + patch tags 4147 + patch tags 4144 + patch tags 4139 + patch tags 4023 + patch tags 4736 + moreinfo unreproducible tags 4547 + notabug tags 4451 + notabug tags 4448 + moreinfo tags 4427 + moreinfo tags 4373 + notabug tags 4360 + notabug tags 4271 + moreinfo tags 4236 + moreinfo tags 4143 + moreinfo unreproducible tags 4120 + moreinfo unreproducible tags 4070 + moreinfo unreproducible severity 4422 wishlist severity 4396 minor severity 4394 minor severity 4341 wishlist severity 4300 minor severity 4263 minor severity 4178 minor severity 4172 wishlist severity 4110 wishlist severity 4056 wishlist close 4772 close 4700 close 4599 close 4515 close 4463 close 4445 close 4395 close 4334 close 4289 close 4219 quit From unknown Tue Aug 19 21:03:49 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4427: 23.1; defun* don't work when compiled. 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 To: Chong Yidong Cc: 4427@debbugs.gnu.org Received: via spool by 4427-submit@debbugs.gnu.org id=B4427.12682544706692 (code B ref 4427); Wed, 10 Mar 2010 20:55:02 +0000 Received: (at 4427) by debbugs.gnu.org; 10 Mar 2010 20:54:30 +0000 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 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 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= Received: by 10.204.5.154 with SMTP id 26mr2486586bkv.62.1268254462989; Wed, 10 Mar 2010 12:54:22 -0800 (PST) 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) From: Thierry Volpiatto Organization: ThierryVolpiatto References: <87fxajolh2.fsf@stupidchicken.com> 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== Date: Wed, 10 Mar 2010 21:50:01 +0100 In-Reply-To: <87fxajolh2.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 18 Sep 2009 19:56:57 -0400") Message-ID: <87mxyfewau.fsf@tux.homenetwork> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) 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/ From unknown Tue Aug 19 21:03:49 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org From: bug-gnu-emacs@gnu.org (GNU bug Tracking System) To: Thierry Volpiatto Subject: bug#4427 closed by Glenn Morris (Re: bug#4427: 23.1; defun* don't work when compiled.) Message-ID: References: <87k5016cyf.fsf@tux.homenetwork> X-Gnu-PR-Message: they-closed 4427 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 4427@debbugs.gnu.org Date: Fri, 12 Mar 2010 03:20:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1268364002-27061-1" This is a multi-part message in MIME format... ------------=_1268364002-27061-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #4427: 23.1; defun* don't work when compiled. It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 4427: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4427 GNU Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1268364002-27061-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4427-done) by debbugs.gnu.org; 12 Mar 2010 03:19:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpvPr-00072C-BH for submit@debbugs.gnu.org; Thu, 11 Mar 2010 22:19:59 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpvPq-000721-CP for 4427-done@debbugs.gnu.org; Thu, 11 Mar 2010 22:19:58 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NpvPm-0007M7-Kb; Thu, 11 Mar 2010 22:19:54 -0500 To: 4427-done@debbugs.gnu.org Subject: Re: bug#4427: 23.1; defun* don't work when compiled. References: <87fxajolh2.fsf@stupidchicken.com> <87mxyfewau.fsf@tux.homenetwork> From: Glenn Morris X-Spook: Rubin USCOI industrial intelligence Treasury national X-Ran: =8m='M$2g#.[X'Ys\vdYrj$I?&zr(>AW?Gbm*MVxDD^q1HCOOdwh-/-Y(o5Mrwuv?W19U! X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 11 Mar 2010 22:19:54 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 4427-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Thierry Volpiatto wrote: > | Loading /home/thierry/tmp/foo.el (source)... > | Load error for /home/thierry/tmp/foo.el: > | (void-function defsubst*) Fixed in emacs-23 branch by adding an autoload cookie for defsubst*. ------------=_1268364002-27061-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 14 Sep 2009 10:30:59 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8EAUvNm024115 for ; Mon, 14 Sep 2009 03:30:58 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mn8pk-00074E-QZ for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mn8pf-00072r-8h for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:55 -0400 Received: from [199.232.76.173] (port=33200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn8pf-00072c-08 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:51 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:56844) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mn8pe-0001PJ-AS for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 06:30:50 -0400 Received: by ewy7 with SMTP id 7so1292574ewy.31 for ; Mon, 14 Sep 2009 03:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:organization :date:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=LVP/Q55ZS8vJGA3Fxp3SyYm8TKY0iwMxtlc81fbqsNw=; b=dpfV7cY6nHP7rIo9BPXsXjj9n7AcQlJpv0zlj00pLFWuSz8BzyfMvgDSuWOA7yiMuN ZIjouLdbU/czGljPYwAdaUj0eStqv9ENgT3ajczelcgN4ssqyspJWKNzydDGJSQ6e0Li oY8aIa3PII7SlBSJwRxuRCL1cACJ7PSI5HIR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:organization:date:message-id:user-agent :mime-version:content-type:content-transfer-encoding; b=DMFe/K3ZFOaBkAXAxB/htsrv4NjHwfS3pyL94DbXP8uWP/v0/yjUVcsZHbnyucYWNF kneBGn4U4biZYSQVXihPnH9q34N2hw7W6ETCktkH2S1/vODQSQVxMqLa++bzZxiiIvH+ O4SxKTZEC7HYQKtUmRlKCuI9llmWzdFgRdkps= Received: by 10.211.131.12 with SMTP id i12mr2964195ebn.97.1252924248873; Mon, 14 Sep 2009 03:30:48 -0700 (PDT) Received: from tux.homenetwork ([79.88.78.121]) by mx.google.com with ESMTPS id 7sm501310eyg.38.2009.09.14.03.30.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Sep 2009 03:30:48 -0700 (PDT) From: Thierry Volpiatto To: bug-gnu-emacs@gnu.org Subject: 23.1; defun* don't work when compiled. Organization: ThierryVolpiatto Date: Mon, 14 Sep 2009 12:24:40 +0200 Message-ID: <87k5016cyf.fsf@tux.homenetwork> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi all, 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. I wonder why. It seem that variables coming from key arg and evaluated in a cond clause don't work when compiled and evaluated from compiled file (.elc). Here is the output of: (symbol-function 'traverse-auto-document-lisp-buffer) After loading only .elc file. --8<---------------cut here---------------start------------->8--- #[(&rest --cl-rest--) "\306>A@.\307>A@.. \2038. @\310>\203!. AA\211.\202.\203Y.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \360=\203\222.\354\355.C!!\204\345. \203\210.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \361=\203\270. \203\256.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345. \362=\203\336. \203\324.\344 .C\"\203\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210\202\345.\356.C\357Qc\210+.?A\211.?\204.. \312\207" [--cl-rest-- type prefix --cl-keys-- boundary-regexp regexp :type :prefix (:type :prefix :allow-other-keys) :allow-other-keys nil error ...] 9 ("/home/thierry/elisp/traverselisp.elc" . 45818)] --8<---------------cut here---------------end--------------->8--- Here is the same after evaluation of .el file or function with C-M x: --8<---------------cut here---------------start------------->8--- (lambda (&rest --cl-rest--) "Not documented (fn &key TYPE PREFIX)" (let* ((type ...) (prefix ...)) (let (...) (while --cl-keys-- ...)) (block traverse-auto-document-lisp-buffer (let* ... ... ... ... ... ...)))) --8<---------------cut here---------------end--------------->8--- So here it is normal and the function work as intended. When using the function from .elc file, i have no error, the function just return nil, even with debug-on-error turned on. Here the function: ,---- | (defun* traverse-auto-document-lisp-buffer (&key type prefix) | (let* ((boundary-regexp "^;;=*LIMIT.*") | (regexp (case type | ('nested "^ +\(def\\(un\\|subst\\|advice\\)") | ('command "\(def\\(un\\|subst\\)") | ('internal-variable "\(defvar") | ('user-variable "\(defcustom") | ('faces "\(defface") | ('function "\(def\\(un\\|subst\\|advice\\)") | (t (error "Unknow type")))) | (fn-list (traverse-find-readlines | (current-buffer) | regexp | :insert-fn 'buffer)) | beg end) | (insert "\n") (setq beg (point)) | (save-excursion (when (re-search-forward boundary-regexp) | (forward-line -1) (setq end (point)))) | (delete-region beg end) | (dolist (i fn-list) | (let* ((elm (cadr i)) | (elm-mod (replace-regexp-in-string regexp "" elm)) | (elm-fin (replace-regexp-in-string "\(\\|\)" ""(car (split-string elm-mod))))) | (cond ((eq type 'command) | (when (commandp (intern elm-fin)) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n"))))) | ((eq type 'function) | (when (not (commandp (intern elm-fin))) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n"))))) | ((eq type 'internal-variable) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n")))) | ((eq type 'nested) | (if prefix | (when (string-match prefix elm-fin) | (insert (concat ";; \`" elm-fin "\'\n"))) | (insert (concat ";; \`" elm-fin "\'\n")))) | (t | (insert (concat ";; \`" elm-fin "\'\n")))))))) `---- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-07-31 on tux Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -pipe -O2' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: fr_FR.UTF-8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t icomplete-mode: t icicle-mode: t delete-selection-mode: t minibuffer-depth-indicate-mode: t auto-image-file-mode: t shell-dirtrack-mode: t partial-completion-mode: t show-paren-mode: t display-battery-mode: t display-time-mode: t diff-auto-refine-mode: t outline-minor-mode: t recentf-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x M-p a C-SPC C-n C-n C-w M-e C-h e s c M-> C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x r s a C-g M-x r e p o r t - e m a c s - b u Recent messages: Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help. [2 times] Parsing BBDB... (frobnicating...done) Loading /home/thierry/.emacs.d/yaoddmuse-cache.el (source)...done Mark set nil Auto-saving...done Mark set [2 times] Quit Computing completion candidates... -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France ------------=_1268364002-27061-1-- From unknown Tue Aug 19 21:03:49 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#4427: 23.1; defun* don't work when compiled. In-Reply-To: <87k5016cyf.fsf@tux.homenetwork> 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: Fri, 12 Mar 2010 07:12: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 To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1268377903677 (code B ref -1); Fri, 12 Mar 2010 07:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2010 07:11:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Npz23-0000Am-Vm for submit@debbugs.gnu.org; Fri, 12 Mar 2010 02:11:42 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Npz1z-0000AX-HG for submit@debbugs.gnu.org; Fri, 12 Mar 2010 02:11:38 -0500 Received: from mx10.gnu.org ([199.232.76.166]:39703) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Npz1w-0006n6-Cg for submit@debbugs.gnu.org; Fri, 12 Mar 2010 02:11:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Npz1v-0006nL-93 for submit@debbugs.gnu.org; Fri, 12 Mar 2010 02:11:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_XBL, UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:33454) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Npz1v-0006nD-4W for submit@debbugs.gnu.org; Fri, 12 Mar 2010 02:11:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Npz1u-00053n-CT for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 02:11:30 -0500 Received: from [140.186.70.92] (port=44250 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npz1r-00052J-7F for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 02:11:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Npz1q-0008DC-3n for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 02:11:26 -0500 Received: from lo.gmane.org ([80.91.229.12]:35779) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Npz1p-0008Cw-UG for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 02:11:26 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Npz1l-0004Uw-QF for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 08:11:21 +0100 Received: from 141.211.85-79.rev.gaoland.net ([79.85.211.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Mar 2010 08:11:21 +0100 Received: from thierry.volpiatto by 141.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Mar 2010 08:11:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Thierry Volpiatto Date: Fri, 12 Mar 2010 08:07:02 +0100 Organization: ThierryVolpiatto Lines: 15 Message-ID: <87zl2erpbd.fsf@tux.homenetwork> References: <87fxajolh2.fsf@stupidchicken.com> <87mxyfewau.fsf@tux.homenetwork> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 141.211.85-79.rev.gaoland.net 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== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:dXtExz+8GIug36RYe6j7VVErXvs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.2 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) Glenn Morris writes: > Thierry Volpiatto wrote: > >> | Loading /home/thierry/tmp/foo.el (source)... >> | Load error for /home/thierry/tmp/foo.el: >> | (void-function defsubst*) > > Fixed in emacs-23 branch by adding an autoload cookie for defsubst*. Nice, thanks. -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/