From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.bugs Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Date: Fri, 15 May 2020 12:50:49 +0200 Message-ID: References: <87v9ky9p6o.fsf@mail.linkov.net> <831rnl4s0x.fsf@gnu.org> <83ftc133mx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="23576"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41250@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 12:52:13 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 1jZXwq-0005zF-7Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 12:52:12 +0200 Original-Received: from localhost ([::1]:56578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZXwp-0007dU-AA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 06:52:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZXwg-0007aM-5j for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 06:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZXwf-0004n6-Sd for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 06:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZXwf-0006X5-RG for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 06:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 10:52:01 +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.158953986825036 (code B ref 41250); Fri, 15 May 2020 10:52:01 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 15 May 2020 10:51:08 +0000 Original-Received: from localhost ([127.0.0.1]:35954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXvn-0006Vj-Q6 for submit@debbugs.gnu.org; Fri, 15 May 2020 06:51:08 -0400 Original-Received: from mail-oln040092069105.outbound.protection.outlook.com ([40.92.69.105]:32322 helo=EUR02-VE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXvi-0006V9-Mj for 41250@debbugs.gnu.org; Fri, 15 May 2020 06:51:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PuzuSYWURj8QwRJmF9wDsrZE/LGDqKgjquhbBFpWx0LPOZ3JaFMF5YHXFbmDvSIgEJ6RssqvR2nTWlfjQVTujO47zcDNavZ7YX3wRULHoyJ0jVeAMTq/AWqTbfE5h3wcTXoHZeSjlnk25R8rAA1OTNu/MYIpQ0ksB+eEPI1aZb2Gs2K8gjxOKdpO4lTs+ONw+NI0g04LnzZKqPSGY09l78YQzfutOjDI7etBktys7KZ3uroRz2gUxr1+D0y10T9GpIOJb0s4GNr21DCxgNObFXtI3aBT3gOKwLsdMF1JZQoTNBr2OZePfcuByYTmAWTEBrDWVMyUaZ9NHPAo85go/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OCs7Ctn+D8eBYUBjwYuD8jRpewTZgx+jzX6jiCRtNvU=; b=fEr0ubl5vX09tA6Ck+JsJZ+a+Phs8dl13UUYHBE5SeUxIiqO5VAPgPBrqU28cDFeM93GpReXWgbVL7NBeRpiv2UIhnR0OE0xZS1nk3qsV6bNO4ijr3fUE6E4NyboEPw2TdKq/D+hIgM0IKv4N3Z8vNpyTcyo6bAehDVzaJpuZthT0EN7ayQk6nVu671JxE1pIt7D2Zm/zPQr4tDaJKUbpPc4UF9ZMGVf6rchSUv85s9iNM4z6hJGOerxfSK1X3QQrTaSlw/jLeLE0qVZFOIJODgDNjekvj7o4My2iKTYXOiv54CvHWV+fqWK80WsXk5v3DbxGREYUL7E5xbbGhaCbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=live.com; dmarc=pass action=none header.from=live.com; dkim=pass header.d=live.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OCs7Ctn+D8eBYUBjwYuD8jRpewTZgx+jzX6jiCRtNvU=; b=dxARGhkkoKiU5cN6ghLXYYumvGmARBD5cnIkKijjys9+yOqMJZcbmrPou47ewcaxmb3d673SphvYakxtQFvzv5J4PtAcyIzWg3aDnPRRijv1fZTINxWpMBsB7ExZmfLsyS+5PcMHWC3lUzt8rHIZIlD7QChvm7L0cphRUXbLHGKnlOvyHXEHfVBwNmYsrDRE5hO7LXy7lvTqI7Db/GqxE/bkrGmtx579qjDOiBDAZIofbB157zUpkJvfZHVT4JwP7bFeDOGNXZRAz76aEwmpYgsgK85KcfhLXyAbtZnYdf88ua6sB4PhFUP3h9uJ/OTxVfimpmVbjarKahIJcQeg8A== Original-Received: from HE1EUR02FT017.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::50) by HE1EUR02HT059.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1d::391) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Fri, 15 May 2020 10:50:56 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e1d::48) by HE1EUR02FT017.mail.protection.outlook.com (2a01:111:e400:7e1d::73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Fri, 15 May 2020 10:50:56 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:61EC84EDC78DB712E0ADE922C6F1242AC749C5C249F159DE8EF66AFD1CA39313; UpperCasedChecksum:E545E1EC5E268C7D5D361D15DAF02CCE99BB98B58B9320C3DC51E407C5BDE5A9; SizeAsReceived:7772; Count:48 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::49f0:2314:a959:bec5]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::49f0:2314:a959:bec5%7]) with mapi id 15.20.2979.033; Fri, 15 May 2020 10:50:56 +0000 In-Reply-To: <83ftc133mx.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 May 2020 13:15:50 +0300") X-ClientProxiedBy: AM6P195CA0074.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::15) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87d0754gl2.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P195CA0074.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Fri, 15 May 2020 10:50:55 +0000 X-Microsoft-Original-Message-ID: <87d0754gl2.fsf@live.com> X-TMN: [Yxh83us8kavvt4ka2GAZ6A1psy/ZB8od] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1322b70a-e465-4a89-56a4-08d7f8bdd853 X-MS-TrafficTypeDiagnostic: HE1EUR02HT059: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 40oejjBrTTF7ufCvIDVk09E3qNBTR5AxmeeEJISHBZsB79jM5cIfBn9KD+K07kz69s1ZJeey0Wz0RZWXetpYshuWSuu2FdooTd37Hn3BCC0Y/x2aHR5OEyjC9FKPI7cD9gQooF2IkiFv7EAeOmFL0CYLrQ0/9K3Pett+UdtJpaVhDxskKqoZNP14UgLxNcLi94SS1RJMM5/gdhgTqElrfw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR06MB4526.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: vo8Beydgd6vX4wlDP7m/m7iEYKQHaxoN0p12ZybPtYXM8NJOEcDC83oD2MOJ8/BSQHVRws9YktN7Tc46np2ccFapEMD95Bt9NglIH26yQq8qqOaO9IpC/Sn8XtSFp9hI+3JMcNnHCmZhgdQWMA/3Ig== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1322b70a-e465-4a89-56a4-08d7f8bdd853 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 10:50:56.2010 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR02HT059 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:180309 Archived-At: Eli Zaretskii writes: >> 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. Ok. I'll think about it more and see what I can come up with. An impuls idea is to have the variable as a stae: nil, short, long, where nil will hide ls-switches completely, short will show them shortened and long will display ls-switches entirely, and tooltip could then be shown when mouse is over the short version. I will have to look up how to code this with tooltip, but I'll try to code it :-).