GNU bug report logs - #50147
Wishlist: Display mode name in mode line tooltip

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Sat, 21 Aug 2021 16:08:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 50147 AT debbugs.gnu.org.

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-gnu-emacs <at> gnu.org:
bug#50147; Package emacs. (Sat, 21 Aug 2021 16:08:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefan <at> marxist.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 21 Aug 2021 16:08:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Bug reports for GNU Emacs <bug-gnu-emacs <at> gnu.org>
Subject: Wishlist: Display mode name in mode line tooltip
Date: Sat, 21 Aug 2021 18:07:35 +0200
Severity: wishlist

When I hover over the major and minor mode names in the mode line, the
tooltip says "Minor mode" or "Major mode".

It would be useful if it could display the full mode name in the tooltip.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50147; Package emacs. (Sun, 22 Aug 2021 14:47:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50147 <at> debbugs.gnu.org
Subject: Re: bug#50147: Wishlist: Display mode name in mode line tooltip
Date: Sun, 22 Aug 2021 16:46:34 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> When I hover over the major and minor mode names in the mode line, the
> tooltip says "Minor mode" or "Major mode".
>
> It would be useful if it could display the full mode name in the tooltip.

I think so, too.  Today those things are just constant strings -- it'd
be nice to be able to add this in a non-consing way (i.e., without
having to create a new big-ish string every time we display the mode
line).

Here's the current code:

	  `(:propertize ("" mode-name)
			help-echo "Major mode\n\
mouse-1: Display major mode menu\n\
mouse-2: Show help for major mode\n\
mouse-3: Toggle minor modes"
			mouse-face mode-line-highlight
			local-map ,mode-line-major-mode-keymap)

This is quite careful to not create any garbage.

Hm...  perhaps we could just make the help-echo point to a function
instead?  That should have no performance impact, I think.

	  '("" mode-line-process)
	  `(:propertize ("" minor-mode-alist)
			mouse-face mode-line-highlight
			help-echo "Minor mode\n\
mouse-1: Display minor mode menu\n\
mouse-2: Show help for minor mode\n\
mouse-3: Toggle minor modes"
			local-map ,mode-line-minor-mode-keymap)

The minor modes are done in one go, though, so that'd have to be
changed?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 300 days ago.

Previous Next


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