From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.bugs Subject: Bug in Emacs' batch mode Date: Mon, 11 May 2009 16:09:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4e536696-1063-43c1-871f-588fe59efb5b@k19g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242085224 22421 80.91.229.12 (11 May 2009 23:40:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 23:40:24 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 12 01:40:14 2009 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.50) id 1M3f6T-0003Aj-Ui for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2009 01:40:14 +0200 Original-Received: from localhost ([127.0.0.1]:59374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3f6T-0008Ek-4q for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 May 2009 19:40:13 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k19g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 29 Original-NNTP-Posting-Host: 60.234.132.53 Original-X-Trace: posting.google.com 1242083343 28311 127.0.0.1 (11 May 2009 23:09:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 May 2009 23:09:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k19g2000prh.googlegroups.com; posting-host=60.234.132.53; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.bug:55785 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:27841 Archived-At: 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