On Aug 2, 2025, at 9:51 AM, Sean Devlin <spd@toadstyle.org> wrote:
On Aug 2, 2025, at 1:33 AM, Eli Zaretskii <eliz@gnu.org> wrote:
From: Sean Devlin <spd@toadstyle.org>
Date: Fri, 1 Aug 2025 17:15:36 -0500
This is a patch adding a new user option to suppress Calc’s startup
message.
By default, Calc prints a message like this during startup:
"Welcome to the GNU Emacs Calculator! Press ? or M-x calc-help-prefix
for help, q to quit"
I find this a bit distracting, so I’d like to be able to silence it. The
attached patch adds an option to allow this along with a small test
harness and documentation in the NEWS file.
Please let me know if any changes are needed to the patch.
Thanks.
Christopher, any comments? (I hope you don't mind being involved in
maintenance of Calc by way of reviewing patches of others.)
From 1ad1f17b6c9326ffc009c6de5c5f2b9929014f52 Mon Sep 17 00:00:00 2001
From: Sean Devlin <spd@toadstyle.org>
Date: Fri, 1 Aug 2025 17:05:48 -0500
Subject: [PATCH] New user option to inhibit Calc startup message
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* etc/NEWS: Document the new option.
* lisp/calc/calc.el (calc-inhibit-startup-message): New option to
inhibit Calc’s startup message.
(calc): Respect the option in Calc’s startup code.
* test/lisp/calc/calc-tests.el (ert): Require ert-x for
'ert-with-message-capture'.
(calc-inhibit-startup-message): Test the new user option.
Should this new option be in the Calc manual as well? If you agree
and send an updated patch for that, then please (a) mention the bug
number in the commit log message, and (b) mark the NEWS entry as
"+++", to indicate that the relevant manuals have been updated.
Hi Eli,I’ve taken a stab at this. Please see the attached patch, and let me know if thelanguage or formatting need any revision.Thanks!<0001-Add-user-option-to-inhibit-Calc-startup-message.patch>
Wait, try this one instead. I had forgotten to add the “+++” and amend the commit log.