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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Stefan Kangas <stefan@HIDDEN>; dated Sat, 21 Aug 2021 16:08:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 50147 <at> debbugs.gnu.org:


Received: (at 50147) by debbugs.gnu.org; 22 Aug 2021 14:46:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 22 10:46:58 2021
Received: from localhost ([127.0.0.1]:39689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mHokQ-0005dZ-Ho
	for submit <at> debbugs.gnu.org; Sun, 22 Aug 2021 10:46:58 -0400
Received: from quimby.gnus.org ([95.216.78.240]:34574)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mHokK-0005d8-Q1
 for 50147 <at> debbugs.gnu.org; Sun, 22 Aug 2021 10:46:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=GhH9+pFvXf/blfahARxHikpFy/7BjUizL0Mnd7M3E9o=; b=cHI+ZJy1ju0/jLxMSCuaeWZcMX
 UAJQdO62mGDZ8DiXvJnN2SEnTsRy3bnLnXGvdwQ9Qsi9b4wZStadyOzVrkp0zsDxkHP/PRGWlEu/p
 HjG9HgBe5+wT9hoYy70bBdmFSaBD6OG70z9D55gPbNW4QfLazsjuk+CRvxv9+EbpuaPk=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mHok9-0007qY-VE; Sun, 22 Aug 2021 16:46:42 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#50147: Wishlist: Display mode name in mode line tooltip
References: <CADwFkmmZr2DjSovDwujZhRg-nCiMGPq22nQn9x4RNKeUW_Q46Q@HIDDEN>
Date: Sun, 22 Aug 2021 16:46:34 +0200
In-Reply-To: <CADwFkmmZr2DjSovDwujZhRg-nCiMGPq22nQn9x4RNKeUW_Q46Q@HIDDEN>
 (Stefan Kangas's message of "Sat, 21 Aug 2021 18:07:35 +0200")
Message-ID: <874kbhzgdx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Kangas <stefan@HIDDEN> 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. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 50147
Cc: 50147 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefan@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#50147; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Aug 2021 16:07:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 21 12:07:52 2021
Received: from localhost ([127.0.0.1]:37732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mHTXE-0006FD-1K
	for submit <at> debbugs.gnu.org; Sat, 21 Aug 2021 12:07:52 -0400
Received: from lists.gnu.org ([209.51.188.17]:32930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1mHTXC-0006F6-Dm
 for submit <at> debbugs.gnu.org; Sat, 21 Aug 2021 12:07:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51910)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1mHTXC-0002sF-9l
 for bug-gnu-emacs@HIDDEN; Sat, 21 Aug 2021 12:07:50 -0400
Received: from mail-pf1-f176.google.com ([209.85.210.176]:33610)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1mHTXA-0000Nf-Qt
 for bug-gnu-emacs@HIDDEN; Sat, 21 Aug 2021 12:07:49 -0400
Received: by mail-pf1-f176.google.com with SMTP id w68so11406168pfd.0
 for <bug-gnu-emacs@HIDDEN>; Sat, 21 Aug 2021 09:07:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=nYvRZGAtRbKaHa/9mTDF1Y2e2eu/52vkdXSBBaIUF8E=;
 b=bWRMJOnbKbwCEEZOZJpMSCPnG3fmQ0YUdgrwvmcqL+EaktxevH+05yWyn/+OQ2UHww
 7fQyw0EOS4NLRDLIjS+MCUbOWuRIVMMYVAFV+G/v8GG7+5bKuJiKHvfRd3aTJA9sZJoF
 410pxDyBtJhm/5NyO69oMfsgC9L9CP5s/0ki5vawpCB93Otnq/0dkX4LsQ02iQcC+5G+
 4GoQ6fiOuY+VQw1uzpST/gLt0W+rSFmK5Vkj7MxqGGHFhxIEgSbgq33KNetVfbcDgBwq
 q6gqO/dqYG7O5fV4KTjW45ShLEa/Lva4Hun5SWb51pH6uqGs1kndcZ/BDw0VS9XF5Dto
 YTyg==
X-Gm-Message-State: AOAM533Uiul7yOblHq6+WV/eX16PJyk/KlCJ0jUIHyKaSTbKySlCqysl
 MSz1bwDSTfaWqGyXHs6h800RdSR72U6K0z5Jk+QvMge5
X-Google-Smtp-Source: ABdhPJyrc/v4cOEIYXBpLZOmU4VuLoCnZSCTaPDJ8o4UP5p1u1a1/vgP67Wln6+w2QhlNhMSZPTUl+3kTwGOWYG1l+k=
X-Received: by 2002:a63:d849:: with SMTP id k9mr24494422pgj.67.1629562066871; 
 Sat, 21 Aug 2021 09:07:46 -0700 (PDT)
MIME-Version: 1.0
From: Stefan Kangas <stefan@HIDDEN>
Date: Sat, 21 Aug 2021 18:07:35 +0200
Message-ID: <CADwFkmmZr2DjSovDwujZhRg-nCiMGPq22nQn9x4RNKeUW_Q46Q@HIDDEN>
Subject: Wishlist: Display mode name in mode line tooltip
To: Bug reports for GNU Emacs <bug-gnu-emacs@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.210.176;
 envelope-from=stefankangas@HIDDEN; helo=mail-pf1-f176.google.com
X-Spam_score_int: 0
X-Spam_score: -0.0
X-Spam_bar: /
X-Spam_report: (-0.0 / 5.0 requ) BAYES_05=-0.5,
 FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

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.




Acknowledgement sent to Stefan Kangas <stefan@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#50147; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 22 Aug 2021 15:00:02 UTC

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