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 10:44:24 +0200 Message-ID: References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="114453"; 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 To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 10:45:11 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 1jZVxu-000TdH-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 10:45:11 +0200 Original-Received: from localhost ([::1]:47796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZVxt-0000jO-P9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 04:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZVxm-0000jB-MB for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 04:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZVxm-000388-DM for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 04:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZVxm-0001GD-AF for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 04:45: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 08:45: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.15895322754799 (code B ref 41250); Fri, 15 May 2020 08:45:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 15 May 2020 08:44:35 +0000 Original-Received: from localhost ([127.0.0.1]:35803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZVxK-0001FL-Jt for submit@debbugs.gnu.org; Fri, 15 May 2020 04:44:34 -0400 Original-Received: from mail-oln040092074088.outbound.protection.outlook.com ([40.92.74.88]:30179 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZVxI-0001F6-OW for 41250@debbugs.gnu.org; Fri, 15 May 2020 04:44:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lLX2dSH5377ZQ65HcL2ZzHYsxW1VFDYuArrO8T3AzzwM5pZf6e12PXd3LqxCu4g1ZxqT9QshoXCuN54Uh4EaSeH9KIWvR4sHu4/BEcVqXAmMqPyDd5Musy1zdhry1Mj0iwb5/Roh4XlIttLI19CvgcTCDEr1SiT6nD4jOvu2x8fHCU88/YNryYzpEjHsssqXdzasLERjqiqkMrtQQuUkbhMCKAnmNqvO8VUnHM3jwy6JVFFJIKv2bWTBhMWAORS0H2TTY0nv/VMe1nREoRk3fwwbqWR0MFtPqi9zawUFLc3Nz1e6iX2V17ooMVf5raQt65hgrKpxh+MeXMWkkpWe9A== 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=riRt+f0n3jDxe93NeXSY7m6JbuNLjJAuHEhKvNL1iIU=; b=ZGm8+qgr4eRqrxpBvmpepeMsW7C8KpNx5ipA0odhyhR0CNV2F/b0tJHeX/xHH1C2RPS0/tSmuIJreLb+GfqnTEZv05CMhfXyT0b+WcY6TAksqg7gqeQils8eqC9HoEHgydFcWEUUflOwi4muHQ2yfWo+VUIqddtFkSjgbgBrhuCP4drAIvzabjXcRQmQUKxcjE17Q1mwJ40AUgrdByo+fWA4SIUvozjI8TFKhDlop0iqJct+icvm7UiRigvtBdeEW2j/GbumQ0pGsDb661UTckiJKE1PPVQP3h0kEh4w0hMAOHa0M3k3Hv8D0eDpH+jooDhNqNuyItnz9ocJ0eUAGA== 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=riRt+f0n3jDxe93NeXSY7m6JbuNLjJAuHEhKvNL1iIU=; b=lYtNFmURJ4fzZ+e6V+evmqzuigKV5B+vYkt1uAuXYKaNpeUEaM6Ro6HA4cwHG0X9txPvRBDn+Ad3BvnUagFaYM7/j2xePryA4lHOkgEN62zEbJqf9owx/y3IPEfd4fHriIxDlk52ddxBUB32Gj5AmgYw1WMjTIYHlpms3FBodyOK8hgmiAsVcEz7ta+O+7nGg+7lva8RK8uwWeP05W+n72gAzCh/HfJbNo8WzYuBO0AbmPXeZwTx41OCnOaefILcrOx9oSZvSZwfPuxt2BWDCNM8ou/RtTKlqZakKwlSbtmH5bXOpRsbZFhtghvsfQESPLpOhEbiXLMUJpQAuhJfSA== Original-Received: from HE1EUR04FT061.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::47) by HE1EUR04HT048.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::84) 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 08:44:26 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::44) by HE1EUR04FT061.mail.protection.outlook.com (2a01:111:e400:7e0d::306) 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 08:44:26 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:265F930D0D288B29605A9ECB60AB5452D9199CD52CBDE4946E6E68E324C88E20; UpperCasedChecksum:6322808FDF7036BF65389D5AF34299EA0E1F45D6338BE0CE21C187EA71F4F00B; SizeAsReceived:7729; 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 08:44:26 +0000 In-Reply-To: <654acc31-015d-4552-bd9b-3b8c69661fcd@default> (Drew Adams's message of "Thu, 14 May 2020 16:42:14 -0700 (PDT)") X-ClientProxiedBy: AM5PR04CA0018.eurprd04.prod.outlook.com (2603:10a6:206:1::31) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87lflt4mfr.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM5PR04CA0018.eurprd04.prod.outlook.com (2603:10a6:206:1::31) 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 08:44:25 +0000 X-Microsoft-Original-Message-ID: <87lflt4mfr.fsf@live.com> X-TMN: [3XBI7SR4UVTpV/TT4q0tptwVRZtXSJI/] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 7d1416fd-d830-4b0e-95bd-08d7f8ac2c46 X-MS-TrafficTypeDiagnostic: HE1EUR04HT048: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2TVzzORI/pVp1PeOTnrJqnajmlgG3MquqMTIDArHz3NRvIDTSD/jMGBIzi87B6WOa1YXNWvAfPt2TRB0Z9cVnOhCpMLwCoKdLMAmuMTMZ4d8WJrLCOiP07fM+eEIXTvw6DH2yPxM7csO/MSaChAkVCAzrg7XD+P33nB70UETAQMgbWJpqb6ZCtge/kiAgJUout9pJPjfvf2t6NOEQMsk4coGh1tMkHODbl3Fxq739zFne8Rg7DzT5mEVIMtxKHRv 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: WjXFilZ7eo/Au8jqNLjYJiRv+WiQTgedXucaZI5QVCtCIPW8YNKrzdVHL2JsFlDyS/KSEh7xoB90/wupb6fFkeLjKv/6Qc2F/Un6nVRf+svY1ZHQnR4tghmsJ7SDZggWEpY6gDDEM0KMBrjFFvQtQQ== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d1416fd-d830-4b0e-95bd-08d7f8ac2c46 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 08:44:26.1208 (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: HE1EUR04HT048 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:180301 Archived-At: Drew Adams writes: >> Maybe instead of boolean better to use a number for the allowed limit >> that should not grow more than this number that means the length of >> switches string that the user can tolerate on the modeline. >> >> Then modeline will display abbreviation truncated to the specified >> number of characters, with an ellipses, on the assumption that >> the most important switches are at the beginning of the string. >> Customizing it to 0 effectively disables the display of switches. > > I suggested a choice, one possibility being a format string. > A format string also lets you truncate. But sure, another > choice offered could be what you suggest (a simpler way to > specify just truncation). > > I made the suggestion in an emacs-devel thread, which hasn't > been referenced so far in this bug thread: > > https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg01851.html > > https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg01964.html I answered you on that mail, but I just mentioned that you had other suggestion on bug repport just for the simplicity. I think format string asks for more documentation and more cognitive effort on part of user :-) and as such maybe it is better to have it as part of Dired+. Kind-of more for hard-core users who prefer much deeper level of customization?