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 23:08:46 +0200 Message-ID: References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.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="48828"; 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 23:09:09 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 1jZhZt-000Cbm-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 23:09:09 +0200 Original-Received: from localhost ([::1]:53420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZhZs-0008Hh-QO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 17:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZhZm-0008Fa-IT for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 17:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZhZm-0003xO-7U for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 17:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZhZm-0001GH-25 for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 17:09:02 -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 21:09: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.15895769374839 (code B ref 41250); Fri, 15 May 2020 21:09:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 15 May 2020 21:08:57 +0000 Original-Received: from localhost ([127.0.0.1]:38953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhZh-0001Fz-0e for submit@debbugs.gnu.org; Fri, 15 May 2020 17:08:57 -0400 Original-Received: from mail-oln040092074049.outbound.protection.outlook.com ([40.92.74.49]:50407 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhZf-0001Fl-5n for 41250@debbugs.gnu.org; Fri, 15 May 2020 17:08:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+5BB1yjMgREWcWUcuu1yN+mHguLcGHh1HLK0dBFc+YTeFYu5j5n8u7dWRbArAsbq0hQPyhriy3b03HI7SyJe749Z8Au8Kmuq/kO+VsI1wqxseoF0ABx+yJob0MO6ksdi1g6i4jjYnS+FTWBf1ZZKCYRgY9nIjK3LlQASzro4gJmlvloc/10d7SjmiaI41yLiuh/3JFvP0aUC8ajLHluZKmDq8gEQoIDGJ/UF+HW/OMbbJ/iw2wsw9a4zcTofMM3kDyU2jY5Rtd1SyUhwZSucnA8LTMPBdvJR+RYCluBsYmSCtkKF393L6gTTWsMnGxhMLj1OqEImGL2sXG5W2TO7Q== 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=KpEH/kQTfaq3RAA0gWlTnbbTFAXDsWZ4+tevpYpYl3A=; b=li5kTRMxYKVLD6fLJ3XAe+CrIAoDvCZyjXgY+X5x06h8WtXoJkabTGh0jONOV76DF7qzJtF2POHqMq3MosHI+h5gUZmSynO/PuvF7J/sQvKS/PuEEDniRNXYd5sflfcni696I7Gy+b4hn/XEdznHkedrIcFeHN0O3Pw80+fcMIPCcvc3LLfrIS/6FvJwHo5VozkTiMeUpD2t3tK+JT6tI4G9w2y5CCTkoagTcETm2sdBcl2gR4Y8DSq6HSq9izrPWSUBXJgkQ4qrACBjwJAKjfacfkHIC7Kwh2NO/BVbBr49bQz8h603FN4auDJargOsGQQpSBefIzHYJxSMpNNQuQ== 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=KpEH/kQTfaq3RAA0gWlTnbbTFAXDsWZ4+tevpYpYl3A=; b=jkAK6sw5xK81nWrkH/11SgtTQRa6HlPTIvZ16Vc2gbm450qWKPBz5IcZj6IDZ6mSjT9ShDzQf0ODtuLkLUTl5akjQRQUgA1XasJhLAk4mer8gllN2oBKMvu5oFZuZIE+KZKawp5rZni64ZLn32QdWtyCzOY6YGn9SrPJd5UNltK6kBHwQMzHDZqF5vd7ReiuEW2XdZoDuh3lpJ7KvWkC7fdj/wbaQR7TUlPuvdjTOIiOWjBPrSrvFQ6EfbIN5NjjlwRJwbLs17ZOs7vov8pWQUYn3/GcA/IRKuFGdUc8DniYB/fPqFgrpzejo2xoPjlKgZM9N6iHZN/QYazJ2y/Jcw== Original-Received: from HE1EUR04FT017.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::51) by HE1EUR04HT240.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::207) 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 21:08:48 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::53) by HE1EUR04FT017.mail.protection.outlook.com (2a01:111:e400:7e0d::63) 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 21:08:48 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:137B080BB502CE42BE6B2CED730834CCDC0C7738D30A0F4AF7489CBF3134EEEC; UpperCasedChecksum:57D299A536A4E40761AA4F3994468BE7C0C17235F65311D022EE7BEAFB3F1C2B; SizeAsReceived:7872; 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 21:08:48 +0000 In-Reply-To: <83a729uiaq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 May 2020 22:09:17 +0300") X-ClientProxiedBy: AM6P191CA0020.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::33) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87ftc0c3dt.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6P191CA0020.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.25 via Frontend Transport; Fri, 15 May 2020 21:08:47 +0000 X-Microsoft-Original-Message-ID: <87ftc0c3dt.fsf@live.com> X-TMN: [8rWWaJ07EEFVE/Ay1yNNiuZX7OxtQ/GG] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 53170bf4-db16-4649-148d-08d7f914290e X-MS-TrafficTypeDiagnostic: HE1EUR04HT240: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 18QBhGlxWEudZflJjEaW46R2GDfBcC9xrzd+hVUkOE+PE3jSKhdNgDUawJN6TXASnH03jcJUOvXUA4ZSC1WXQ2t8iHMK9RU4A5oL9f5Bavu7l0RnvEknLWTrxZvh56FQXa014J+o2rpyomkH2uZ0BbYcmIGX3rPQoMdfQ1fkbn6jMeaaTBMub+JsxD6hQ/0Hb1Q/1pPH8s8VL5l9A8izaA== 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: feGDW9oWbXjt87eNcvWUJ9LA2gaYyM861/pKj9+Z7kTP57lbCGPmdA910BMiacRdni7eGa534h1gblwYUj6XfDkZObwbp5No/a22dM292NrrQOP9Nqa1+B3ocVoR9lPv6FsEuNFA2H9ocF6i7H961w== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53170bf4-db16-4649-148d-08d7f914290e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 21:08:48.3553 (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: HE1EUR04HT240 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:180362 Archived-At: Eli Zaretskii writes: >> Date: Fri, 15 May 2020 11:55:46 -0700 (PDT) >> From: Drew Adams >> Cc: 41250@debbugs.gnu.org, Juri Linkov >> >> an integer - show first N chars of switches > > I don't think this is a useful value: the user will rarely know how > much space is available on the mode line. Also, truncating without > showing ellipsis or some other sign of truncation is IMO a sub-optimal > UI. > > Thanks. After I saw Drews mail and patch, and answered, I was thinking additionally, and I am actually now wondering, why is it assumed that Dired will show sorting order on modeline by default? I mean other modes does not do similar. Say, cc-mode does not show which current identation scheme I use, or something similar. Why is it assumed for Dired? I don't have historical insight so I don't know why original author(s) decided to make it so? If Dired show just, word "Dired" as it's lighter only, as other modes do, then maybe Drews idea to have a format string is maybe the most flexible one? For example we could have a format string, by default nil or just "", which user could set to whatever. Or there could be a hook, say (defun dired-display-mode-line-info (info-message) (setq mode-name (concat mode-name " " info-message) (force-mode-line-update))) with some checks for empty stirng and so on. I ment just as a quick illustration. Then users could put for themselves the info they wishes to be displayed on modeline: sorting order, or number of fles, or current moon phase? Or they will be like and would prefer to show nothing. Maybe you have already discussed this when dired was written? In that case I am just curious why it was decided that Dired should show extra info on modeline? If anybody remembers, or even know, of course.