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: Thu, 09 Jul 2009 18:52:43 +0100 Message-ID: <863a95oiac.fsf@macs.hw.ac.uk> References: <87d48fsoj5.fsf@stupidchicken.com> <86vdm5q399.fsf@macs.hw.ac.uk> <87hbxpg8y3.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=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247163472 24674 80.91.229.12 (9 Jul 2009 18:17:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2009 18:17:52 +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 Thu Jul 09 20:17:44 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 1MOyBj-0007Fa-Ao for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 20:17:43 +0200 Original-Received: from localhost ([127.0.0.1]:57795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOyBi-000191-NE for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 14:17:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOyBd-00018m-4k for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 14:17:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOyBW-000165-Rm for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 14:17:36 -0400 Original-Received: from [199.232.76.173] (port=36326 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOyBW-00015q-LR for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 14:17:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35528) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOyBW-0005uo-62 for bug-gnu-emacs@gnu.org; Thu, 09 Jul 2009 14:17:30 -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 n69IHQoN019219; Thu, 9 Jul 2009 11:17:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n69I049V015512; Thu, 9 Jul 2009 11:00: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: Thu, 09 Jul 2009 18:00: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.124716198814640 (code B ref 458); Thu, 09 Jul 2009 18:00:04 +0000 Original-Received: (at 458) by emacsbugs.donarmstrong.com; 9 Jul 2009 17:53:08 +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.217]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n69Hr2qB014632 for <458@emacsbugs.donarmstrong.com>; Thu, 9 Jul 2009 10:53:04 -0700 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by mail-r.hw.ac.uk with esmtp (Exim 4.54) id 1MOxnZ-0007wY-6D; Thu, 09 Jul 2009 18:52:45 +0100 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:37292 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.69) (envelope-from ) id 1MOxnX-00013Q-Ss; Thu, 09 Jul 2009 18:52:43 +0100 Original-Received: (nullmailer pid 21201 invoked by uid 1001); Thu, 09 Jul 2009 17:52:43 -0000 X-Mail-Via: hwu X-c: 2009-07-09T18:47:43 D 3.1216292740846256 In-Reply-To: <87hbxpg8y3.fsf@stupidchicken.com> (Chong Yidong's message of "Mon\, 06 Jul 2009 10\:52\:35 -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: Thu, 09 Jul 2009 14:17:36 -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:29278 Archived-At: Chong Yidong writes: > Joe Wells writes: > >> 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. > > Could you find out which package is performing this noisy loading? > Normally, packages should use `require', which does not emit messages > when loading. Sorry, don't have time to track this down. Other packages have other problems. For example, on another system, I have a Emacs script that emits these messages: Loading /usr/share/emacs/site-lisp/site-start.d/auctex-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/auctex.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/ess-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/logo-mode.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)= ... Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source).= .. Loading /usr/share/emacs/site-lisp/site-start.d/preview-latex.el (source)= ... Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (so= urce)... Loading /usr/local/share/emacs/site-lisp/sml-mode/sml-mode-startup.el (so= urce)... Loading subst-ksc... Loading subst-gb2312... Loading subst-big5... Loading subst-jis... Loading quail/latin-ltx... =20=20 =20=20 =20=20 Loading vc-cvs... In this case, a bunch of extra loading messages get printed by site-specific initialization files that come with extra packages (from Fedora). (By the way, I don't know what is printing the 3 blank lines in the middle of the messages above.) In general, it would be nice if there was a global variable which when non-nil means =E2=80=9Cdon't print any loading messages at all right now=E2= =80=9D and if using the --script command-line option set this variable to t. I hope this message helps. --=20 Joe --=20 Heriot-Watt University is a Scottish charity registered under charity number SC000278.