- Package:
- emacsen-common
- Source:
- emacsen-common
- Submitter:
- Michael Hoffman
- Date:
- 2025-02-27 20:15:02 UTC
- Severity:
- normal
- Tags:
Dear Maintainer, Using `emacs -batch` is noisy, which means that it is easier to miss warnings and errors in `emacs -batch -f batch-byte-compile` `emacs -batch` on my system produces: ``` Loading /etc/emacs/site-start.d/00debian.el (source)... Loading /etc/emacs/site-start.d/50auctex.el (source)... Loading /usr/share/emacs/site-lisp/auctex.el (source)... Loading /usr/share/emacs/site-lisp/preview-latex.el (source)... Loading /etc/emacs/site-start.d/50autoconf.el (source)... Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)... Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)... Loading /etc/emacs/site-start.d/50festival.el (source)... Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)... Loading /usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el (source)... Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)... Loading /etc/emacs/site-start.d/50latexmk.el (source)... Loading /etc/emacs/site-start.d/50mailutils-mh.el (source)... Loading /etc/emacs/site-start.d/50mu4e.el (source)... Loading /etc/emacs/site-start.d/50psvn.el (source)... Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)... Loading /etc/emacs/site-start.d/60hyperspec.el (source)... ``` I would expect no output, which is what I get using Emacs on other systems. Recommended fix: editing function `debian-run-directories` in /usr/share/emacsen-common/debian-startup.el Change `(load file nil)` to `(load file nil t)`. This will set the `nomessage` argument for function `load` and therefore silence these messages.
This bug still persists, and the attached patch should fix it while still printing informative messages in interactive mode. I might raise the severity to "serious" at some point since the stray output renders GNU Emacs unsuitable as a script interpreter, thus breaking it. Regards.
I would prefer `(load file nil t)` to `(load file nil noninteractive)` as even in interactive mode, extra output likes this makes it more difficult to notice actual warnings or errors that might need attention. But either way would be a big improvement. Michael
1. plus-one-and-bump
2. FWIW, I opened bug/RFE #1099027 today to cover the same issue
in dictionaries-common.
@Michael, I guess something similar probably would be
necessary for file (from your example output)
/etc/emacs/site-start.d/50latex-cjk-common.el loading
/usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el.
3. If the maintainers of emacsen-common agree that the load
messages should be better switched off, probably a notice in
/usr/share/doc/emacsen-common/debian-emacs-policy.gz
would help other package maintainers. Like this:
10) Use of load in site-start.d and dependent files
If a plain (load "some-package") is actually required for
one reason or other, you should use in fact something
along the lines of
(load "some-package" nil t)
That helps keeping the message noise down, in particular
during Emacs batch runs. See als bug #979982. Should a
user really need the load messages, most notably for
debugging purposes, she can set force-load-messages to a
non-nil value in her early initialization file.