GNU bug report logs - #78881
[PATCH] New command 'toggle-mode-line-visibility'

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Mon, 23 Jun 2025 19:22:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 78881 <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78881 <at> debbugs.gnu.org
Subject: Re: bug#78881: [PATCH] New command 'toggle-mode-line-visibility'
Date: Wed, 25 Jun 2025 13:00:35 -0600
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

[...]

>> >> +The mode line is hidden from every major mode change in current buffer.
>> >
>> > This sentence confused me.  What did you mean to say here?
>> 
>> e.g. If you call `toggle-mode-line-visibility` in the scratch buffer and
>> later call `text-mode` in the same buffer, the mode line will become
>> visible again, which is not convenient since this command is meant to
>> enable/disable the mode line per buffer, not per major mode.
>
> So you want to say this:
>
>   Changing the major mode will not display the hidden mode line.
>
> Or maybe simply remove this part: why would someone assume that
> another major mode will override this?  If they won't expect that,
> you don't have to explain that it won't happen.

Agree, I've removed that part.

>> +(define-minor-mode toggle-mode-line-visibility
>> +  "Toggle mode line visibility in current buffer.
>
> I don't see why "toggle" should be in the name.  How about
> mode-line-invisible-mode ?

Fine, I've renamed it to `mode-line-invisible-mode`.

> or hide-mode-line-mode ?

I would have liked to use that name, but there is already a package that
has it.  So I prefer to avoid potential bugs due to the name.

[0001-New-command-mode-line-invisible-mode.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

This bug report was last modified 41 days ago.

Previous Next


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