From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Date: Fri, 15 May 2020 13:15:50 +0300 Message-ID: <83ftc133mx.fsf@gnu.org> References: <87v9ky9p6o.fsf@mail.linkov.net> <831rnl4s0x.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129173"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41250@debbugs.gnu.org, juri@linkov.net To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 12:17:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZXOw-000XQu-Cy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 12:17:10 +0200 Original-Received: from localhost ([::1]:42626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZXOu-0006dV-WC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 06:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZXOo-0006cm-FI for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 06:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZXOo-0003AP-6h for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZXOo-0005aR-31 for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs Original-Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158953777321412 (code B ref 41250); Fri, 15 May 2020 10:17:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 15 May 2020 10:16:13 +0000 Original-Received: from localhost ([127.0.0.1]:35905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXO1-0005ZH-ER for submit@debbugs.gnu.org; Fri, 15 May 2020 06:16:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXNz-0005Z6-TC for 41250@debbugs.gnu.org; Fri, 15 May 2020 06:16:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59344) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZXNt-0002jd-IR; Fri, 15 May 2020 06:16:05 -0400 Original-Received: from [176.228.60.248] (port=1602 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZXNs-0006FM-3q; Fri, 15 May 2020 06:16:04 -0400 In-Reply-To: (message from Arthur Miller on Fri, 15 May 2020 10:40:34 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180305 Archived-At: > From: Arthur Miller > Cc: Juri Linkov , 41250@debbugs.gnu.org > Date: Fri, 15 May 2020 10:40:34 +0200 > > > That sounds better. Bonus points for arranging a tooltip that would > > show the full string when the mouse is over that part of the mode > > line. > > Currently, if I disable ls-switches, it displays just "(Dired)" on > modeline, as I coded in my patch. When mouse is over it displays > help-tooltip, ("Major mode", "Mouse1 - ..." etc). Is it maybe better to > put ls-switches as a submenu to pop-up menu that appears when one click > with mouse button1? Or how do you imagine the tooltip - to replace one > with help or soemthing else? Figuring this out is part of the job, I guess. One possibility would be to show the tooltip only when the imaginary defcustom is non-nil, i.e. when the user expressed his/her desire to see the switches, but there's no space to show them in their entirety. Maybe there are other possibilities, I didn't think long enough about this to tell. As for the mode tooltip, I think you could work around the problem by making the switches tooltip pop up only on the partial text of the switches, not on the mode string itself.