From unknown Sat Aug 16 18:40:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3283: Bug in Emacs' batch mode Reply-To: Kevin Rodgers , 3283@debbugs.gnu.org Resent-From: Kevin Rodgers Original-Sender: news Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 14 May 2009 05:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3283 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124227762510853 (code B ref -1); Thu, 14 May 2009 05:15:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 May 2009 05:07:05 +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.8 required=4.0 tests=AWL 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.13.8/8.13.8/Debian-3) with ESMTP id n4E56xTk010839 for ; Wed, 13 May 2009 22:07:02 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4T9n-0005LC-3C for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 01:06:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4T9h-0005Ix-21 for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 01:06:57 -0400 Received: from [199.232.76.173] (port=59557 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4T9g-0005Iu-Ti for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 01:06:52 -0400 Received: from main.gmane.org ([80.91.229.2]:48716 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M4T9g-00053K-9r for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 01:06:52 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M4T9d-0006am-C3 for bug-gnu-emacs@gnu.org; Thu, 14 May 2009 05:06:49 +0000 Received: from c-67-190-36-32.hsd1.co.comcast.net ([67.190.36.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 May 2009 05:06:49 +0000 Received: from kevin.d.rodgers by c-67-190-36-32.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 May 2009 05:06:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Date: Wed, 13 May 2009 23:06:26 -0600 Lines: 40 Message-ID: References: <4e536696-1063-43c1-871f-588fe59efb5b@k19g2000prh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-190-36-32.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) In-Reply-To: <4e536696-1063-43c1-871f-588fe59efb5b@k19g2000prh.googlegroups.com> Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Davin Pearson wrote: > When I run a file in Emacs' batch mode like so: > > emacs --batch --load foo.el > > It prints out the following information: > > -*- mode: compilation; default-directory: "~/dlisp/" -*- > Compilation started at Tue May 12 11:06:41 > > make foo > emacs --batch --load foo.el > Loading cl... > Loading cl-macs... > > Compilation finished at Tue May 12 11:06:43 > Compilation took 2 seconds > > This is a bug because I have redefined the function message to do > nothing. Therefore it shouldn't print out "Loading cl..." and > "Loading cl-macs". What follows is the contents of the file foo.el: > > (defun message (format-string &rest args) (interactive)) > > (load-library "cl") > (load-library "cl-macs") > (require 'cl-19 "cl") > (require 'cl) > > ;; batch code goes here message is a built-in function in `C source code'. (message format-string &rest args) There are calls to Fmessage() in Emacs' C source code which do not go through the `message' Lisp symbol. -- Kevin Rodgers Denver, Colorado, USA From cyd@stupidchicken.com Thu May 14 12:41:35 2009 Received: (at control) by emacsbugs.donarmstrong.com; 14 May 2009 19:41:35 +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=-1.9 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4EJfWsv022676 for ; Thu, 14 May 2009 12:41:33 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 84EAF57E24D; Thu, 14 May 2009 15:41:46 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 3283 Date: Thu, 14 May 2009 15:41:46 -0400 Message-ID: <87d4abii9x.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 3283 thanks From unknown Sat Aug 16 18:40:20 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3283: Bug in Emacs' batch mode Reply-To: Kevin Rodgers , 3283@debbugs.gnu.org Resent-From: Kevin Rodgers Original-Sender: news Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 22 May 2009 04:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3283 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12429677699517 (code B ref -1); Fri, 22 May 2009 04:55:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 22 May 2009 04:49:29 +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.4 required=4.0 tests=AWL,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.13.8/8.13.8/Debian-3) with ESMTP id n4M4nNFV009505 for ; Thu, 21 May 2009 21:49:25 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7Mh9-0007MZ-9F for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:49:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Mh3-0007II-NG for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:49:22 -0400 Received: from [199.232.76.173] (port=36357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Mh3-0007Hy-FD for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:49:17 -0400 Received: from main.gmane.org ([80.91.229.2]:40662 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7Mh3-000889-3I for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:49:17 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M7Mgt-0005BI-UZ for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 04:49:07 +0000 Received: from c-67-190-36-32.hsd1.co.comcast.net ([67.190.36.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 04:49:07 +0000 Received: from kevin.d.rodgers by c-67-190-36-32.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 04:49:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Date: Thu, 21 May 2009 22:48:58 -0600 Lines: 14 Message-ID: References: <4e536696-1063-43c1-871f-588fe59efb5b@k19g2000prh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-190-36-32.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) In-Reply-To: Sender: news X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Davin Pearson wrote: > On May 14, 5:06 pm, Kevin Rodgers wrote: >> There are calls to Fmessage() in Emacs' C source code which do not go >> through the `message' Lisp symbol. > > Isn't that a bug, since it seems reasonable to redefine message to a > do-nothing function? There are many calls to Ffoo() functions in Emacs' C source code which do not go through the `foo' Lisp symbols. Are they all bugs? -- Kevin Rodgers Denver, Colorado, USA