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: Wed, 13 May 2020 16:01:49 +0000 Message-ID: References: , Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_VI1PR06MB4526C1E029034F615EEE970796BF0VI1PR06MB4526eurp_" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78402"; mail-complaints-to="usenet@ciao.gmane.io" To: Drew Adams , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 13 18:17:33 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 1jYu4b-000KHv-9N for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 18:17:33 +0200 Original-Received: from localhost ([::1]:36854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYu4a-0002lH-AF for ged-emacs-devel@m.gmane-mx.org; Wed, 13 May 2020 12:17:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYu3z-0002Ib-TM for emacs-devel@gnu.org; Wed, 13 May 2020 12:16:55 -0400 Original-Received: from mail-oln040092066025.outbound.protection.outlook.com ([40.92.66.25]:35747 helo=EUR01-VE1-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 1jYu3y-0006mi-Fs for emacs-devel@gnu.org; Wed, 13 May 2020 12:16:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EHObLx2wkCZLcajDOua3+QTpOL0zxif8BFHj4TxstROxWV/JjqdvXsJ/BPS6zA+tkqjjVLpYydw0gpLsxCQ7MOcZ07ruQS2Q1g7tD5eSXAndAgxYemGQ6Z6FUqpyPIETffaiIQJ3lfCFvOI2qra6ZIFeBAmVCAAjSpsQIcC5lOjXNf1+Xz5XFUFN4stbmldB18KehJKnsGW2TsdWghVMTsrTmjh+1QkRQDzLvPnptnLbY1K0khxNMJNg4/Y0w9n8HCb0ALrzSFgA0reI8L/zfFbia7uoC/OOE3UFIM8d1uy3HqD+z/CprVqyoWhuJchWqkuwxmQNVEmXPE/FBQveZQ== 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=PrYfTJKvYMLgJ/cCgHJtGvuRSfJEYq3rFWgKgxcDj9s=; b=QptXIbeV2dzewyZAe4Zl9iaoUhDkujg9d83XBHyYfqTcPOR5jYx09e0W97SpP+mQwxPfmZqADla3tUveK3oz0IU/51ww53IoekE7g5CpFkC3lyMZY/y/nAx0lP4/CJTtTvAUxgmJ/akz4UFsQxqZBWS+gSUBQOFWsCyu7SBxk6DKQugC25oZLisKiPGhSnjaaIvctQ+FU0Mm2S58/ChDGijlWRYl5+QrQ2YaDzvJGfHnkTfsmYtnm7CFW9Gh0bWm41BTTCtb00G0rftX27EG7QC+92EtUHEAKAf+lSsK9q6hY5dIxwi+o+AwAGvPsm+cIDsIogsrFXfCFUOgK1KKBw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=PrYfTJKvYMLgJ/cCgHJtGvuRSfJEYq3rFWgKgxcDj9s=; b=HbS4mw5R3GQPn4yLGncQoFyTGjtuxtD040Ffq2Focw6Hy5FVGXltLM+FP3Gu/407gjyuPWkSAoYfhaIB+FB3Dbv46/UiEAY0dCkSVDThwCWt2Rl+Gq2DD/tZyOWJq4gebBI23Co7YBO9jKg2MSO2Zg2EcNWqP3v462lQDUYOBX97UEfFE61k0TPYjcX/cWxZWHC6mN2E2+NWHCUFzy/19FDf2Q92x4RMSSNnbdqxlQPZfQGs00wrphLJQSWW4zIiLCoPw9kkzhNOWHvM1fNq4dreSSdsDnhROtiaYyXw4VCCcGkbnBJlvVJM9RyESz2Ar8w51C5ppH5nx2l7aIFjmg== Original-Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::48) by HE1EUR01HT062.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Wed, 13 May 2020 16:01:50 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e18::4d) by HE1EUR01FT030.mail.protection.outlook.com (2a01:111:e400:7e18::170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Wed, 13 May 2020 16:01:49 +0000 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; Wed, 13 May 2020 16:01:49 +0000 Thread-Topic: Dired - ls-switches on Modeline Thread-Index: AQHWKQZokD53LqHuOkGF0xPOVVb0kKimJBwAgAAJdb0= In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:D043805D25D06FA029AB7022049D3BB01744224FC5CA9A9D8B0782B2721A5548; UpperCasedChecksum:044E0842EB49D1A0AA80C50033E7A42C9E00B15E041C1C97CEEEBD403CBDF9D2; SizeAsReceived:6966; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [G0xN7aJZE9OKr3AlA2u2bMHTnKktxWB1] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 112c6b7a-aa06-4f13-18d5-08d7f756f23b x-ms-traffictypediagnostic: HE1EUR01HT062: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Yqa7ehQvlrsiOfOPmqlI8zOnD0mfpfiIwqfR2+5vrs887QnqrxJVMbawHuF1m8xlP5QgsGVkMZJXF2Iw5JEa/OnVduyHhiv2Fg7tVp4mtM6UA8nrYPrZ+8zTvm+3nhtUlsnHFTLlZx/bj7bRrLempUdQJnBzweoC4jO7Ll8cQKExkYsuLFUfUgb1aZBBw8e66vJjFo2Lj31IcDOHJX0mWg== 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: Q3QsqcsmS9iIyg7BWVGzlB4mofSUv8NPDHL1gYOTESjmzdf1i28fZzxygQVFIiYcGHX2FgXAFkGQrG0MCFLGn2/Nd3jM/vCBZA/LgPAyjiJR8twxtuA+BHl4XEX6czSp1w6XC09rOynHREy1K7OUAQ== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 112c6b7a-aa06-4f13-18d5-08d7f756f23b X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2020 16:01:49.8242 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT062 Received-SPF: pass client-ip=40.92.66.25; envelope-from=arthur.miller@live.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 12:16:52 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:250145 Archived-At: --_000_VI1PR06MB4526C1E029034F615EEE970796BF0VI1PR06MB4526eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sure, not at home now, but can do later in the evening. Regards /a Skickat fr=E5n min Samsung Galaxy-smartphone. -------- Originalmeddelande -------- Fr=E5n: Drew Adams Datum: 2020-05-13 17:28 (GMT+01:00) Till: Arthur Miller , emacs-devel@gnu.org =C4mne: RE: Dired - ls-switches on Modeline > 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". -- --_000_VI1PR06MB4526C1E029034F615EEE970796BF0VI1PR06MB4526eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Sure, not at home now, but can do later in the evening.

Regards
/a



Skickat fr=E5n min= Samsung Galaxy-smartphone.



-------- Originalmeddelande --------
Fr=E5n: Drew Adams <drew.adams@oracle.com>
Datum: 2020-05-13 17:28 (GMT+01:00)
Till: Arthur Miller <arthur.miller@live.com>, emacs-devel@gnu.or= g
=C4mne: RE: Dired - ls-switches on Modeline

> 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.<= br>  (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<= br>  that listing.  If option `diredp-count-.-and-..-flag' is non-nil= then
 count also `.' and `..'.

 Also abbreviate `mode-name', using "Dired/" instead of &quo= t;Dired by".

--
--_000_VI1PR06MB4526C1E029034F615EEE970796BF0VI1PR06MB4526eurp_--