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.devel Subject: Re: Dired - ls-switches on Modeline Date: Thu, 14 May 2020 03:31:26 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="98770"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 14 03:32:15 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jZ2jO-000PbN-WC for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 03:32:15 +0200 Original-Received: from localhost ([::1]:33528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZ2jN-0004RW-7k for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 21:32:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ2ii-0003qV-GD for emacs-devel@gnu.org; Wed, 13 May 2020 21:31:32 -0400 Original-Received: from mail-oln040092075023.outbound.protection.outlook.com ([40.92.75.23]:45632 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ2ig-00085n-PW for emacs-devel@gnu.org; Wed, 13 May 2020 21:31:31 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G3qnNV+wIj08dR14mT/BsWNOeA52ls0nu40BqkYALndeCGlGe3lw9m4c9vCi8OHImKLiIHuxo6WY70Xw/lua5pV1HWIeHt7eZOyfEPKoEPbZm5UkvWDGF+QITIvckVWWfIIGv6z0fs0BsN8pvGc9/HIltqVHQjC3Jbmb83rfryjZFHoua5F0CgFTvGoQ+Ez3YLyCexNCI51UrNJKvOI9/edvv2yUUIJJ5iuLYyTRcbHavDyPg6c3b7Y/vB7xGE8azY3tViSjjw9hqDpu0GNtMi1aWaP9SsBH/HM9E+/SdgMKxVv/d0kqdwDseV5ECiP9Fv15NPjfVytbRK4pFYHHpw== 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=phSy3yFEsHf9fhTbhIhR8M+OoXJ3BhE7UDj5BwtMSeU=; b=oHhK8F2vdkPs5rGJKOSlZsJnrukvUBnw4OGkFLlz6K8YjKEZ83ARM1ZeqTwES6UJM/HsrgaAosm3ZUl8dqsIqk1yLwyqPPpNmuiuZ2gyVsW6stDP/pliguWF5O9ScPud0Dz2Gq4jDw2RLq5qb8YaIqojbCLKpvZqU6lVaOitzaXgzXM8X5fH8RJ8QpQdQdWhUMyWg7cZy6vRsx1T9LjlZVVa4RkRNmJUKQCIOU74oM4IGptYfx7F2h2FMD04SPxlWJq2C8/BahuE3OClSCAimOqTAXTxQPeCQ+WuMUTMiEyVUB/ygIWYgCx4k3dbTIHKMaI6C4yAXZi4pjSWcPkPpA== 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=phSy3yFEsHf9fhTbhIhR8M+OoXJ3BhE7UDj5BwtMSeU=; b=nUUH68wNk/PyFB2qMd93+Hq/KvF5msYyu3a6s8Q8j3DRdDxJHzTvgP0YlsYR6ApdzwQSuAgqZUlzcUh2a2fdnoYe/MHWQN/LJDG2UCPUQPOVY/9NsYOcwYG+UC379nNOxBHoRssaDV6SzSdTmyfOYs0eqDrufrGYaf2vRfay/ylIv0n9Wk0mN34C73aKGA3NwLoib9Gi8SZ9NrrW/5HQ5gWGmzSdgrmXMKzx9rERh4xIv4mz3KG6oWoyZ32/JTpKQ9hxvEWI+NkC/BfibFQQkp3/NVzLap7Hqg4MMq1QJqsXY7ySBxlYSDkT+F29vzNtJkFQrDC8n0FdO7zFI1Ljdg== Original-Received: from HE1EUR04FT022.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::4b) by HE1EUR04HT024.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27; Thu, 14 May 2020 01:31:28 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::40) by HE1EUR04FT022.mail.protection.outlook.com (2a01:111:e400:7e0d::281) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Thu, 14 May 2020 01:31:28 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:A838ABE58173969479A8C8482A0983ECBFD8F9EF28807914B624C2B4BB505BE3; UpperCasedChecksum:F06D790AC2E1A5C3EB7EEF521461C82C6CC3EB3D8E6C1BBA0DE875A3A9C85927; SizeAsReceived:7594; 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; Thu, 14 May 2020 01:31:27 +0000 In-Reply-To: (Drew Adams's message of "Wed, 13 May 2020 08:27:58 -0700 (PDT)") X-ClientProxiedBy: AM6PR10CA0074.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::15) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87v9kzb8up.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6PR10CA0074.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::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; Thu, 14 May 2020 01:31:27 +0000 X-Microsoft-Original-Message-ID: <87v9kzb8up.fsf@live.com> X-TMN: [M0e0jp2dCMtpInioDQLS8HY/i00mIW4D] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 18eeba83-537d-4dd2-1012-08d7f7a68589 X-MS-TrafficTypeDiagnostic: HE1EUR04HT024: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GFGJ6qO9j5f4IZttY5t3q+1AQs6GtXF4feE5Rc2a1olaCh2+fqwv87bxX/Sphf1sjhQPQTgH1+nj1s8XXQGKjJ0mzJ4E6x8bkA6ay+GPtxvChLrNp7DBBf2WIlRldyEFzXFjrGC/MDTyttzgqFtE2NkAruQMYnsj2EHUkRbpPZ2vitG0i/sRRuhqgaVFm1L9Q7/qXSoM8JCZW24z7Y9kHw== 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: ybv/bQ6VBTiBrggHMf6cHVSbSmCXAx66IKeJipfCVXsJfiEK/JQNbkmwXWSiNAr6Uf12gwzkz8nAUoL78HETq5U7W9ySTDyNZHyC5v2+IsSX5lsNnAlUhRz99QTAdPRGWCqeM632vdlEsylM7+stGw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18eeba83-537d-4dd2-1012-08d7f7a68589 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2020 01:31:27.9575 (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: HE1EUR04HT024 Received-SPF: pass client-ip=40.92.75.23; envelope-from=arthur.miller@live.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 21:31:28 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250178 Archived-At: Drew Adams writes: >> I suggest as a usability improvement to add a user option to >> enable/disable display of ls-switches on modeline > > Sounds good to me. > > E.g. A user option whose value is a format string > that accepts the value of `dired-actual-switches' > and returns the text to use in the mode-line. > Trivial to do. > > You might want to file an enhancement request for > this (`M-x report-emacs-bug'). > ___ > > If the request doesn't get accepted for some reason > then perhaps I'll do it for Dired+.el. > > I already add additional info to the mode-line (on > a hook, so you can remove it): > > -- > > Show number of marked, flagged, and current-list lines in mode-line. > (Flagged means flagged for deletion.) > If the current line is marked/flagged and there are others > marked/flagged after it then show `N/M', where `N' is the number > marked/flagged through the current line and `M' is the total number > marked/flagged. > > If the current line is for a file then show `L/T', where `L' is the > line number in the current listing and `T' is the number of files in > that listing. If option `diredp-count-.-and-..-flag' is non-nil then > count also `.' and `..'. > > Also abbreviate `mode-name', using "Dired/" instead of "Dired by". > > -- That seems a lot of stuff Drew :-). I don't really get you, did you already implemented all that in Dired+ or do you wish to implement all that? I do have your Dired+ but honestly, it is a little big, so I never got really time to get into it, so I don't really know what it offers. Anyway I just need a simple way to remove ls-switches from modeline. I don't find it usefull at all to see switches on modeline, I don't understand why it is on by default. I guess somebody found it useful :-). I don't really need formated ls-switches on modeline, for me, it is a bit overkill. I just wish to turn it off, and in some rare case if I would ever need to see my switches, so I can turn them on. I will file a bug repport and send a patch to offer defcustom user option to turn that off/on, but you would probably like to make it more customizable as you suggest for Dired+? Thanks for all your work and best regards.