GNU bug report logs - #4237
23.1; --script prints loading messages

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Sat, 22 Aug 2009 20:05:05 UTC

Severity: wishlist

Tags: patch

Merged with 458

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4237 in the body.
You can then email your comments to 4237 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4237; Package emacs. (Sat, 22 Aug 2009 20:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Tromey <tromey <at> redhat.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 22 Aug 2009 20:05:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Tom Tromey <tromey <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; --script prints loading messages
Date: Sat, 22 Aug 2009 13:57:48 -0600
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 <at> 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:


I wrote a script in elisp that I run with "emacs --script".
It prints a lot of stuff before the script even starts:

Loading /usr/share/emacs/site-lisp/site-start.d/bbdb-mode-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/git-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/gnuplot-init.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/rpm-spec-mode-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/vm-mode-init.el (source)...
Loading /usr/share/emacs/site-lisp/site-start.d/w3m-init.el (source)...


I think that --script would be nicer if, by default, messages emanating
from Emacs were suppressed; only messages from my script should be
emitted.

For debugging purposes a --verbose flag or the like might help.


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 (i386-redhat-linux-gnu, GTK+ Version 2.16.5)
 of 2009-08-03 on x86-5.fedora.phx.redhat.com
Windowing system distributor `The X.Org Foundation', version 11.0.10601901
configured using `configure  '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables''

Important settings:
  value of $LC_ALL: nil
  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: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  highlight-changes-visible-mode: t
  flyspell-mode: t
  eldoc-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-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-f M-f M-b M-b M-d <M-backspace> <M-backspace> <M-backspace> 
C-z o C-p C-p C-z o C-a C-p C-p C-p C-SPC C-n C-n M-w 
C-z o M-< C-u C-n C-n C-n C-y C-p C-p C-e C-k SPC C-e 
M-b M-b M-b M-b M-f C-f SPC P <backspace> <backspace> 
P _ S-SPC ( C-e M-b M-d C-e ) ; C-x C-s C-z o C-x C-s 
C-u <f9> C-x b * g i <tab> <return> C-x 1 C-u <f9> 
<f9> C-SPC C-u C-n C-n C-n C-n C-w <f9> C-x 1 C-c b 
C-x b * g i <tab> <return> C-z o C-x s y C-c c <return> 
C-x o C-x 1 M-> C-z o <help-echo> C-c b C-g C-u <f9> 
C-x C-f x - <tab> <return> C-v C-l C-u C-n C-u C-n 
<tab> C-d C-d C-d C-e C-f C-f C-x C-s C-z o C-c c M-p 
<return> C-x b * s h <tab> <return> C-c C-o M-p <return> 
<f10> <switch-frame> <switch-frame> <f10> <f10> <f10> 
<f10> <f10> I SPC t h i n k SPC w e SPC w a n t SPC 
i t SPC k i n d SPC o f SPC s o o n <return> m a y 
b e SPC e v e n SPC t h i s SPC w e e k e n d <return> 
b e o r e SPC t h C-a C-f C-f e <backspace> f C-e e 
SPC e g g l <backspace> p l a n t SPC g o e s SPC b 
a d <return> <f10> <f10> <f10> C-c C-g C-x b * c o 
m <tab> <return> C-c c M-p <return> M-> C-x b <return> 
M-v M-v M-v M-{ M-v M-v C-v C-z o M-x r e p o r t - 
e m <tab> <return> b <tab> <return>

Recent messages:
Quit
Saving file /home/tromey/gnu/Emacs/git-emacs/emacs/src/x-defvar.el...
Wrote /home/tromey/gnu/Emacs/git-emacs/emacs/src/x-defvar.el
(No files need saving)
Compilation finished
History item: 1
(No files need saving)
Mark set
compilation-next-error: Moved back before first error
Making completion list...

Tom




Forcibly Merged 458 4237. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sat, 22 Aug 2009 20:20:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4237; Package emacs. (Sun, 23 Aug 2009 20:40:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 23 Aug 2009 20:40:07 GMT) Full text and rfc822 format available.

Message #12 received at 4237 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Aaron S. Hawley" <aaron.s.hawley <at> gmail.com>
To: 4237 <at> debbugs.gnu.org
Subject: Re: 23.1; --script prints loading messages
Date: Sun, 23 Aug 2009 16:37:28 -0400
I'm not an Emacs developer, but want to make a few comments.

I think Emacs does a pretty good job of keeping quiet.  I can
understand the frustration.  Especially because I have used Fedora and
seen the same messages.  When I've needed to use --batch (same as
--script), I would simply add the -Q or -q options to avoid seeing
such messages.  This had the potential secondary benefit of optimizing
the startup time for the Emacs batch process I was working on, as
well.

Perhaps, Emacs could be changed to mute messages that are part of the
site file or the init file when the --script option is used -- which
is the actual request.

But perhaps people interested in writing Emacs Lisp scripts should be
told to be especially careful to keep their site and user init files
quiet.

For example, the site-run-file file included with Emacs for Fedora
GNU/Linux  could be fixed:

--- site-start.el	09 Sep 2004 00:37:38 -0400	1.9
+++ site-start.el	23 Aug 2009 16:07:17 -0400	
@@ -1,5 +1,5 @@
 ;;; loaded before user's ".emacs" file and default.el

 ;; load ".el" files in "/usr/share/emacs/site-lisp/site-start.d/" on startup
-(mapc 'load
+(mapc (lambda (f) (load f nil 'nomessage))
       (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.el\\'"))



bug closed, send any further explanations to 458 <at> debbugs.gnu.org and Kazuo YAGI <kyagi <at> miraclelinux.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 11 Apr 2012 12:18:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 May 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.