From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs Subject: bug#458: [PATCH] Restrain the load message when emacs running with --script option Date: Mon, 06 Jul 2009 15:45:22 +0100 Message-ID: <86vdm5q399.fsf@macs.hw.ac.uk> References: <87d48fsoj5.fsf@stupidchicken.com> Reply-To: Joe Wells , 458@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246892785 7187 80.91.229.12 (6 Jul 2009 15:06:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jul 2009 15:06:25 +0000 (UTC) Cc: Kazuo YAGI , 458@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 06 17:06:17 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 1MNplp-00082R-27 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jul 2009 17:06:17 +0200 Original-Received: from localhost ([127.0.0.1]:43314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNplo-0004vh-FV for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jul 2009 11:06:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNpdP-0007To-Jt for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2009 10:57:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNpdK-0007Qf-Co for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2009 10:57:34 -0400 Original-Received: from [199.232.76.173] (port=55064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNpdK-0007QU-6Y for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2009 10:57:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51903) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNpdJ-0007Y2-In for bug-gnu-emacs@gnu.org; Mon, 06 Jul 2009 10:57:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n66EvQQq013085; Mon, 6 Jul 2009 07:57:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n66Eo4XM011612; Mon, 6 Jul 2009 07:50:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Joe Wells Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 06 Jul 2009 14:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 458 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by 458-submit@emacsbugs.donarmstrong.com id=B458.124689155011054 (code B ref 458); Mon, 06 Jul 2009 14:50:04 +0000 Original-Received: (at 458) by emacsbugs.donarmstrong.com; 6 Jul 2009 14:45:50 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-r.hw.ac.uk (mail-r.hw.ac.uk [137.195.101.215]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n66EjidH011041 for <458@emacsbugs.donarmstrong.com>; Mon, 6 Jul 2009 07:45:46 -0700 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by mail-r.hw.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MNpRd-0003t7-Cz; Mon, 06 Jul 2009 15:45:25 +0100 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:52281 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.69) (envelope-from ) id 1MNpRc-0005UM-2l; Mon, 06 Jul 2009 15:45:24 +0100 Original-Received: (nullmailer pid 16780 invoked by uid 1001); Mon, 06 Jul 2009 14:45:22 -0000 X-Mail-Via: hwu X-c: 2009-07-06T15:40:22 Z 1.3956516187972738 In-Reply-To: <87d48fsoj5.fsf@stupidchicken.com> (Chong Yidong's message of "Sun\, 05 Jul 2009 01\:10\:38 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) SMTP-Host: localhost SMTP-Port: 4025 X-HW-MailScanner-Information: Please contact the HW Helpdesk for more information X-HW-MailScanner: Found to be clean X-HW-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-2.599, required 5, autolearn=not spam, BAYES_00 -2.60) X-HW-MailScanner-From: jbw@macs.hw.ac.uk X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 06 Jul 2009 10:57:34 -0400 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:29205 Archived-At: Chong Yidong writes: >> This is a very simple patch for "src/lread.c" to restrain emacs to >> printing the load message when running with --script option. > > Could you explain why this is a good thing? If the load message is not > desired, the lisp code should call `load' with a NOERROR argument, or > use `require'. For example, I have an Emacs script that prints these messages in the middle of its run: Loading subst-ksc... Loading subst-gb2312... Loading subst-big5... Loading subst-jis... These are not files I loaded directly. Some package which is not under the control of ordinary users is loading them. It is this kind of message that needs to be silenced. I hope this helps. -- Joe P.S. I'm not entirely sure why I got CC-ed on this message, but I'm happy to comment on it! -- Heriot-Watt University is a Scottish charity registered under charity number SC000278.