From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 01:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 41250@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158942056232373 (code B ref -1); Thu, 14 May 2020 01:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2020 01:42:42 +0000 Received: from localhost ([127.0.0.1]:59927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZ2tW-0008Q5-0W for submit@debbugs.gnu.org; Wed, 13 May 2020 21:42:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:42960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZ2tU-0008Px-3D for submit@debbugs.gnu.org; Wed, 13 May 2020 21:42:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ2tT-00039X-Rx for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 21:42:39 -0400 Received: from mail-oln040092070037.outbound.protection.outlook.com ([40.92.70.37]:1409 helo=EUR03-AM5-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 1jZ2tR-0001iU-Tj for bug-gnu-emacs@gnu.org; Wed, 13 May 2020 21:42:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lVfgJDF6cagofnOyB7zbLS0niKlFiH+A8u1lNFG99qOsvvLvYkskbHJV6Z6IcQ4kOcGVFsaTe0QPJXg78TtmiKVV3VyXd1cys/vpw9wIMof0PveK/xbZRsivlBYGSIUSRHDOHMnZzr7j7TPB+Wt+X9LqDqyxdrq6g6LXX4Ncf5qfcMst/R3RFYE4IT64WBkMxla5DV8FerHrOzW0wQRMcnIC03RjAva4J2FvVblqlbSec7HbnZHl0z+F+ULXoFwJSBd8g/ZjGwJY3DtWPTI1cLoLlrsckMkLPjtPJIdidhicVzOIzV9Gm4cYSjNKD2EOTjV9QtIjADHUhh8Q3vftRg== 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=QmsUuLUjCXExpNnSD14gGB+ICF6a8l9htsu8ad1DwIw=; b=gjj/b2qCFjP2zffr+0UJwHqH2klJZpeoNY7NaOIAv5+WyomrK+iVxVr9cp5ZjNt1hJZ/qArxyBhIKM3Z6KBUeRqevcg/Uytq2y0xrNZxvYN/FraEFByyJ4OhvFZV0ZcYVVVMhud5v+uG4V+ctfiii730EaRjmcdukHR2OIBNhOug0NKRM8KwnffSJA13iKK0NU/2MEnxQUZwxa2YVRK/Iu2qj8lOcbOkfam2exS4VhQqTq27eBmahfdxtpK8TJj94YEnXv4FWORpjRKUfM+RVK5mlUr/H0Rjk5A0zvPSVuUP+kGGRbKMwFuIq08bvaDHUkswcqPns1sbVefTtC7c0g== 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=QmsUuLUjCXExpNnSD14gGB+ICF6a8l9htsu8ad1DwIw=; b=m0H5fUPV4LpSQMEvnBkeV5re1V0hTckNQFNGenxnr31f9RpeVAAyaj8ivfzgGma6Eu9/91Fd+/TW42cy1dAZi86Td4Ov3ffC1RXO3E3kP5OefHkD1UDPaP2WbrL58SEpdykFIFfiXGMm7+e5d0uO1uH1PJQU0NjZgl2xwup9ZcjbpGGUm39HlKjzLYYy+lKQ5/TrDxrL8Fk4/rLgPE9C5dhzp7oH9e6bnSGDivS2KFJCELC7hdDlrBr+ozxoRW7LKnqskDNigLrrkd9Pdb61iuD3CxlBIOVsZJDextHkj3bruxTTY3kLxb58zZtjHsMoNG86sVnyDz3WJluzu5V1JA== Received: from VE1EUR03FT014.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e09::40) by VE1EUR03HT147.eop-EUR03.prod.protection.outlook.com (2a01:111:e400:7e09::234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Thu, 14 May 2020 01:42:35 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e09::4f) by VE1EUR03FT014.mail.protection.outlook.com (2a01:111:e400:7e09::294) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Thu, 14 May 2020 01:42:35 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:806BA61611D56F311459A85C345EF0A51B6D17792DDB8BEBE08139927D2B699D; UpperCasedChecksum:203A4831F7C949E14F4F134687EB9F8BD565E6E8DDA2B78A323C84B1D9B514E9; SizeAsReceived:7272; Count:44 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:42:35 +0000 From: Arthur Miller Date: Thu, 14 May 2020 03:42:32 +0200 Message-ID: Content-Type: multipart/mixed; boundary="=-=-=" X-ClientProxiedBy: AM6PR01CA0061.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::38) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87r1vnb8c7.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM6PR01CA0061.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24 via Frontend Transport; Thu, 14 May 2020 01:42:33 +0000 X-Microsoft-Original-Message-ID: <87r1vnb8c7.fsf@live.com> X-TMN: [6U5PpE854jVjkV4EcJ0NdsjudCdUQEBM] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 44 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 7e587401-24c2-441d-045c-08d7f7a812c5 X-MS-TrafficTypeDiagnostic: VE1EUR03HT147: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uZVXuQErP7/U7D1wjbOO7zpNc2NS7DqTDjl6ZZYZBOYBxLvfIVU8VCc8Flf/jHNv+10WP2S88yAj2nEYJQJf3yTYxv4dg4hT8ZUuC/FHvR0BNzKSC26TJqgDnC9PZ1lix/4hzi5XlQyLDM2XqBAQKEbgwyfck4vNBUb9VJFIzB7fIqsEQo8+PvrAkLK6xiaK3CVm8M+xPgX/G8uNDV9ixw== 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: 9rBZJlm/EKsqe40Qz5xn8PDx14qUNIYJd8U+pTIVKtkp06afQuAgQjRKuDhBz4Nl7/3fTToZ/2+TwfASuTXJS/UpB1Dd3TQ3TIYcKhkaXc4TuqJMtUHpwuhPtM5fOUuwQ62ML5Q/HMoXPmcFOHq6Rw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e587401-24c2-441d-045c-08d7f7a812c5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2020 01:42:35.0215 (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: VE1EUR03HT147 Received-SPF: pass client-ip=40.92.70.37; envelope-from=arthur.miller@live.com; helo=EUR03-AM5-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 21:42:35 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, MSGID_FROM_MTA_HEADER=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-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain There is no way to turn off displaying of ls-switches on modeline when in dired-mode. By default in certain configuration, dired display ls-switches on modeline. In case those switches are a long list, for example: "-lA --si --time-style long-iso --group-directories-first" then everything else on modeline gets pushed far to the right which is not very usable. In general I don't have much use of seing ls-switches on modeline and would like to be able to turn them off. As of current it does not seem possible since it is hard-coded in function `dired-sort-set-mode-line' in dired.el. I suggest, as small improvement, to introduce a user option to turn off or on displaying of ls-switches on modeline. As a suggestion I have attached small hack to dired.el as tested on my copy of Emacs, but you might wish to rewrite it. Drew had some other suggestions. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=dired.patch Content-Description: Patch to introduce user option to turn on/off for --- dired.el 2020-05-14 03:06:34.046112281 +0200 +++ lisp/dired.el 2020-05-14 03:12:03.423097577 +0200 @@ -70,12 +70,20 @@ :type 'string :group 'dired) +(defcustom dired-display-listing-switches nil + "Display switches passed to `ls' for Dired on modeline. +If value is `t', value of dired-listing-switches will be shown on +modeline, when dired is not showing files `by name' or `by date'. +Default value is nil." + :type 'boolean + :group 'dired) + (defcustom dired-subdir-switches nil "If non-nil, switches passed to `ls' for inserting subdirectories. If nil, `dired-listing-switches' is used." - :group 'dired - :type '(choice (const :tag "Use dired-listing-switches" nil) - (string :tag "Switches"))) + :group 'dired + :type '(choice (const :tag "Use dired-listing-switches" nil) + (string :tag "Switches"))) (defcustom dired-chown-program (purecopy (cond ((executable-find "chown") "chown") @@ -4118,22 +4126,25 @@ ;; Set mode line display according to dired-actual-switches. ;; Mode line display of "by name" or "by date" guarantees the user a ;; match with the corresponding regexps. Non-matching switches are - ;; shown literally. + ;; shown literally if user has not disabled displaying them by + ;; customizing dired-display-listing-switches variable. (when (eq major-mode 'dired-mode) - (setq mode-name - (let (case-fold-search) - (cond ((string-match-p - dired-sort-by-name-regexp dired-actual-switches) - "Dired by name") - ((string-match-p - dired-sort-by-date-regexp dired-actual-switches) - "Dired by date") - (t - (concat "Dired " dired-actual-switches))))) + (setq mode-name + (let (case-fold-search) + (cond ((string-match-p + dired-sort-by-name-regexp dired-actual-switches) + "Dired by name") + ((string-match-p + dired-sort-by-date-regexp dired-actual-switches) + "Dired by date") + ((eq dired-display-listing-switches t) + (concat "Dired " dired-actual-switches)) + (t + "Dired")))) (force-mode-line-update))) -(define-obsolete-function-alias 'dired-sort-set-modeline - #'dired-sort-set-mode-line "24.3") + (define-obsolete-function-alias 'dired-sort-set-modeline + #'dired-sort-set-mode-line "24.3") (defun dired-sort-toggle-or-edit (&optional arg) "Toggle sorting by date, and refresh the Dired buffer. --=-=-=-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 22:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15894961794878 (code B ref 41250); Thu, 14 May 2020 22:43:01 +0000 Received: (at 41250) by debbugs.gnu.org; 14 May 2020 22:42:59 +0000 Received: from localhost ([127.0.0.1]:35154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZMZ8-0001Gc-Vc for submit@debbugs.gnu.org; Thu, 14 May 2020 18:42:59 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:39011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZMZ6-0001GI-Eo for 41250@debbugs.gnu.org; Thu, 14 May 2020 18:42:57 -0400 X-Originating-IP: 91.129.104.245 Received: from mail.gandi.net (m91-129-104-245.cust.tele2.ee [91.129.104.245]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 731F960002; Thu, 14 May 2020 22:42:48 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: Date: Fri, 15 May 2020 01:33:51 +0300 In-Reply-To: (Arthur Miller's message of "Thu, 14 May 2020 03:42:32 +0200") Message-ID: <87v9ky9p6o.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > There is no way to turn off displaying of ls-switches on modeline when > in dired-mode. > > By default in certain configuration, dired display ls-switches on > modeline. In case those switches are a long list, for example: > > "-lA --si --time-style long-iso --group-directories-first" > > then everything else on modeline gets pushed far to the right which is > not very usable. In general I don't have much use of seing ls-switches > on modeline and would like to be able to turn them off. As of current it > does not seem possible since it is hard-coded in function > `dired-sort-set-mode-line' in dired.el. > > I suggest, as small improvement, to introduce a user option to turn off > or on displaying of ls-switches on modeline. As a suggestion I have > attached small hack to dired.el as tested on my copy of Emacs, but you > might wish to rewrite it. Drew had some other suggestions. 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. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov , Arthur Miller Cc: 41250@debbugs.gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158949987012697 (code B ref 41250); Thu, 14 May 2020 23:45:02 +0000 Received: (at 41250) by debbugs.gnu.org; 14 May 2020 23:44:30 +0000 Received: from localhost ([127.0.0.1]:35194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZNWf-0003Ij-ND for submit@debbugs.gnu.org; Thu, 14 May 2020 19:44:29 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:53172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZNWd-0003IU-9J for 41250@debbugs.gnu.org; Thu, 14 May 2020 19:44:28 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04ENbwer125784; Thu, 14 May 2020 23:44:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=uCA62J9ekuA489rTPMw5zPuRi0vrtenUjafAfeCYOUg=; b=aeD/JoOwi6i/yfgISWmFqpNaHWATR7c9KqeHgpWtww/OlqVw+aOOj0rzxhkpfIf+TNNl kh0mL2jBhbRL4sWULoDLaMrML93FrOONivPss4SP0PT3bLO+s390oiCKUjASffIbSBHT t0xVXw+Akcs0p5bep4oW2GyTrtQvc/hVkuh/q7UJHIWDgcMMiQ3cXnlPi+x/p3DWqPt2 YvIGOjnF2yHi5qZMxJJH20KaEC9CU5nqpzgXDwXFgsLaNA3CY6q7KKw22T/uSnZOVNB0 dTlx6OM9CAYgBYfF0l8TV/gPtUJGHKO/uQ1PxCLQWUR7fFg3wV1KrqsPp94MrcWSQoZs tQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 3100xwnqxv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 May 2020 23:44:20 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04ENcj6O154415; Thu, 14 May 2020 23:42:20 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 310vju8bx4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 May 2020 23:42:19 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 04ENgFnx019178; Thu, 14 May 2020 23:42:16 GMT MIME-Version: 1.0 Message-ID: <654acc31-015d-4552-bd9b-3b8c69661fcd@default> Date: Thu, 14 May 2020 16:42:14 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> In-Reply-To: <87v9ky9p6o.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9621 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 phishscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005140201 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9621 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 clxscore=1011 cotscore=-2147483648 mlxscore=0 phishscore=0 adultscore=0 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005140201 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. >=20 > 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 From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 41250@debbugs.gnu.org, arthur.miller@live.com Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158952504426090 (code B ref 41250); Fri, 15 May 2020 06:45:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 06:44:04 +0000 Received: from localhost ([127.0.0.1]:35725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZU4i-0006mk-9u for submit@debbugs.gnu.org; Fri, 15 May 2020 02:44:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZU4f-0006m8-SB for 41250@debbugs.gnu.org; Fri, 15 May 2020 02:44:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52163) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZU4Z-0005b2-PW; Fri, 15 May 2020 02:43:55 -0400 Received: from [176.228.60.248] (port=4546 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZU4Z-0000k7-5o; Fri, 15 May 2020 02:43:55 -0400 Date: Fri, 15 May 2020 09:43:42 +0300 Message-Id: <831rnl4s0x.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87v9ky9p6o.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 15 May 2020 01:33:51 +0300) References: <87v9ky9p6o.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Date: Fri, 15 May 2020 01:33:51 +0300 > Cc: 41250@debbugs.gnu.org > > > I suggest, as small improvement, to introduce a user option to turn off > > or on displaying of ls-switches on modeline. As a suggestion I have > > attached small hack to dired.el as tested on my copy of Emacs, but you > > might wish to rewrite it. Drew had some other suggestions. > > 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. 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. > Customizing it to 0 effectively disables the display of switches. Why not simply use nil? We could use zero, but that is a bit "tricky", and doesn't seem to me justified in this case. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 08:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15895320444454 (code B ref 41250); Fri, 15 May 2020 08:41:01 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 08:40:44 +0000 Received: from localhost ([127.0.0.1]:35798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZVtc-00019m-0d for submit@debbugs.gnu.org; Fri, 15 May 2020 04:40:44 -0400 Received: from mail-am6eur05olkn2065.outbound.protection.outlook.com ([40.92.91.65]:38593 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZVta-00019Y-Bh for 41250@debbugs.gnu.org; Fri, 15 May 2020 04:40:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dPbjtuV8n3GTnhHQnSkYCH8cihKgaaXSpW8GWPni/9JtYpxLhPcDbYCLESA/+gdg2Lq+hHzXO2de7AoRTWc0OWO/zrG8Ds1yIVk/kf7ZOlN2viaw0Z2hmrgI+vIjOfd22Cf1rX9K1nWqwauLVthcwUdJZqsF7BikUDJruznUW54+yS7p6ydXz0YKZrsBEdVfDxFPBSLTXfQqQrqlnPnUizbj64WUphlvc+H4oIncYE3ldfVVCxNAOtj/ZMR407K0QEnASXfvuSKqgqDjJfIwEMErjHt8LPmNumQiKLPkJyRSrV8OpOWi4vuPZvLHQutoJLnWWEIcNkYjo4GorZ/uzg== 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=WjfpRqMJ4tPBQYA6ToFxDEu7m9ACRtlzD6F8+qsYfFA=; b=D/rwA4tUaMui+eLmVxGJJMLslCPoWY79HMsolDx1O/DQDsARRNVB24hW67MIS0jj39oq4c8CkBVKnEHZRJBvPQievDv2W1HWXWQz4BPdUeai6AS42vglqKUfju9DrP12MIlOZDFn0KKAsw+VUU5LB06Jse+V0vIcVoWUojv9DIMCV4LjlBVV5ldzeiG1aLnGcsAH+5iWDBTFSSwnyfe/z9sej3xcpjMukRO6xVMoM8L0hELohJnFIQjdzIY8NfpFxsThLfc62/rvHBrO0aMNzqnKo3cUaMTh2X5vn4rOXDlT1Tf3wwxVt2h+k/k84nG71en1KVnMr31SQs4Zn7L2PQ== 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=WjfpRqMJ4tPBQYA6ToFxDEu7m9ACRtlzD6F8+qsYfFA=; b=dujxLausiGHU1nc+Koz4hmTU3qPJp9YBjVnfTOJY+ngAFu8vCBYnlBPYJH0O5vPoWQwFTz0VdlH/FKyc/XVfw+N3GBJSmc/qX4RVrQRfOuBVsr679gyenKFRlyP6xFvnCSm7nFlOWoYz/MhW5vXfwWFn0hpTQMlTciKYlyoSYbQb7mWFE+UO2geptAETxfgDnA2UniH0hD8SEKhrsQNYj0b8Xsis7fOn/PXcS+7RPpaxkPe/dp02Zg3OKfbjOBrThvILy8luvxj3QSy595afPBLieMEBbHEwq+mDTMAMjZog9Z8rAkFhyiWl4s/Sat0TtwacrFEWh9LOUxY2OQWQvg== Received: from AM6EUR05FT010.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::45) by AM6EUR05HT031.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::118) 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:40:36 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc11::53) by AM6EUR05FT010.mail.protection.outlook.com (2a01:111:e400:fc11::157) 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:40:36 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B5B5DCD030001DB7EF192081EF660983E8FD0EE12B9FDFA4C9F69CD29F9477D8; UpperCasedChecksum:3EA8270A7BBE3679446A3AC9CDC8141C58D80B2793DC9EFF20E0534A1D7401EE; SizeAsReceived:7690; Count:48 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:40:35 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <831rnl4s0x.fsf@gnu.org> Date: Fri, 15 May 2020 10:40:34 +0200 In-Reply-To: <831rnl4s0x.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 May 2020 09:43:42 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM5P194CA0020.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::30) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87pnb54mm5.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM5P194CA0020.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::30) 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 08:40:35 +0000 X-Microsoft-Original-Message-ID: <87pnb54mm5.fsf@live.com> X-TMN: [vty11GfpWhoxCv39WQEIQl3zRiVHp0qm] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: dce1c989-560b-4d82-f33e-08d7f8aba30a X-MS-TrafficTypeDiagnostic: AM6EUR05HT031: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mAWjZFS9FcAJrc7LqADHdk8uVSAY6RH0DnXTuji+zGFVWZk44+QwyBh/RDB4lpysIx5rhCl94Q6jgQqXlLWMdHxdarPyBcGpwxeLUdru0YoNJf2HaQYncav4ivvb+yW0scpOFqR4gbTarNQxrXB8vKD8/EiXEHG1pM1Bxil2RGqjIwtOMj1RhWoblyL2xlIhXuRePcYhbr2ChjKqROvatA== 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: BZEByAtc+GfhSjHNzFl1Qd4wHez/0bOp9H6Wk0bRxJ2W2NrlyG1PJog5cpEhPkVMGRjhtNcIv768b+f/3xOXTZfbuBi5e3zxOWI3w+J3/v0RpWXCYWRAVmvjISiEwRiFVRWf+dOD3vwOJR2OhOXWhg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: dce1c989-560b-4d82-f33e-08d7f8aba30a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 08:40:35.9081 (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: AM6EUR05HT031 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Juri Linkov >> Date: Fri, 15 May 2020 01:33:51 +0300 >> Cc: 41250@debbugs.gnu.org >> >> > I suggest, as small improvement, to introduce a user option to turn off >> > or on displaying of ls-switches on modeline. As a suggestion I have >> > attached small hack to dired.el as tested on my copy of Emacs, but you >> > might wish to rewrite it. Drew had some other suggestions. >> >> 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. > > 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? I don't know how to add a submenu to that pop-up or a tooltip, but I can look it up. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline 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 X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15895322754799 (code B ref 41250); Fri, 15 May 2020 08:45:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 08:44:35 +0000 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 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== 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 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 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 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> Date: Fri, 15 May 2020 10:44:24 +0200 In-Reply-To: <654acc31-015d-4552-bd9b-3b8c69661fcd@default> (Drew Adams's message of "Thu, 14 May 2020 16:42:14 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain 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> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 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-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158953777321412 (code B ref 41250); Fri, 15 May 2020 10:17:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 10:16:13 +0000 Received: from localhost ([127.0.0.1]:35905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXO1-0005ZH-ER for submit@debbugs.gnu.org; Fri, 15 May 2020 06:16:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXNz-0005Z6-TC for 41250@debbugs.gnu.org; Fri, 15 May 2020 06:16:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59344) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZXNt-0002jd-IR; Fri, 15 May 2020 06:16:05 -0400 Received: from [176.228.60.248] (port=1602 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZXNs-0006FM-3q; Fri, 15 May 2020 06:16:04 -0400 Date: Fri, 15 May 2020 13:15:50 +0300 Message-Id: <83ftc133mx.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Arthur Miller on Fri, 15 May 2020 10:40:34 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <831rnl4s0x.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158953986825036 (code B ref 41250); Fri, 15 May 2020 10:52:01 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 10:51:08 +0000 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 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== 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 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 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 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <831rnl4s0x.fsf@gnu.org> <83ftc133mx.fsf@gnu.org> Date: Fri, 15 May 2020 12:50:49 +0200 In-Reply-To: <83ftc133mx.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 May 2020 13:15:50 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain 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> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 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-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 :-). From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158956908224439 (code B ref 41250); Fri, 15 May 2020 18:59:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 18:58:02 +0000 Received: from localhost ([127.0.0.1]:38735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZfX0-0006Lx-0M for submit@debbugs.gnu.org; Fri, 15 May 2020 14:58:02 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:52654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZfWy-0006LW-Ea for 41250@debbugs.gnu.org; Fri, 15 May 2020 14:58:01 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FIvaVZ003222; Fri, 15 May 2020 18:57:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type; s=corp-2020-01-29; bh=fuKk/AF3sf65n/6oSj4YJ+RyAx23/LWFgg0c6/H1MLY=; b=U88+qPH6MxZ1oLUMJj1vDqGXncseeIgutcR+LqfUpTjKTTY+ne9YU8FCKxswb85gVXZO IOm+mtX02maEB9fTEnwwcyJPx1lSaTfdTVZjUZm2G3pEDQi6ccpSE25rTb4P9uT5SnV1 cJZbMBDtYQ67oczPVJHalIqrdxmrQ7RXwyBJuZkv1ng9NJPQkiprmWBTklLCqrbVjkg7 smbRW/TEe7qFAR/JqsVcQgvbG1/9Fp1sS6++j+pqqReUu/ABUBYrxYWzw9vvjQPwrR3Y fyzSQbZUlmP2fAwQFdE3ZnDtzV9we8D0aWXV2ypMgS2qg4UgDedpFHol6EVp3M1E+T4b 3w== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 3100xww5wx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2020 18:57:53 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FImDXX052633; Fri, 15 May 2020 18:55:52 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 3100yfb5va-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 May 2020 18:55:52 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04FItmbW020845; Fri, 15 May 2020 18:55:49 GMT MIME-Version: 1.0 Message-ID: <0957af50-7f85-455a-9d2c-e96451727872@default> Date: Fri, 15 May 2020 11:55:46 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: multipart/mixed; boundary="__158956894790960356abhmp0001.oracle.com" X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150157 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 cotscore=-2147483648 mlxscore=0 phishscore=0 adultscore=0 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150158 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --__158956894790960356abhmp0001.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > 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+. >=20 > Kind-of more for hard-core users who prefer much > deeper level of customization? Emacs users are of all kinds. No user who doesn't understand `format' would need to make that particular option-value choice. This is no different from options we have that have a catch-all choice of a function, which they can use to get pretty much any behavior. And that's another reasonable alternative here to a choice of a format string: a function that accepts the current switches as its (first) argument. That's even more general, and it wouldn't freak out a user unfamiliar with format strings. ;-) And that also covers truncating, trivially. There's nothing special about truncating. It just happens to correspond directly to your immediate problem: a long list of switches. Attached is a patch that does what I think should be done. The option value can be: nil - to get the current behavior `as-is' - show the full switches an integer - show first N chars of switches a function - show whatever it returns, when passed `dired-actual-switches' If Emacs doesn't want to go this route then I guess I'll just use it for Dired+. ___ I do think your suggestion of mouseover the mode-line indication showing the full switches is a good one. I've added command `diredp-change-ls-switches' to Dired+, and added it to menu-bar menu `Dir' (aka `Subdir'). It shows the current switches in the prompt, so you can just hit `C-g' if all you want is see what the current switches are. And because it's in the menu, you can get to it by clicking the lighter in the mode-line. (Menu `Dir' is the first menu listed when you click.)=20 --__158956894790960356abhmp0001.oracle.com Content-Type: application/octet-stream; name="dired-2020-05-15a.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dired-2020-05-15a.patch" ZGlmZiAtdSBkaXJlZC5lbCBkaXJlZC0yMDIwLTA1LTE1YS1QQVRDSEVELmVsCi0tLSBkaXJlZC5l bAkyMDIwLTA1LTE1IDExOjIzOjMyLjgwNDgyMzgwMCAtMDcwMAorKysgZGlyZWQtMjAyMC0wNS0x NWEtUEFUQ0hFRC5lbAkyMDIwLTA1LTE1IDExOjI2OjIwLjcwMjA1MTAwMCAtMDcwMApAQCAtNDEx NCwyMiArNDExNCw0MCBAQAogICAiTm9uLW5pbCBtZWFucyB0aGUgRGlyZWQgc29ydCBjb21tYW5k IGlzIGRpc2FibGVkLgogVGhlIGlkZWEgaXMgdG8gc2V0IHRoaXMgYnVmZmVyLWxvY2FsbHkgaW4g c3BlY2lhbCBEaXJlZCBidWZmZXJzLiIpCiAKKyhkZWZjdXN0b20gZGlyZWQtc3dpdGNoZXMtaW4t bW9kZS1saW5lIG5pbAorICAiSG93IHRvIGluZGljYXRlIGBkaXJlZC1hY3R1YWwtc3dpdGNoZXMn IGluIG1vZGUtbGluZS4KK1Bvc3NpYmxlIHZhbHVlczoKKyAqIGBuaWwnOiAgICBJbmRpY2F0ZSBu YW1lLW9yLWRhdGUgc29ydCBvcmRlciwgaWYgcG9zc2libGUuCisgICAgICAgICAgICAgRWxzZSBz aG93IGZ1bGwgc3dpdGNoZXMuCisgKiBgYXMtaXMnOiAgU2hvdyBmdWxsIHN3aXRjaGVzLgorICog SW50ZWdlcjogIFNob3cgb25seSB0aGUgZmlyc3QgTiBjaGFycyBvZiBmdWxsIHN3aXRjaGVzLgor ICogRnVuY3Rpb246IFBhc3MgYGRpcmVkLWFjdHVhbC1zd2l0Y2hlcycgYXMgYXJnIGFuZCBzaG93 IHJlc3VsdC4iCisgIDpncm91cCAnRGlyZWQtUGx1cworICA6dHlwZSAnKGNob2ljZQorICAgICAg ICAgIChjb25zdCAgICA6dGFnICJJbmRpY2F0ZSBieSBuYW1lIG9yIGRhdGUsIGVsc2UgZnVsbCIg ICBuaWwpCisgICAgICAgICAgKGNvbnN0ICAgIDp0YWcgIlNob3cgZnVsbCBzd2l0Y2hlcyIgICAg ICAgICAgICAgICAgICAgIGFzLWlzKQorICAgICAgICAgIChpbnRlZ2VyICA6dGFnICJTaG93IGZp cnN0IE4gY2hhcnMgb2Ygc3dpdGNoZXMiIDp2YWx1ZSAxMCkKKyAgICAgICAgICAoZnVuY3Rpb24g OnRhZyAiRm9ybWF0IHdpdGggZnVuY3Rpb24iICAgICAgICAgICA6dmFsdWUgaWRlbnRpdHkpKSkK KwogKGRlZnVuIGRpcmVkLXNvcnQtc2V0LW1vZGUtbGluZSAoKQotICA7OyBTZXQgbW9kZSBsaW5l IGRpc3BsYXkgYWNjb3JkaW5nIHRvIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcy4KLSAgOzsgTW9kZSBs aW5lIGRpc3BsYXkgb2YgImJ5IG5hbWUiIG9yICJieSBkYXRlIiBndWFyYW50ZWVzIHRoZSB1c2Vy IGEKLSAgOzsgbWF0Y2ggd2l0aCB0aGUgY29ycmVzcG9uZGluZyByZWdleHBzLiAgTm9uLW1hdGNo aW5nIHN3aXRjaGVzIGFyZQotICA7OyBzaG93biBsaXRlcmFsbHkuCisgICJTZXQgbW9kZS1saW5l IGFjY29yZGluZyB0byBvcHRpb24gYGRpcmVkLXN3aXRjaGVzLWluLW1vZGUtbGluZScuIgogICAo d2hlbiAoZXEgbWFqb3ItbW9kZSAnZGlyZWQtbW9kZSkKICAgICAoc2V0cSBtb2RlLW5hbWUKLQkg IChsZXQgKGNhc2UtZm9sZC1zZWFyY2gpCi0JICAgIChjb25kICgoc3RyaW5nLW1hdGNoLXAKLQkJ ICAgIGRpcmVkLXNvcnQtYnktbmFtZS1yZWdleHAgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKQotCQkg ICAiRGlyZWQgYnkgbmFtZSIpCi0JCSAgKChzdHJpbmctbWF0Y2gtcAotCQkgICAgZGlyZWQtc29y dC1ieS1kYXRlLXJlZ2V4cCBkaXJlZC1hY3R1YWwtc3dpdGNoZXMpCi0JCSAgICJEaXJlZCBieSBk YXRlIikKLQkJICAodAotCQkgICAoY29uY2F0ICJEaXJlZCAiIGRpcmVkLWFjdHVhbC1zd2l0Y2hl cykpKSkpCisJICAobGV0ICgoY2FzZS1mb2xkLXNlYXJjaCAgbmlsKSkKKyAgICAgICAgICAgIChp ZiBkaXJlZC1zd2l0Y2hlcy1pbi1tb2RlLWxpbmUKKyAgICAgICAgICAgICAgICAoY29uY2F0ICJE aXJlZCAiCisgICAgICAgICAgICAgICAgICAgICAgICAoY29uZCAoKGludGVnZXJwIGRpcmVkLXN3 aXRjaGVzLWluLW1vZGUtbGluZSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc3Vi c3RyaW5nIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcworICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgMCBkaXJlZC1zd2l0Y2hlcy1pbi1tb2RlLWxpbmUpKQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKChmdW5jdGlvbnAgZGlyZWQtc3dpdGNoZXMtaW4tbW9kZS1s aW5lKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmb3JtYXQgIiVzIiAoZnVuY2Fs bCBkaXJlZC1zd2l0Y2hlcy1pbi1tb2RlLWxpbmUKKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKSkpCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAodCBkaXJlZC1hY3R1YWwtc3dpdGNoZXMpKSkKKyAg ICAgICAgICAgICAgKGNvbmQgKChzdHJpbmctbWF0Y2gtcCBkaXJlZC1zb3J0LWJ5LW5hbWUtcmVn ZXhwIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykKKyAgICAgICAgICAgICAgICAgICAgICJEaXJlZCBi eSBuYW1lIikKKyAgICAgICAgICAgICAgICAgICAgKChzdHJpbmctbWF0Y2gtcCBkaXJlZC1zb3J0 LWJ5LWRhdGUtcmVnZXhwIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykKKyAgICAgICAgICAgICAgICAg ICAgICJEaXJlZCBieSBkYXRlIikKKyAgICAgICAgICAgICAgICAgICAgKHQgKGNvbmNhdCAiRGly ZWQgIiBkaXJlZC1hY3R1YWwtc3dpdGNoZXMpKSkpKSkKICAgICAoZm9yY2UtbW9kZS1saW5lLXVw ZGF0ZSkpKQogCiAoZGVmaW5lLW9ic29sZXRlLWZ1bmN0aW9uLWFsaWFzICdkaXJlZC1zb3J0LXNl dC1tb2RlbGluZQo= --__158956894790960356abhmp0001.oracle.com-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158956978125845 (code B ref 41250); Fri, 15 May 2020 19:10:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 19:09:41 +0000 Received: from localhost ([127.0.0.1]:38749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZfiH-0006in-N1 for submit@debbugs.gnu.org; Fri, 15 May 2020 15:09:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZfiC-0006iT-UX for 41250@debbugs.gnu.org; Fri, 15 May 2020 15:09:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48002) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZfi7-00036l-Iz; Fri, 15 May 2020 15:09:31 -0400 Received: from [176.228.60.248] (port=2261 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZfi5-0002Wr-AH; Fri, 15 May 2020 15:09:31 -0400 Date: Fri, 15 May 2020 22:09:17 +0300 Message-Id: <83a729uiaq.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <0957af50-7f85-455a-9d2c-e96451727872@default> (message from Drew Adams on Fri, 15 May 2020 11:55:46 -0700 (PDT)) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158957250130437 (code B ref 41250); Fri, 15 May 2020 19:55:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 19:55:01 +0000 Received: from localhost ([127.0.0.1]:38836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZgQ8-0007ur-L9 for submit@debbugs.gnu.org; Fri, 15 May 2020 15:55:01 -0400 Received: from mail-oln040092067089.outbound.protection.outlook.com ([40.92.67.89]:14090 helo=EUR02-AM5-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZgQ6-0007ud-O9 for 41250@debbugs.gnu.org; Fri, 15 May 2020 15:54:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k3MKhwllWC1Oqh22rzk9xmCo7McD4U2qc/oeKu6flT73cHcrrUHKoS1WWaB/ARJaoXjSkaUfZx9EbkuIgOUEuxzLboCc/tq5gIGygnGjWplW68R8Es8W/bBLq3E2ctRg7+wCvPgTUXg1tAqlINuO5uuX5i+eZaIBG8CxcAxR7gooMidwPWLdFcRxQI8+dTIKQffomdZyfSzs/e+QSOsNSXQz4E1WJRlSgtjiAcsHPNmyLa+rQxjx4+EVxiBZaljzcVc5o6s99mzcMNnPfbL9g0mpEWbrOz9Mr51Q7TazP8Et8Qjn9IGXE+AKUcczje0liyL8YvcGHis0cf67ut/Cnw== 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=JXrMikE5mooOHmWjRO0rDB7NogxdwdeC6McbkhaTEE4=; b=DukVarVulgRWCX6zwIWv74BMwMjTMmtYqbks86ZIRId+r+j0ADoXGAbvS3JydOfSn/SzMdkSOCEMlnBjJTmyrQUAPv0lIqggbklXqtOwN/zNT1EirvLp1SwjiKwYjfH3mrKy6/XYuWyirgLdWXZMjpMzze8ZRCDPPFSjpMK2u4wNQ78SH5gzT/uRJngWynaNxdr5/hA8vYuJ3dvNUKI5lRvCtNO3tDdYAv9cVEHWjn1s8dXqKZlKm4yh28Um0eHVTURi/l8O/HKyDoZEnhecpXpuZ/t/IHAZ1zzdlj6IMX19SBshfGLbFXx6YBw3Pxfy+Cotyj3XAtS142+64NyuYw== 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=JXrMikE5mooOHmWjRO0rDB7NogxdwdeC6McbkhaTEE4=; b=POjwwYniCq70Ir/dykkt8pvFN7mZPV25ilW7+XcV1+DKT0F6cS+k8++9U5TqddelVuRl3VpdSSYFKLBxC9ObLOsB1js8xJZfQTkb8LpU/rezZmLRtW/3gJHP+H2QDdjvSVhOv0r14c1hI+A5UDcZW/0FzTBm+zbQd1mFyEEloV9tkJXO4kH9rS3aDkqzVZOeuN+JplFQPJv3ehQrm+hsEupeCKW0scNnLmuRABaidBXZsP1TNPn0BmMGEDM75oy9uwpQBStVDFEMXS43wcmFFjP91FDenr1GG9w/YGe6qUzzDaEj218Y4ybo6oJp+c5E/OgKiknDxPTcq6ZclRv3mg== Received: from VE1EUR02FT019.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::42) by VE1EUR02HT162.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1e::323) 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 19:54:51 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e1e::4f) by VE1EUR02FT019.mail.protection.outlook.com (2a01:111:e400:7e1e::107) 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 19:54:51 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2B2E72AA05F4CCBD0E4AFE9466AC51601738CBEDCC3423D5B129AE061E840E24; UpperCasedChecksum:FC3AA8C4864610F6B1D3CDA55073119CA61617333C5954AAB02222311A172543; SizeAsReceived:7869; Count:48 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 19:54:51 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> Date: Fri, 15 May 2020 21:54:50 +0200 In-Reply-To: <0957af50-7f85-455a-9d2c-e96451727872@default> (Drew Adams's message of "Fri, 15 May 2020 11:55:46 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM5PR0402CA0010.eurprd04.prod.outlook.com (2603:10a6:203:90::20) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87k11das8l.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM5PR0402CA0010.eurprd04.prod.outlook.com (2603:10a6:203:90::20) 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 19:54:50 +0000 X-Microsoft-Original-Message-ID: <87k11das8l.fsf@live.com> X-TMN: [jjyHpmvE1Supc/KwG+UDoCV5i43KA6aU] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e0c80afd-ad47-45c1-c6d9-08d7f909d471 X-MS-TrafficTypeDiagnostic: VE1EUR02HT162: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wwmT4oZXZvmnXVKD7lBuPEw2k1+o9X6Zru/ie2rmLF+Lxi/b4u1ZNSiuRZGk0IpjY3QEqS8blvNBbWnWRUSSsG8ax5Yl8HnSLGDVLWLlrNUJgtC9X/7dRFoVPvtVsXFrAvuk3OufPBT9aMAjYTPrHsu9TUpUsm2QE3gbum85Qsys3HUVO7EZNvtokOF7AruJZxW/AmRqzmeD/Xes01R5oA== 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: ZBMhs4oldoiO4JdnD1i+kk7zpyUdB/RVgf6HHr/wKR0TLIswWrt4h3kjiq1cm7yOAU1zy/JgGX3eJXXq3L/kleU/R/vqcexP0ljSZ2MDEFHVoyk4zW6jPho68Mxkzukb5TCvUJzMixMvRa+p4FKk7A== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0c80afd-ad47-45c1-c6d9-08d7f909d471 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 19:54:51.5929 (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: VE1EUR02HT162 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Drew Adams writes: > Attached is a patch that does what I think > should be done. The option value can be: > > nil - to get the current behavior > `as-is' - show the full switches > an integer - show first N chars of switches > a function - show whatever it returns, when > passed `dired-actual-switches' Cool. I was actually sitting and coding but you have already done it, nice. I have just one question/suggestion: You first choice: indicate by name or date, else full. Does it really need to be there? ls-switches are displayed only when dired is not sorted by name or date, i.e. custom hence displaying ls switches as part of mode name. Thus this customization only touches displaying of switches when they are displayd. I.e. it should be about "how", not "when". To explain my thought: that is a hard-coded behaviour which user can't customize anway. By looking at your code, that bevahviour indeed persists. 2nd choice is the one that actually consider how switches will be displayed. I have same consideration about 3rd choice too. Function choice gives option to run custom hook as format. I think it is cool to have custom format function to display when in dired mode, so I like it, but it is a bit different purpose then regulating display of switches. As I perceive it. Maybe it should get it's own custom variable instead? Like dired-mode-line-display-hook or something similar? 2nd option, one with number does what the proposed variable name suggests. Personally I ment to code just short (first switch) and long (all switches), since probably the first one is the most important one. I would also prefer nil to mean don't show switches at all, but it works with N chars set to 0 as well I guess. Observe also that if I turn off display by using 0 chars as suggested there will be a small gap between word "Dired" and closing parenthesis. It will look like: (Dired ) on modeline. Not a deal breaker, but kind of small artefact. Easily fixed though. I can rework it if you wish, but since it is yours, you might prefer to do it yourself. That is just my opinion, in general I think it does the jobb anyway, so if you guys are happy, I am happy. As long as it is possible to get rid of switches on modeline in some way, it is an improvement. > diff -u dired.el dired-2020-05-15a-PATCHED.el > --- dired.el 2020-05-15 11:23:32.804823800 -0700 > +++ dired-2020-05-15a-PATCHED.el 2020-05-15 11:26:20.702051000 -0700 > @@ -4114,22 +4114,40 @@ > "Non-nil means the Dired sort command is disabled. > The idea is to set this buffer-locally in special Dired buffers.") > > +(defcustom dired-switches-in-mode-line nil > + "How to indicate `dired-actual-switches' in mode-line. > +Possible values: > + * `nil': Indicate name-or-date sort order, if possible. > + Else show full switches. > + * `as-is': Show full switches. > + * Integer: Show only the first N chars of full switches. > + * Function: Pass `dired-actual-switches' as arg and show result." > + :group 'Dired-Plus > + :type '(choice > + (const :tag "Indicate by name or date, else full" nil) > + (const :tag "Show full switches" as-is) > + (integer :tag "Show first N chars of switches" :value 10) > + (function :tag "Format with function" :value identity))) > + > (defun dired-sort-set-mode-line () > - ;; Set mode line display according to dired-actual-switches. > - ;; Mode line display of "by name" or "by date" guarantees the user a > - ;; match with the corresponding regexps. Non-matching switches are > - ;; shown literally. > + "Set mode-line according to option `dired-switches-in-mode-line'." > (when (eq major-mode 'dired-mode) > (setq mode-name > - (let (case-fold-search) > - (cond ((string-match-p > - dired-sort-by-name-regexp dired-actual-switches) > - "Dired by name") > - ((string-match-p > - dired-sort-by-date-regexp dired-actual-switches) > - "Dired by date") > - (t > - (concat "Dired " dired-actual-switches))))) > + (let ((case-fold-search nil)) > + (if dired-switches-in-mode-line > + (concat "Dired " > + (cond ((integerp dired-switches-in-mode-line) > + (substring dired-actual-switches > + 0 dired-switches-in-mode-line)) > + ((functionp dired-switches-in-mode-line) > + (format "%s" (funcall dired-switches-in-mode-line > + dired-actual-switches))) > + (t dired-actual-switches))) > + (cond ((string-match-p dired-sort-by-name-regexp dired-actual-switches) > + "Dired by name") > + ((string-match-p dired-sort-by-date-regexp dired-actual-switches) > + "Dired by date") > + (t (concat "Dired " dired-actual-switches)))))) > (force-mode-line-update))) > > (define-obsolete-function-alias 'dired-sort-set-modeline From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 21:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Drew Adams Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15895764314114 (code B ref 41250); Fri, 15 May 2020 21:01:01 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 21:00:31 +0000 Received: from localhost ([127.0.0.1]:38943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhRP-00014A-Is for submit@debbugs.gnu.org; Fri, 15 May 2020 17:00:31 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:35496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhRN-00013v-3O for 41250@debbugs.gnu.org; Fri, 15 May 2020 17:00:21 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FKuuWP048909; Fri, 15 May 2020 21:00:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=urkGdg3AZhBvAlZa+QNd50/Gh5vq/lQk/yFxqmU+DB4=; b=Sqq4F301xoa7RKiudVzqbFOP2t9e1FegdWoNHmXOQz3NfM5lZV/frV+DaYLM9ZW+O+s5 SDYToLxEIS+G+/BtKXDv29eD7tPxM+jU05GPjsFc2+c5MWAvzPlQ+iu/GRyDSH3cVAz5 qvGTDEHgcjz8cuKf3/Vs3toz9nZTd7+49fMR5AzyeUSXoBu8sJDa1NV6PVrTcxzROt30 Jdh39NQC9Q+WONLH5gH6lZnerh58rHhY1aDaUbJ5VmpQ3sHxDGnX4gj26p8CSDIG3D4v zdioX63BkPUpzFKbWUxkgNnw5cOn1diLkbjYD2pNKeeN+tvZENYx9Snvo4irktL+P+zX gg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3100ygds3k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2020 21:00:14 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FKwpvA108498; Fri, 15 May 2020 21:00:14 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 3100ys7rjp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 May 2020 21:00:13 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04FL0Co4022173; Fri, 15 May 2020 21:00:12 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 15 May 2020 14:00:11 -0700 (PDT) From: Drew Adams References: <> <<87v9ky9p6o.fsf@mail.linkov.net>> <<654acc31-015d-4552-bd9b-3b8c69661fcd@default>> <> <<0957af50-7f85-455a-9d2c-e96451727872@default>> <<83a729uiaq.fsf@gnu.org>> In-Reply-To: <<83a729uiaq.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=972 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150174 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 adultscore=0 cotscore=-2147483648 mlxscore=0 suspectscore=0 spamscore=0 impostorscore=0 mlxlogscore=982 malwarescore=0 clxscore=1015 phishscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150174 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > an integer - show first N chars of switches >=20 > I don't think this is a useful value: the user will rarely know how > much space is available on the mode line. A user may know how much space they're willing to give to this, as a general preference/rule. Mode-line data can vary considerably, depending on one's setup, the buffer's mode, and other things. And the effective available space depends on window width. So of course no particular truncation constant length will fit all contexts. Such truncation is of limited utility, IMO, but I thought that's what was requested. Sure, truncation could instead be relative (%). In that case what it's relative to needs to be considered. This is why, in the general case, a function value is there. You'll recall that in an earlier mail I said that truncation can just be done by such a function. (Well, at that point I said a `format' string - that too can truncate.) What I wrote up is just a simple truncation. If you have a better one you want to suggest, fine. > Also, truncating without showing ellipsis or some > other sign of truncation is IMO a sub-optimal UI. Arguable - mode-line space is limited. But maybe. I imagine you're suggesting appending a char such as `.' to whatever truncation is used. That's fine by me (though I'm not crazy about that char, which I find generally illegible). An alternative (more readable, but wastes 2 more chars, is `...'. Another alternative is to surround the set of switches with delimiters, e.g. "" or '' or [] ... From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, Drew Adams , juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15895769374839 (code B ref 41250); Fri, 15 May 2020 21:09:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 21:08:57 +0000 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 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== 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 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 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 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> Date: Fri, 15 May 2020 23:08:46 +0200 In-Reply-To: <83a729uiaq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 May 2020 22:09:17 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain 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> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 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-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 21:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Eli Zaretskii , juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15895773105448 (code B ref 41250); Fri, 15 May 2020 21:16:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 21:15:10 +0000 Received: from localhost ([127.0.0.1]:38963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhfi-0001Po-2a for submit@debbugs.gnu.org; Fri, 15 May 2020 17:15:10 -0400 Received: from mail-oln040092073093.outbound.protection.outlook.com ([40.92.73.93]:64958 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZhfg-0001PX-R5 for 41250@debbugs.gnu.org; Fri, 15 May 2020 17:15:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IFMyXYhJJG/CYKVcdc4UZ0SFm2TlklF5Z5x8XkCHrDyx9qkBPzV69kTlIx6xUGKmES8b/knFi6cKk0cflJAK+LsEZgRhGraeD7nCZUrGR9POmu6+fZousy1W5p8cEu9CeUQfeqcJP4Z4dt9CRWBX+efeKAiwkN0MXRbLZRyVGs0vEnGDZzurnNtuj4K0K2EHAgnNyRla8NmVowNnmLkzEX45/B1UiVJBLWcS2LswLzrxAq4KxGs6tbRSjc8OClVFMddUm1wqBENVCQe8QcY6XRh451f+UozBDNcblyRajZx7fsMOiLjvAMaPvpS+VkjsoVCL7fTQhH1QXumuWWCtKQ== 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=CU8itzd1WbGbN6Qgf7M9MppnphCJgEG1pfW1kkvhDLA=; b=O5AMgEhR17r7rjaYoQzkil2FG3ps3q+9XIXu+dP58hYWKaEAkRJaKmnGTq9piSqlyKMS8O1n/RTYfYSqQTJCKF1HNkUUjdo5DuEn5RRy3fFnb9eMRNwlZ7tkuDqd3LNOUFUOJP3Fj7kWVb222vrGP9oFNqH5rpWptuwHWFup6kkgO/7aQKqBGJBEj37ef4AsYsT44wzny6fYLf62FSWP68w0ElOO7uSngfhVRzqykiAO0Lr24u4LoswBrGqrsq13x3J3e9gjY/w7hZF/OXDVYuPCf/dPiWgdRIj/fP39hRRGKZolo8bc7Uh5Z4iRtpzdLfJRwHxN9CCCSVAvAcksig== 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=CU8itzd1WbGbN6Qgf7M9MppnphCJgEG1pfW1kkvhDLA=; b=b2zJrqVJByBqkZF8+oxHjsm9Nt1Q8MhW9pxI0VOWzt9RhpJFsCvm00aFBRJDtVdv18I+eNvCnx0w+dhxmRvf9kjrXAsN9KIuK2cvfcUUul5vo898FG08IVrlIE07aLZ8QH/edy1XV4XV0JdWurrCV+MQ5NpQzdmwVwrX3oxFdqdQgBH+KaY8E6yTlzaHdLDDju/s6OUNzOyCPVANPneU0XHBNMn4YIwB4fc8x4AzHr0ah0kUwKxcPJfTbemyUMRNirI/jzEqSae87RvETL5HRlxBHVvvBLwS/PCy5RQfs3nqP/zemXTHnEAcy6uhssYpV9ML7yMYFZlGUr3aJdqkEA== Received: from HE1EUR04FT017.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::49) by HE1EUR04HT169.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::381) 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:15:01 +0000 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:15:01 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:88798BD86D582AEE470A3766D8E66ECC89A34376744C9E7775C4D578F17F68EC; UpperCasedChecksum:786E2B20393F8CE5FA15F5F38BF64E2AFC2CBFA572F6C696CB22F1D579E2D100; SizeAsReceived:7956; Count:48 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:15:01 +0000 From: Arthur Miller References: > <87v9ky9p6o.fsf@mail.linkov.net>> <654acc31-015d-4552-bd9b-3b8c69661fcd@default>> > <0957af50-7f85-455a-9d2c-e96451727872@default>> <83a729uiaq.fsf@gnu.org>> Date: Fri, 15 May 2020 23:14:59 +0200 In-Reply-To: (Drew Adams's message of "Fri, 15 May 2020 14:00:11 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM7PR04CA0027.eurprd04.prod.outlook.com (2603:10a6:20b:110::37) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87blmoc33g.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM7PR04CA0027.eurprd04.prod.outlook.com (2603:10a6:20b:110::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24 via Frontend Transport; Fri, 15 May 2020 21:15:00 +0000 X-Microsoft-Original-Message-ID: <87blmoc33g.fsf@live.com> X-TMN: [RAx9ihMRUUOgTMu5NJIXQK3cVpjex2Rz] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6056c48d-77c0-450b-d756-08d7f9150762 X-MS-TrafficTypeDiagnostic: HE1EUR04HT169: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qyanAjt5Q0fsX5U2ME9WYhHPki6dzx9X/GQ3Y8IT+DeWuzw8iWv8yFD+3D1tcrPmXpP1LV6rUtoX3RuBhZmvg9CEypQKgbdg8qouTnERQeJrpTFkQEsXqtccWJBGcQ8vtQKdirQEXK7e1KnogFZiuysZewtYCi9Inx2gTmpptnyyRbWICDrFvqYNwyvBTMsl5OfaUC8onnTyhyOgjQrEQg== 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: BqOtHoNufxWmOwjvnf+uWcPcmruk/kF5FLFmX8SVk7kIaES+mQfxEhrK1xg9m3kjsYHwYPAT2uADT+y8Fo1bAG6iyqSPynQQc33GgY3RY3cF0+iJEwgPSOQCOkF5ZO0N+pNUfm8nLl3k6FcQBV93Jg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6056c48d-77c0-450b-d756-08d7f9150762 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 21:15:01.3480 (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: HE1EUR04HT169 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Drew Adams writes: >> > 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. > > A user may know how much space they're willing > to give to this, as a general preference/rule. > > Mode-line data can vary considerably, depending > on one's setup, the buffer's mode, and other > things. And the effective available space > depends on window width. > > So of course no particular truncation constant > length will fit all contexts. Such truncation > is of limited utility, IMO, but I thought that's > what was requested. > > Sure, truncation could instead be relative (%). > In that case what it's relative to needs to be > considered. > > This is why, in the general case, a function > value is there. You'll recall that in an earlier > mail I said that truncation can just be done by > such a function. (Well, at that point I said a > `format' string - that too can truncate.) > > What I wrote up is just a simple truncation. If > you have a better one you want to suggest, fine. > >> Also, truncating without showing ellipsis or some >> other sign of truncation is IMO a sub-optimal UI. > > Arguable - mode-line space is limited. But maybe. > > I imagine you're suggesting appending a char such > as `.' to whatever truncation is used. That's > fine by me (though I'm not crazy about that char, > which I find generally illegible). An alternative > (more readable, but wastes 2 more chars, is `...'. > Another alternative is to surround the set of > switches with delimiters, e.g. "" or '' or [] ... As I understand Eli, he means, if switches are displayed only partially on modeline, then after the switch chars there would be an elipsis, which I understand means "...". I think it is OK since it indicates that there is more to it which indeed is quite common, but yes it does take more space on modeline. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 22:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15895802749902 (code B ref 41250); Fri, 15 May 2020 22:05:01 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 22:04:34 +0000 Received: from localhost ([127.0.0.1]:39029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZiRW-0002Ze-KR for submit@debbugs.gnu.org; Fri, 15 May 2020 18:04:34 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:55292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZiRU-0002ZR-83 for 41250@debbugs.gnu.org; Fri, 15 May 2020 18:04:33 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FM2uZ7081971; Fri, 15 May 2020 22:04:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=XJAJjQNvb3+KZrZowzGBY5IMw4x6SLpLaPjERauohOk=; b=wPY4+7iJ9qs5Y1IZq+rrnKVUTOeK0M8DB4M+rpF0hPNLZ6Kykl/f5Hrew8zfIEirIIyY f1rzzYomvIL9GETSuzWjt6TFnn0ODtU785SO1gV60Oh3zhgylq2LOUCTZt4pJfIqr6in J+3Y1DXR0gPA4CUl+mqpPrP5ZnJS2TDwvSBipVitg0xsQ+xH1ih60dLFWU8sM4lFxLfW jcVeQ7tI8iP4XO9OYs0AOoG6ciIgqiVCc7O9Dpu5OGawlnwSKNOY6tR5RTxpywG4NxNo 4xhI29P9A9SJsu5RZEkWyJcbHu2wllLuS550RsQANyA8P361CEGcn7zHlVtRVnh5Rafw dw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3100yge1dp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2020 22:04:26 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FM2pEa129180; Fri, 15 May 2020 22:04:26 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 3100ysarj4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 May 2020 22:04:25 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 04FM4L5V029658; Fri, 15 May 2020 22:04:21 GMT MIME-Version: 1.0 Message-ID: <66a9b6c5-456b-4223-846d-8f5f0a9127c9@default> Date: Fri, 15 May 2020 15:04:20 -0700 (PDT) From: Drew Adams References: <> <<87v9ky9p6o.fsf@mail.linkov.net>> <<654acc31-015d-4552-bd9b-3b8c69661fcd@default>> <> <<0957af50-7f85-455a-9d2c-e96451727872@default>> <<83a729uiaq.fsf@gnu.org>> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=514 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150185 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 adultscore=0 cotscore=-2147483648 mlxscore=0 suspectscore=0 spamscore=0 impostorscore=0 mlxlogscore=557 malwarescore=0 clxscore=1015 phishscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150185 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I imagine you're suggesting appending a char such > as `.' to whatever truncation is used. ^ That was supposed to be a horizontal ellipsis char. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller , Eli Zaretskii Cc: 41250@debbugs.gnu.org, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158958115211178 (code B ref 41250); Fri, 15 May 2020 22:20:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 22:19:12 +0000 Received: from localhost ([127.0.0.1]:39041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZifg-0002u9-57 for submit@debbugs.gnu.org; Fri, 15 May 2020 18:19:12 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:37846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZifd-0002ts-UE for 41250@debbugs.gnu.org; Fri, 15 May 2020 18:19:10 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FMGejt107287; Fri, 15 May 2020 22:19:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=5enbCuwTaPxyO3fpqCqDBAKKZzSo83cgTAtXyPC5eM4=; b=wPsEX945Meg5lRd6wlVPdpZjpy2rKT8JpuZXq+/6yQp3PWEuaxMShBApPGgdubN3DVKP K7VTNNX0BCfPvR8gwc+koT62kJAPh2r3YAzk578lkBwRB7BSz+b0Nrtcf743NyQb76to MVGOZ7Db2Mka8bsYqoyi2zy1ik2LDK4HWXGltfbPMRo0xRlP11AT7MlYrOhPX6ACrwZK hTzO+nU0Mauf639qtwCTtBfSPoS5WRjiunS+l2lmp/JbnR/TBP+KbVKEii+9TqEkPqoT 9Vq+IF94IB9UjJMPEmTxHTGlYteHSZsPGt5H4UISZ0vMEVNzq3D/Z7UurWb4mK1ewCBG EQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3100yge313-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2020 22:19:03 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FMIpfR178295; Fri, 15 May 2020 22:19:03 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 3100ysbe9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 May 2020 22:19:03 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04FMJ1wU003018; Fri, 15 May 2020 22:19:02 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 15 May 2020 15:19:00 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=966 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150187 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 adultscore=0 cotscore=-2147483648 mlxscore=0 suspectscore=0 spamscore=0 impostorscore=0 mlxlogscore=999 malwarescore=0 clxscore=1015 phishscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150187 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I am actually now wondering, why is it assumed that > Dired will show sorting order on modeline by default? Because it's useful. And it is very common to use `s', to toggle between name and date sorting. Those are the common sorts, and switches that match their regexps are the most common. Those predefined regexps could presumably be tweaked to accommodate more patterns that have time in them, but IMHO it's not worth it. This mode-line indication is not, primarily, about showing you the current `ls' switches. It's about telling you whether files are sorted by name or time. The relevant function is called `dired-sort-set-mode-line'. ^^^^ From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158958115311187 (code B ref 41250); Fri, 15 May 2020 22:20:02 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 22:19:13 +0000 Received: from localhost ([127.0.0.1]:39043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZifh-0002uM-Fn for submit@debbugs.gnu.org; Fri, 15 May 2020 18:19:13 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:47316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZiff-0002tw-OG for 41250@debbugs.gnu.org; Fri, 15 May 2020 18:19:12 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FMHNNp101075; Fri, 15 May 2020 22:19:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type; s=corp-2020-01-29; bh=nxeSikcmKfujPnuSwFGPPglD1/SFwGzNoRLzTlKZY4s=; b=uENQ2IRUDpN9FShPTPXfP3hZ5digQJY1f4HB5j4mmZR0qZJ2MqK8rtYYrgsh8mQkIo0A TAz5n8U5Pc/AIeRiBItQMswrvfziaMAKDcXl4x1rltb3A3ydxvtH/nGrpR5QzlVYSG8o P13my7rYvAQObwxNuyp+XfMUB4kcJGWQSlBKcLNkw1Fc13vCqO6ny/k/vbqDuvZ90TiY Sv5sjhebc9YcjEnITqu6T4Qu87Tg6vh10ft0I/3hYGIzqtKedcKR2s/BlpU3tlQXENrP GzftrDY+sZKN3mFRbhFx8X8Hf+WMCUOBpfb3DE5JmEtZ4XuknJbi7pGzoaR/JYe0LrRG Rw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 311nu5p7x6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2020 22:19:06 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FMICmg150758; Fri, 15 May 2020 22:19:05 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 3100yfjrdf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 May 2020 22:19:05 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04FMJ4HH030610; Fri, 15 May 2020 22:19:04 GMT MIME-Version: 1.0 Message-ID: Date: Fri, 15 May 2020 15:19:03 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: multipart/mixed; boundary="__158958114405766808abhmp0001.oracle.com" X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150187 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 mlxscore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 impostorscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 cotscore=-2147483648 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150187 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --__158958114405766808abhmp0001.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > I have just one question/suggestion: (Actually, it seems like several. ;-) > You first choice: indicate by name or date, else full. Does it really > need to be there?=20 Not sure I understand. Define "need". I kept the longstanding behavior, by default (option value nil). If you customize then you override that default behavior. If you don't customize then nothing changes for you (good). > ls-switches are displayed only when dired is not > sorted by name or date, i.e. custom My intention is to let a user impose showing switches even in the case where name or date regexp matches. And to let a user instead prefer "by name" and "by date" when they match, but default to showing all (as now). > Thus this customization only touches displaying of > switches when they are displayd. I.e. it should be > about "how", not "when". Sorry, I don't follow. Please say what behavior you want to be able to specify that the proposed code doesn't provide for. > To explain my thought: that is a hard-coded behaviour which user can't > customize anway.=20 What is "this"? Please give an example of the behavior you'd like that you don't think you can get, or that you think is too difficult to get. > By looking at your code, that bevahviour indeed > persists. If you mean that the longstanding behavior is still possible, and is even the default, yes. If you mean something else, please rephrase. > 2nd choice is the one that actually > consider how switches will be displayed. By "2nd choice" I guess you mean showing the full switches? Or do you mean truncating that? > I have same consideration about 3rd choice too. > Function choice (That's the 4th choice.) > gives option to run custom hook as format. I think it is cool to have cus= tom > format function to display when in dired mode, so I like it, but it is > a bit different purpose then regulating display of switches. What do you mean? The switches string is passed as an arg to the function, which can return anything. It can format and return any part of that string, or transform it in any way, or return something descriptive (a la "by name"), or return something completely unrelated (your birthday, "Hello world!"). > Maybe it should get it's own custom variable instead? Like > dired-mode-line-display-hook or something similar? Why? Then you're essentially back to the idea of having _only_ a function. > 2nd option, one with number=20 (That's the 3rd choice.) > does what the proposed variable name suggests. The name just suggests something in the mode-line that's based on switches. > Personally I ment to code just short (first switch) (That's name/date.) > and long (all switches), since probably the first > one is the most important one. Sorry, but I'm lost in your reference to first, second, etc. It sounds now like you're not interested in a truncation choice (?). I thought it was you who requested that. > I would also prefer nil to mean don't show switches at all, but it > works with N chars set to 0 as well I guess. A value of 0 shows nothing. And so does a value of (lambda (x) ""). > Observe also that if I turn off display by using 0 chars as suggested > there will be a small gap between word "Dired" and closing parenthesis. > It will look like: (Dired ) on modeline. Not a deal breaker, but kind > of small artefact. Easily fixed though. I can rework it if you wish, > but since it is yours, you might prefer to do it yourself. Attached patch takes care of that, and adds ellipsis. --__158958114405766808abhmp0001.oracle.com Content-Type: application/octet-stream; name="dired-2020-05-15b.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dired-2020-05-15b.patch" ZGlmZiAtdSBkaXJlZC5lbCBkaXJlZC0yMDIwLTA1LTE1Yi1QQVRDSEVELmVsDQotLS0gZGlyZWQu ZWwJMjAyMC0wNS0xNSAxMToyMzozMi44MDQ4MjM4MDAgLTA3MDANCisrKyBkaXJlZC0yMDIwLTA1 LTE1Yi1QQVRDSEVELmVsCTIwMjAtMDUtMTUgMTU6MTM6NTMuOTY2MjA0NjAwIC0wNzAwDQpAQCAt NDExNCwyMiArNDExNCw0NSBAQA0KICAgIk5vbi1uaWwgbWVhbnMgdGhlIERpcmVkIHNvcnQgY29t bWFuZCBpcyBkaXNhYmxlZC4NCiBUaGUgaWRlYSBpcyB0byBzZXQgdGhpcyBidWZmZXItbG9jYWxs eSBpbiBzcGVjaWFsIERpcmVkIGJ1ZmZlcnMuIikNCiANCisoZGVmY3VzdG9tIGRpcmVkLXN3aXRj aGVzLWluLW1vZGUtbGluZSBuaWwNCisgICJIb3cgdG8gaW5kaWNhdGUgYGRpcmVkLWFjdHVhbC1z d2l0Y2hlcycgaW4gbW9kZS1saW5lLg0KK1Bvc3NpYmxlIHZhbHVlczoNCisgKiBgbmlsJzogICAg SW5kaWNhdGUgbmFtZS1vci1kYXRlIHNvcnQgb3JkZXIsIGlmIHBvc3NpYmxlLg0KKyAgICAgICAg ICAgICBFbHNlIHNob3cgZnVsbCBzd2l0Y2hlcy4NCisgKiBgYXMtaXMnOiAgU2hvdyBmdWxsIHN3 aXRjaGVzLg0KKyAqIEludGVnZXI6ICBTaG93IG9ubHkgdGhlIGZpcnN0IE4gY2hhcnMgb2YgZnVs bCBzd2l0Y2hlcy4NCisgKiBGdW5jdGlvbjogUGFzcyBgZGlyZWQtYWN0dWFsLXN3aXRjaGVzJyBh cyBhcmcgYW5kIHNob3cgcmVzdWx0LiINCisgIDpncm91cCAnRGlyZWQtUGx1cw0KKyAgOnR5cGUg JyhjaG9pY2UNCisgICAgICAgICAgKGNvbnN0ICAgIDp0YWcgIkluZGljYXRlIGJ5IG5hbWUgb3Ig ZGF0ZSwgZWxzZSBmdWxsIiAgIG5pbCkNCisgICAgICAgICAgKGNvbnN0ICAgIDp0YWcgIlNob3cg ZnVsbCBzd2l0Y2hlcyIgICAgICAgICAgICAgICAgICAgIGFzLWlzKQ0KKyAgICAgICAgICAoaW50 ZWdlciAgOnRhZyAiU2hvdyBmaXJzdCBOIGNoYXJzIG9mIHN3aXRjaGVzIiA6dmFsdWUgMTApDQor ICAgICAgICAgIChmdW5jdGlvbiA6dGFnICJGb3JtYXQgd2l0aCBmdW5jdGlvbiIgICAgICAgICAg IDp2YWx1ZSBpZGVudGl0eSkpKQ0KKw0KIChkZWZ1biBkaXJlZC1zb3J0LXNldC1tb2RlLWxpbmUg KCkNCi0gIDs7IFNldCBtb2RlIGxpbmUgZGlzcGxheSBhY2NvcmRpbmcgdG8gZGlyZWQtYWN0dWFs LXN3aXRjaGVzLg0KLSAgOzsgTW9kZSBsaW5lIGRpc3BsYXkgb2YgImJ5IG5hbWUiIG9yICJieSBk YXRlIiBndWFyYW50ZWVzIHRoZSB1c2VyIGENCi0gIDs7IG1hdGNoIHdpdGggdGhlIGNvcnJlc3Bv bmRpbmcgcmVnZXhwcy4gIE5vbi1tYXRjaGluZyBzd2l0Y2hlcyBhcmUNCi0gIDs7IHNob3duIGxp dGVyYWxseS4NCisgICJTZXQgbW9kZS1saW5lIGFjY29yZGluZyB0byBvcHRpb24gYGRpcmVkcC1z d2l0Y2hlcy1pbi1tb2RlLWxpbmUnLiINCiAgICh3aGVuIChlcSBtYWpvci1tb2RlICdkaXJlZC1t b2RlKQ0KICAgICAoc2V0cSBtb2RlLW5hbWUNCi0JICAobGV0IChjYXNlLWZvbGQtc2VhcmNoKQ0K LQkgICAgKGNvbmQgKChzdHJpbmctbWF0Y2gtcA0KLQkJICAgIGRpcmVkLXNvcnQtYnktbmFtZS1y ZWdleHAgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKQ0KLQkJICAgIkRpcmVkIGJ5IG5hbWUiKQ0KLQkJ ICAoKHN0cmluZy1tYXRjaC1wDQotCQkgICAgZGlyZWQtc29ydC1ieS1kYXRlLXJlZ2V4cCBkaXJl ZC1hY3R1YWwtc3dpdGNoZXMpDQotCQkgICAiRGlyZWQgYnkgZGF0ZSIpDQotCQkgICh0DQotCQkg ICAoY29uY2F0ICJEaXJlZCAiIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykpKSkpDQorCSAgKGxldCAo KGNhc2UtZm9sZC1zZWFyY2ggIG5pbCkpDQorICAgICAgICAgICAgKGlmIGRpcmVkcC1zd2l0Y2hl cy1pbi1tb2RlLWxpbmUNCisgICAgICAgICAgICAgICAgKGNvbmNhdCAiRGlyZWQiDQorICAgICAg ICAgICAgICAgICAgICAgICAgKGNvbmQgKChpbnRlZ2VycCBkaXJlZHAtc3dpdGNoZXMtaW4tbW9k ZS1saW5lKQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobGV0KiAoKGwxICAobGVu Z3RoIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykpDQorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAoeHMgIChzdWJzdHJpbmcgZGlyZWQtYWN0dWFsLXN3aXRjaGVzDQorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMCAobWluIGwx IGRpcmVkcC1zd2l0Y2hlcy1pbi1tb2RlLWxpbmUpKSkNCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIChsMiAgKGxlbmd0aCB4cykpKQ0KKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIChpZiAoemVyb3AgbDIpDQorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHhzDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY29uY2F0 ICIgIiB4cyAoYW5kICg8IGwyICBsMSkgIuKApiIpKSkpKQ0KKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICgoZnVuY3Rpb25wIGRpcmVkcC1zd2l0Y2hlcy1pbi1tb2RlLWxpbmUpDQorICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmb3JtYXQgIiAlcyIgKGZ1bmNhbGwgZGlyZWRw LXN3aXRjaGVzLWluLW1vZGUtbGluZQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKSkpDQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKHQgKGNvbmNhdCAiICIgZGlyZWQtYWN0dWFsLXN3aXRjaGVz KSkpKQ0KKyAgICAgICAgICAgICAgKGNvbmQgKChzdHJpbmctbWF0Y2gtcCBkaXJlZC1zb3J0LWJ5 LW5hbWUtcmVnZXhwIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykNCisgICAgICAgICAgICAgICAgICAg ICAiRGlyZWQgYnkgbmFtZSIpDQorICAgICAgICAgICAgICAgICAgICAoKHN0cmluZy1tYXRjaC1w IGRpcmVkLXNvcnQtYnktZGF0ZS1yZWdleHAgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKQ0KKyAgICAg ICAgICAgICAgICAgICAgICJEaXJlZCBieSBkYXRlIikNCisgICAgICAgICAgICAgICAgICAgICh0 IChjb25jYXQgIkRpcmVkICIgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKSkpKSkpDQogICAgIChmb3Jj ZS1tb2RlLWxpbmUtdXBkYXRlKSkpDQogDQogKGRlZmluZS1vYnNvbGV0ZS1mdW5jdGlvbi1hbGlh cyAnZGlyZWQtc29ydC1zZXQtbW9kZWxpbmUNCg== --__158958114405766808abhmp0001.oracle.com-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 22:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158958148011710 (code B ref 41250); Fri, 15 May 2020 22:25:01 +0000 Received: (at 41250) by debbugs.gnu.org; 15 May 2020 22:24:40 +0000 Received: from localhost ([127.0.0.1]:39049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZikv-00032j-6Y for submit@debbugs.gnu.org; Fri, 15 May 2020 18:24:40 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:51154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZikt-00032V-EL for 41250@debbugs.gnu.org; Fri, 15 May 2020 18:24:35 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FMNDNO121055; Fri, 15 May 2020 22:24:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type; s=corp-2020-01-29; bh=dg8xRoR0Eq7NjRzNvU4ndUKIVoEwhE2uq7+j75ULAaM=; b=GTLtc9wKsDHL1//8fjmpUraa+45+QoaLqYz0ipcGfsEXEitLQBozbmH72pvfsu00m/kj lDv0uW+V+yc2iP824q18Fzmoj0DAabNis45msb2BTZoZ3c7kAPJ7mEYH0ngJl/MrtSyx iXQTw1sXVlRIO05KAKZxsrdYnlSOha0nVHZiTqsUsYttDO/vqQsAjzIh3j5RYoF6/w0T eUoif2WfBqRKLfAiLSzvDRN0PE/jxAPaoxmBdbZqVlEF5p+k+1UzQvwPhCaE2x9cWKyL 2ahEUiUuaxLbEFge6RncOwsXFNZCrdvA/HmPw6EqQZBs2c0ItLS7NBX/WTeLLUX0N8EJ ig== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 311nu5p8hc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2020 22:24:29 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04FMOCA5162850; Fri, 15 May 2020 22:24:28 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 3100yfjw3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 May 2020 22:24:28 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04FMORbh000819; Fri, 15 May 2020 22:24:28 GMT MIME-Version: 1.0 Message-ID: <6073a2d5-4024-465d-8293-88ad7f6127ed@default> Date: Fri, 15 May 2020 15:24:26 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: multipart/mixed; boundary="__158958146765766917abhmp0001.oracle.com" X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=838 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150188 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 mlxscore=0 adultscore=0 priorityscore=1501 mlxlogscore=866 impostorscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 cotscore=-2147483648 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005150188 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --__158958146765766917abhmp0001.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sorry. `diredp' should be `dired' everywhere. This patch takes care of that typo. --__158958146765766917abhmp0001.oracle.com Content-Type: application/octet-stream; name="dired-2020-05-15c.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dired-2020-05-15c.patch" ZGlmZiAtdSBkaXJlZC5lbCBkaXJlZC0yMDIwLTA1LTE1Yi1QQVRDSEVELmVsCi0tLSBkaXJlZC5l bAkyMDIwLTA1LTE1IDExOjIzOjMyLjgwNDgyMzgwMCAtMDcwMAorKysgZGlyZWQtMjAyMC0wNS0x NWItUEFUQ0hFRC5lbAkyMDIwLTA1LTE1IDE1OjEzOjUzLjk2NjIwNDYwMCAtMDcwMApAQCAtNDEx NCwyMiArNDExNCw0NSBAQAogICAiTm9uLW5pbCBtZWFucyB0aGUgRGlyZWQgc29ydCBjb21tYW5k IGlzIGRpc2FibGVkLgogVGhlIGlkZWEgaXMgdG8gc2V0IHRoaXMgYnVmZmVyLWxvY2FsbHkgaW4g c3BlY2lhbCBEaXJlZCBidWZmZXJzLiIpCiAKKyhkZWZjdXN0b20gZGlyZWQtc3dpdGNoZXMtaW4t bW9kZS1saW5lIG5pbAorICAiSG93IHRvIGluZGljYXRlIGBkaXJlZC1hY3R1YWwtc3dpdGNoZXMn IGluIG1vZGUtbGluZS4KK1Bvc3NpYmxlIHZhbHVlczoKKyAqIGBuaWwnOiAgICBJbmRpY2F0ZSBu YW1lLW9yLWRhdGUgc29ydCBvcmRlciwgaWYgcG9zc2libGUuCisgICAgICAgICAgICAgRWxzZSBz aG93IGZ1bGwgc3dpdGNoZXMuCisgKiBgYXMtaXMnOiAgU2hvdyBmdWxsIHN3aXRjaGVzLgorICog SW50ZWdlcjogIFNob3cgb25seSB0aGUgZmlyc3QgTiBjaGFycyBvZiBmdWxsIHN3aXRjaGVzLgor ICogRnVuY3Rpb246IFBhc3MgYGRpcmVkLWFjdHVhbC1zd2l0Y2hlcycgYXMgYXJnIGFuZCBzaG93 IHJlc3VsdC4iCisgIDpncm91cCAnRGlyZWQtUGx1cworICA6dHlwZSAnKGNob2ljZQorICAgICAg ICAgIChjb25zdCAgICA6dGFnICJJbmRpY2F0ZSBieSBuYW1lIG9yIGRhdGUsIGVsc2UgZnVsbCIg ICBuaWwpCisgICAgICAgICAgKGNvbnN0ICAgIDp0YWcgIlNob3cgZnVsbCBzd2l0Y2hlcyIgICAg ICAgICAgICAgICAgICAgIGFzLWlzKQorICAgICAgICAgIChpbnRlZ2VyICA6dGFnICJTaG93IGZp cnN0IE4gY2hhcnMgb2Ygc3dpdGNoZXMiIDp2YWx1ZSAxMCkKKyAgICAgICAgICAoZnVuY3Rpb24g OnRhZyAiRm9ybWF0IHdpdGggZnVuY3Rpb24iICAgICAgICAgICA6dmFsdWUgaWRlbnRpdHkpKSkK KwogKGRlZnVuIGRpcmVkLXNvcnQtc2V0LW1vZGUtbGluZSAoKQotICA7OyBTZXQgbW9kZSBsaW5l IGRpc3BsYXkgYWNjb3JkaW5nIHRvIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcy4KLSAgOzsgTW9kZSBs aW5lIGRpc3BsYXkgb2YgImJ5IG5hbWUiIG9yICJieSBkYXRlIiBndWFyYW50ZWVzIHRoZSB1c2Vy IGEKLSAgOzsgbWF0Y2ggd2l0aCB0aGUgY29ycmVzcG9uZGluZyByZWdleHBzLiAgTm9uLW1hdGNo aW5nIHN3aXRjaGVzIGFyZQotICA7OyBzaG93biBsaXRlcmFsbHkuCisgICJTZXQgbW9kZS1saW5l IGFjY29yZGluZyB0byBvcHRpb24gYGRpcmVkLXN3aXRjaGVzLWluLW1vZGUtbGluZScuIgogICAo d2hlbiAoZXEgbWFqb3ItbW9kZSAnZGlyZWQtbW9kZSkKICAgICAoc2V0cSBtb2RlLW5hbWUKLQkg IChsZXQgKGNhc2UtZm9sZC1zZWFyY2gpCi0JICAgIChjb25kICgoc3RyaW5nLW1hdGNoLXAKLQkJ ICAgIGRpcmVkLXNvcnQtYnktbmFtZS1yZWdleHAgZGlyZWQtYWN0dWFsLXN3aXRjaGVzKQotCQkg ICAiRGlyZWQgYnkgbmFtZSIpCi0JCSAgKChzdHJpbmctbWF0Y2gtcAotCQkgICAgZGlyZWQtc29y dC1ieS1kYXRlLXJlZ2V4cCBkaXJlZC1hY3R1YWwtc3dpdGNoZXMpCi0JCSAgICJEaXJlZCBieSBk YXRlIikKLQkJICAodAotCQkgICAoY29uY2F0ICJEaXJlZCAiIGRpcmVkLWFjdHVhbC1zd2l0Y2hl cykpKSkpCisJICAobGV0ICgoY2FzZS1mb2xkLXNlYXJjaCAgbmlsKSkKKyAgICAgICAgICAgIChp ZiBkaXJlZC1zd2l0Y2hlcy1pbi1tb2RlLWxpbmUKKyAgICAgICAgICAgICAgICAoY29uY2F0ICJE aXJlZCIKKyAgICAgICAgICAgICAgICAgICAgICAgIChjb25kICgoaW50ZWdlcnAgZGlyZWQtc3dp dGNoZXMtaW4tbW9kZS1saW5lKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsZXQq ICgobDEgIChsZW5ndGggZGlyZWQtYWN0dWFsLXN3aXRjaGVzKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKHhzICAoc3Vic3RyaW5nIGRpcmVkLWFjdHVhbC1zd2l0Y2hl cworICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg MCAobWluIGwxIGRpcmVkLXN3aXRjaGVzLWluLW1vZGUtbGluZSkpKQorICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAobDIgIChsZW5ndGggeHMpKSkKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIChpZiAoemVyb3AgbDIpCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgeHMKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNv bmNhdCAiICIgeHMgKGFuZCAoPCBsMiAgbDEpICLigKYiKSkpKSkKKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICgoZnVuY3Rpb25wIGRpcmVkLXN3aXRjaGVzLWluLW1vZGUtbGluZSkKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZm9ybWF0ICIgJXMiIChmdW5jYWxsIGRpcmVk LXN3aXRjaGVzLWluLW1vZGUtbGluZQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBkaXJlZC1hY3R1YWwtc3dpdGNoZXMpKSkKKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICh0IChjb25jYXQgIiAiIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykp KSkKKyAgICAgICAgICAgICAgKGNvbmQgKChzdHJpbmctbWF0Y2gtcCBkaXJlZC1zb3J0LWJ5LW5h bWUtcmVnZXhwIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykKKyAgICAgICAgICAgICAgICAgICAgICJE aXJlZCBieSBuYW1lIikKKyAgICAgICAgICAgICAgICAgICAgKChzdHJpbmctbWF0Y2gtcCBkaXJl ZC1zb3J0LWJ5LWRhdGUtcmVnZXhwIGRpcmVkLWFjdHVhbC1zd2l0Y2hlcykKKyAgICAgICAgICAg ICAgICAgICAgICJEaXJlZCBieSBkYXRlIikKKyAgICAgICAgICAgICAgICAgICAgKHQgKGNvbmNh dCAiRGlyZWQgIiBkaXJlZC1hY3R1YWwtc3dpdGNoZXMpKSkpKSkKICAgICAoZm9yY2UtbW9kZS1s aW5lLXVwZGF0ZSkpKQogCiAoZGVmaW5lLW9ic29sZXRlLWZ1bmN0aW9uLWFsaWFzICdkaXJlZC1z b3J0LXNldC1tb2RlbGluZQo= --__158958146765766917abhmp0001.oracle.com-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 May 2020 06:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15896108821736 (code B ref 41250); Sat, 16 May 2020 06:35:01 +0000 Received: (at 41250) by debbugs.gnu.org; 16 May 2020 06:34:42 +0000 Received: from localhost ([127.0.0.1]:39614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZqPC-0000Rw-6T for submit@debbugs.gnu.org; Sat, 16 May 2020 02:34:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZqPA-0000Rj-CW for 41250@debbugs.gnu.org; Sat, 16 May 2020 02:34:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60056) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZqP3-0008Ua-U2; Sat, 16 May 2020 02:34:33 -0400 Received: from [176.228.60.248] (port=4525 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZqP3-0001hm-BN; Sat, 16 May 2020 02:34:33 -0400 Date: Sat, 16 May 2020 09:34:21 +0300 Message-Id: <835zcwv15e.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Arthur Miller on Fri, 15 May 2020 23:08:46 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Arthur Miller > Cc: Drew Adams , 41250@debbugs.gnu.org, > juri@linkov.net > Date: Fri, 15 May 2020 23:08:46 +0200 > > 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. Yes, it does: the CC Mode shows the comment style in use and the minor mode. > 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? The sorting order was just one letter originally, so it sounds like a good idea to have an indication of why the order is this and not another. > 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? Not IMO. Using format strings and functions is "advanced usage", which is normally barred for newbies and relatively inexperienced Emacs users. Popular options should IMO be exposed though easier customization values. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 May 2020 12:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158963149911452 (code B ref 41250); Sat, 16 May 2020 12:19:01 +0000 Received: (at 41250) by debbugs.gnu.org; 16 May 2020 12:18:19 +0000 Received: from localhost ([127.0.0.1]:39958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZvlj-0002ye-5B for submit@debbugs.gnu.org; Sat, 16 May 2020 08:18:19 -0400 Received: from mail-oln040092065099.outbound.protection.outlook.com ([40.92.65.99]:61914 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZvlg-0002yQ-TR for 41250@debbugs.gnu.org; Sat, 16 May 2020 08:18:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NpKBRC1cO+B9bXvrLjQ75w7tPEdydUOziUpgSDyPNf9ZNvQmhe0AXdoiB56DLrFQ3MnHcRBfhHqK9EJFMTYTjE3CCoihShU1tX4b+3GyElDdp96q0rztH+RBXY3+bLVE1ZW/01E1zos2xmehKGiNUfLQ8Q7Xv6VkFEbq2lQ5ZrUQw9NdXK9Fk3siFFmY1HfjChcYKBFh0l9W2DrIhZk4eXyOEkCehAeSPiSI8LtX62hm7zvmLy4s55x2uQOR2UVgPpVQpfY+KRtjduxadIuRj60QHKXQNOWHH0JwoakgnfXECnOQnOT7EqJRT+4FaNK6WQaxocaTkg5kFi+Mdtn5mA== 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=VBHg3Le4zIXX3Fc00QXx+Lcg05rvtxuoYcBq7PiMn+0=; b=VuxaYnK7T+tHHEOAjxaNjyvEHeRWIu5llV2foQMjTtjkC4a3WseqzUh40616Jrk5pUIi1INsERNwJXFih4boe5nnFkBR9koCjT0M+mdnSclYqHi9ytScZ2uL8Kkfb7A1DWaaFBOw6lwFXUfxJMfOym3aLnpb33K4tcxN0gJmuNqCgbvToWLf41sC6u3DuxLobdQEP46tSkCVpL3PF45o1H2VBUNEAHZ9zqwKuHohnfekYCTcwCN9SIbdWZtZ5LhTg1/5exk+H6NSWnNMj+6O7K7OUhLzy5vlQjY2N+ewOj7naL7TAQQ3iRTmRZB1PvzS4yQhF7lOSuNJrp8Mxhs9Ew== 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=VBHg3Le4zIXX3Fc00QXx+Lcg05rvtxuoYcBq7PiMn+0=; b=RWYhNdPsM1P+1GHay+R6V5d28wqKptTYiBE2aUQHla2lOd/vJAzQ235MkLjdqL1vu5EMtLS8pOy7/45B+vAaSYMTTIDXxnTFsqBEC7kW6EDJYA/TqokPpv4tgI781VCxP7wMn8fdumBCjyLMjWYL0JxIbVkqjZdlySyVjOkFShthW8nxi3ocF+I1IzwwKen74NVBjIkGhwOaNyS68ci/ALYEP2tzUGvaP0NchAA7O+SagmOPOeX4TaSx4LUSO5WzvBFuamiv035P/ABmCTwgO1dViM1LhD4FmNyScQ84/EYh5dS3GjSZN1DyKhRfhj7e0Gfn2tZDP4OvgIC+b2mV7w== Received: from VE1EUR01FT032.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::46) by VE1EUR01HT048.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::374) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Sat, 16 May 2020 12:18:09 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e19::53) by VE1EUR01FT032.mail.protection.outlook.com (2a01:111:e400:7e19::222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Sat, 16 May 2020 12:18:09 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7C8AD6933BE5998CFBA4D7EEA2EFD6D1636073673FCA07D5B4FC89F6E522F368; UpperCasedChecksum:3C48F207F396E12DA368018F436B2C1295291347DC88A2B761D1EA6CE92A5653; SizeAsReceived:7967; Count:48 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.3000.022; Sat, 16 May 2020 12:18:09 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> Date: Sat, 16 May 2020 14:18:07 +0200 In-Reply-To: <835zcwv15e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 May 2020 09:34:21 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM6P193CA0046.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::23) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87zha85b0g.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM6P193CA0046.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Sat, 16 May 2020 12:18:08 +0000 X-Microsoft-Original-Message-ID: <87zha85b0g.fsf@live.com> X-TMN: [UAkVKiTA2vEYfSdxA5mjLF8zX2pYXoiB] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: dab0b1c3-f600-4145-40fe-08d7f99331f5 X-MS-TrafficTypeDiagnostic: VE1EUR01HT048: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nqtpWXZvCZcCTQLR8oK2sPDfzNq6Xldr1xdk8EIWHBbZfboUI4w50Snz/S0OIM5NqtcqoTwauZrCehmzN8IxnIdD3++xa8cmKDMc3weYr9j8BYDjKwU/Sr1cw2s+gKe7L9qiNEyaXCt9mDyhVKR0HpS9LXdxU5aV7MSqmg55BphWygnIy0szkV0kmKB9BBcehCLL5bgCGpmGk7f+y5dbJA== 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: vDl+mynFjG6YEZvliltXFFaqruxP1GNWjiAmgbWri+F9R8ugHZ0+egXLWIdE7I5kXnLWNpdJsnxiqoDPkWxEDxWZWbOmD64nXO2ognLCq1Rto6AZ1/1qcEamQcNiJrnsizhxI3OKvOdiiOYnhNnt9Q== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: dab0b1c3-f600-4145-40fe-08d7f99331f5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2020 12:18:09.8585 (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: VE1EUR01HT048 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> From: Arthur Miller >> Cc: Drew Adams , 41250@debbugs.gnu.org, >> juri@linkov.net >> Date: Fri, 15 May 2020 23:08:46 +0200 >> >> 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. > > Yes, it does: the CC Mode shows the comment style in use and the minor > mode. > >> 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? > > The sorting order was just one letter originally, so it sounds like a > good idea to have an indication of why the order is this and not > another. > >> 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? > > Not IMO. Using format strings and functions is "advanced usage", > which is normally barred for newbies and relatively inexperienced > Emacs users. Popular options should IMO be exposed though easier > customization values. Oki, I understand. To me, this info on modeline is superflous. When I am in dired buffer, I have immidiate visual feedback by just lookig at the content. I see if the content is sorted alhabetically or by some other means, for example size (which is not reflected at all on modeline.) Also I like the possibility of user having option to customize this like everything else in Emacs. I will try to code another idea later in the evening as another suggestion. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 May 2020 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Arthur Miller Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158964014926585 (code B ref 41250); Sat, 16 May 2020 14:43:02 +0000 Received: (at 41250) by debbugs.gnu.org; 16 May 2020 14:42:29 +0000 Received: from localhost ([127.0.0.1]:41459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZy1F-0006uj-Ct for submit@debbugs.gnu.org; Sat, 16 May 2020 10:42:29 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZy1D-0006uV-J8 for 41250@debbugs.gnu.org; Sat, 16 May 2020 10:42:28 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04GEcKQ7129028; Sat, 16 May 2020 14:42:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=Uy/6y8lLroLcFUHFVwW5KqyCNTmpoJttroTt6L+DVSw=; b=UlgZHUXgz8rjB1RALdrAtVu3Vkv3JeftcsOKpN9LWgOwY3HTmMhG7bPzWFvYldUv7w2G DEStu0jGaOZ36HUc8s1SG61ztJgClKFqxUUnY0D+rQrjmbYZ2ibzUOgPu18hhIQEKmHO ZPjulz4fyKqKoz7gE0j3l/8oegKyV4Atut8M6OoqMt8X+YkZCfeVM+kLmMAX6rRcc6NQ VmBvyFDhfjEciDGQ+1XPZM9D9XqYxdF1jTS1Amw1BPbNJ4jAMkeO1XIbzKVhV8q87xWH 3fASJK0adpCLz2AmHIh/vIu9kCjHSXjZTNSOaSvdDw2zO2j0glAbHN48gCfedSTfhc0x rQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 3127kqs5wd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 16 May 2020 14:42:21 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04GEcn4F160522; Sat, 16 May 2020 14:42:20 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 312800xhh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 16 May 2020 14:42:20 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04GEgDXC016923; Sat, 16 May 2020 14:42:14 GMT MIME-Version: 1.0 Message-ID: <0adacd7d-ee89-4350-9b5b-a27f4ab1c634@default> Date: Sat, 16 May 2020 07:42:12 -0700 (PDT) From: Drew Adams References: < <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org>> <> <<835zcwv15e.fsf@gnu.org>> In-Reply-To: <<835zcwv15e.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=993 suspectscore=0 malwarescore=0 mlxscore=0 adultscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005160129 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9622 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 cotscore=-2147483648 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005160129 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > maybe Drews idea to have a format string is > > maybe the most flexible one? A function, rather than just a format string, is clearly the most flexible one, of the ones I made available as choices for the option value. And many more users will know how to define a simple function that returns something than will necessarily know about `format' etc. > Not IMO. Using format strings and functions is > "advanced usage", which is normally barred for > newbies and relatively inexperienced Emacs users. > Popular options should IMO be exposed though > easier customization values. Where is it barred to have an option `choice' that allows for a function value? If that were the case then we would presumably not even have `function' as a `defcustom' type. Likewise other types, such as `regexp' and `alist'. The Customize UI is, after all, for newbies too. Some (not I) think it is primarily or _only_ for newbies. But more importantly, there are also very simple choices defined for this option (and `function' is the last in `Value Menu'). And the default behavior is nil - which keeps the longstanding behavior. Nothing obliges a newbie to customize the option to a function value. Barring the use of options that have a function - or a regexp, for that matter - as one of a set of `choice's would be very wrong, IMHO. And I don't see such a barring or convention anywhere in the doc. Anyway, do what you want. If this isn't taken up by vanilla Emacs I'll use it in Dired+. My preference is for vanilla Emacs to do it, to lessen my own maintenance burden, but it's not a big deal. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 May 2020 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15896714973954 (code B ref 41250); Sat, 16 May 2020 23:25:02 +0000 Received: (at 41250) by debbugs.gnu.org; 16 May 2020 23:24:57 +0000 Received: from localhost ([127.0.0.1]:41915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja6Ar-00011h-BO for submit@debbugs.gnu.org; Sat, 16 May 2020 19:24:57 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:35505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja6Ap-00010z-4O for 41250@debbugs.gnu.org; Sat, 16 May 2020 19:24:55 -0400 Received: from mail.gandi.net (m91-129-104-245.cust.tele2.ee [91.129.104.245]) (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 1EFAB200002; Sat, 16 May 2020 23:24:47 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> Date: Sun, 17 May 2020 02:11:04 +0300 In-Reply-To: <0957af50-7f85-455a-9d2c-e96451727872@default> (Drew Adams's message of "Fri, 15 May 2020 11:55:46 -0700 (PDT)") Message-ID: <87wo5b1n5n.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > nil - to get the current behavior > `as-is' - show the full switches > an integer - show first N chars of switches > a function - show whatever it returns, when > passed `dired-actual-switches' Instead of `as-is' a simpler value could be just `t'. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 01:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 41250@debbugs.gnu.org, Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158967820614325 (code B ref 41250); Sun, 17 May 2020 01:17:02 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 01:16:46 +0000 Received: from localhost ([127.0.0.1]:41973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja7v3-0003iz-OS for submit@debbugs.gnu.org; Sat, 16 May 2020 21:16:45 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:45824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja7v0-0003ii-KZ for 41250@debbugs.gnu.org; Sat, 16 May 2020 21:16:43 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04H1Cvef076814; Sun, 17 May 2020 01:16:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=NrxUn2AqABHxKzszwWwhneZhucAcmHfMFjykj0WMg34=; b=f2TazrKRWLZJb4MNMNubAWAfz7m5uwwzwQ/CkvTukOsAK6NBb27AcvcIoQjY3U8lgWwo RxyRWUg7nN9o7vHImUmzmbjM7f3zKxH4MgtC6vNqUJW9lbeIxjjqlqNt3400J06ZbCgR xwauYLwDgaN0xitKI2TvFa2dqMtuD3oOHqKpMGCiXyu1ATNtSUj+3SJJuorhcBLBhNpu KG00pPVteCXgTU6x+j8ssSqYnM+s6DmFsUuV7deeF2OeJWtuGBkFKmZcSGHPYEHxjHE6 hpo7SGbdR/g+07v8OSMBuu2NhdzS9aMgNqUHmYg1dSZa4CR9G/OJaa8O0a2nrgk+434W Lg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 31284kj025-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 17 May 2020 01:16:35 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04H1CniD091908; Sun, 17 May 2020 01:16:35 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 312t2vej95-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 17 May 2020 01:16:34 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04H1GVoi003091; Sun, 17 May 2020 01:16:31 GMT MIME-Version: 1.0 Message-ID: <65ae655e-16fe-43eb-aa1e-75a5501e2e85@default> Date: Sat, 16 May 2020 18:16:30 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <87wo5b1n5n.fsf@mail.linkov.net> In-Reply-To: <87wo5b1n5n.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9623 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=913 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005170009 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9623 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 cotscore=-2147483648 impostorscore=0 malwarescore=0 mlxlogscore=959 lowpriorityscore=0 phishscore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005170009 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > nil - to get the current behavior > > `as-is' - show the full switches > > an integer - show first N chars of switches > > a function - show whatever it returns, when > > passed `dired-actual-switches' >=20 > Instead of `as-is' a simpler value could be just `t'. Simpler how? Because it's self-evaluating? :as-is From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 03:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158968452723776 (code B ref 41250); Sun, 17 May 2020 03:03:01 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 03:02:07 +0000 Received: from localhost ([127.0.0.1]:42019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja9Z0-0006BP-Lz for submit@debbugs.gnu.org; Sat, 16 May 2020 23:02:07 -0400 Received: from mail-oln040092074054.outbound.protection.outlook.com ([40.92.74.54]:19827 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja9Yv-0006As-Om for 41250@debbugs.gnu.org; Sat, 16 May 2020 23:02:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bEMYeFuk5QShdjTJ1vvoG+HXolAEI3zruPDBL445bO+yyT947Gk6UmqEE6bLAi7zbAgUQTb4Gpr6MXokU2AgGwYWxKXjxweDQ7QJLNe9b3HqubP45AB7DnQngLh3TcSLFtBSNh8jIeCkT+wjSMlvlyfgjlzl5UwGjChBXUHAxxyXx/UhDinlcL7vSvD1gilTd9ZRDuLuql0zt+wri7qoywnOVD/XQSO1PNxbUhrijvnUIU+ZeLzuFcaZTniEfRl7OlUO7aHnoQQm8rJLiKrJRECi6XaqOaykc9j47gfhVgWNLcdbSMe4MgU1OJAZJGzuZ6RbbIy4AzReJLjkMKvheA== 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=cg6Kqu45EXWuU81LxNccitXKsUXwNJ6o9Ff5yVfZ1rI=; b=QbpsWeKF8owDB6wn6c6In/Zqd0brBf7kyZYS/jQ9r+5Rx9RUBXbnjyhiiP9ctUlOus8WylfPEVavHvK4lwHlokHL5e9hmOf2P4GNTPPnNcEhKrHhFI1Fq5/buZkVNAoPaq0KDcB9M1SKb+4AWt9p0M13iaJwN7e0RH6qPa+rYA1KOc7rXZGFgJ66RBdlmkZSsQatBvTnUd8iWbUTLJPyAnD12YL4sbJzkp9umZ2BaKt+3NCzgET4o1Tf0O6X2ObFRi8BkCstAwf8eEzP3F1HvH4fAh8yOSgJZxueKkMaG0Tn/WIHDQMgCxut+IV/dSS95T3JG5KMInoN4sZI/Uw0jA== 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=cg6Kqu45EXWuU81LxNccitXKsUXwNJ6o9Ff5yVfZ1rI=; b=kNB1pmzJI/j6n1fxYw2vqfFdVt35tSE58NBrmNmXIs5ZjooMobwZTrA/zmdr0BbNvKcM1TnIsTsVCujjQAQ8gcrXM8wOgf2eEQ6DtQI5/KdF6S9BNfMjH0cfmJuF2M5lG62/7nNtcjM/E+iELzl1oCaRirx8phDF/Xq6Az0ZYZI+QKs83Z8mubX0yysalaaIeysAZvMgyLcIg+WM4Hc9Hz61DiJcFHe4j2UQXu9yBE3CCY+h2BCXT0maRKYkZDwREeEsn2FSfuRXumCBAhaIVBJ4dRlXJ1cQtM3I/g/pyuBqtv+0Vo88R7FbM2cCudczFzYzo7K9Fq03BIzeXI8+rg== Received: from HE1EUR04FT038.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::46) by HE1EUR04HT009.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Sun, 17 May 2020 03:01:55 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::43) by HE1EUR04FT038.mail.protection.outlook.com (2a01:111:e400:7e0d::189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Sun, 17 May 2020 03:01:55 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:BE45E7D1A11BA29A21D725E58CC7E2D9F6CD67F0C80B776DEE9487AC931BBEE9; UpperCasedChecksum:B00238031957298F852D01BEBD7C50CA7148B4002A3E5C39330B273F7AB0223F; SizeAsReceived:7981; Count:48 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.3000.022; Sun, 17 May 2020 03:01:55 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> Date: Sun, 17 May 2020 05:01:53 +0200 In-Reply-To: <835zcwv15e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 May 2020 09:34:21 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: multipart/mixed; boundary="=-=-=" X-ClientProxiedBy: AM6P195CA0069.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:87::46) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87a7271cym.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM6P195CA0069.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:87::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Sun, 17 May 2020 03:01:54 +0000 X-Microsoft-Original-Message-ID: <87a7271cym.fsf@live.com> X-TMN: [OyJmYYMuaL/qg3RZfB35zfaFX5v/HOEx] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 085dafbf-e832-4658-cd2e-08d7fa0ea7b7 X-MS-TrafficTypeDiagnostic: HE1EUR04HT009: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Qd8//rEV3/+5DS6moS2cqdcRqkRNm2ZZkDL9oonBce7tBxF8bV4VPB2s+T8houPm5PQcpNs/HSoKkhPvMRk7VtEmJ8jp4lFqNOgFxpK92G4I0E0x8KUNTPLvd+iBJT5UD+2cBD5E2pp8Ulcwr8NrPSI5od/FfraNUc5RnDQOUqCtAans0tm4HAM3vFZvOUNceoZiOo+Wx7Ha8iPuakpmg== 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: pjDNUjhsT0ynGRqiPrVHHLP+/Dc9ab99cTc+q3KymJwZCc45MANE8hpc7hLyFWep3LNC0Pu8j+B85uEpP8Pnr6+G66IzL5HZSqYqXZQzEWVaUtXLIdI7jqP3zcTXBXl7ldZlUOkdHGLAy74JLFHPXA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 085dafbf-e832-4658-cd2e-08d7fa0ea7b7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2020 03:01:55.3427 (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: HE1EUR04HT009 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> From: Arthur Miller >> Cc: Drew Adams , 41250@debbugs.gnu.org, >> juri@linkov.net >> Date: Fri, 15 May 2020 23:08:46 +0200 >> >> 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. > > Yes, it does: the CC Mode shows the comment style in use and the minor > mode. > >> 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? > > The sorting order was just one letter originally, so it sounds like a > good idea to have an indication of why the order is this and not > another. > >> 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? > > Not IMO. Using format strings and functions is "advanced usage", > which is normally barred for newbies and relatively inexperienced > Emacs users. Popular options should IMO be exposed though easier > customization values. Ok, what about this strategy: I have introduced dired-mode-line-hook, which is a usual thing in Emacs, which is ment as a list of hooks that user can set. Each hook should return a string that will be concatenated to the lighter. So users can print whatever they want to that string (number of files, dirs etc). I have introduced also another function that will just iterate through hooks concat stuff and update the modeline and refactored some code to call this function instead of old dired-sort-set-modeline. Also dired-sort-set-modeline is changed to work as a mentioned hook and is used as default value for dired-mode-line-hook. If user does not prefer to see any aditional info on modeline then it is just to set dired-mode-line-hook to nil. Obs, that can probably be coded more elegantly, me & elisp are maybe not best friends (yet :-)). I have built and tested emacs with the patch, but I might have missed something. While I was looking through the code to set myself into dired, I have also noticed lots of '^L' chars, I took the freedom to clean it up where I saw them, there are probably more. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=dired.patch --- dired.el 2020-05-14 03:06:34.046112281 +0200 +++ lisp/dired.el 2020-05-17 04:36:20.727942621 +0200 @@ -73,9 +73,9 @@ (defcustom dired-subdir-switches nil "If non-nil, switches passed to `ls' for inserting subdirectories. If nil, `dired-listing-switches' is used." - :group 'dired - :type '(choice (const :tag "Use dired-listing-switches" nil) - (string :tag "Switches"))) + :group 'dired + :type '(choice (const :tag "Use dired-listing-switches" nil) + (string :tag "Switches"))) (defcustom dired-chown-program (purecopy (cond ((executable-find "chown") "chown") @@ -238,6 +238,14 @@ :group 'dired :type 'hook) +(defcustom dired-mode-line-hook 'dired-sort-set-mode-line + "Run when dired is displaying it's info on modeline. Default hook is +dired-set-sort-mode-line, which displays sorting order used in current + dired buffer. Every hook in the list should return a string that + will be appended to dired info already shown on modeline." + :group 'dired + :type 'hook) + (defcustom dired-before-readin-hook nil "This hook is run before a Dired buffer is read in (created or reverted)." :group 'dired @@ -634,7 +642,7 @@ "Additional expressions to highlight in Dired mode.") (defvar dnd-protocol-alist) - + ;;; Macros must be defined before they are used, for the byte compiler. (defmacro dired-mark-if (predicate msg) @@ -649,57 +657,57 @@ Return value is the number of files marked, or nil if none were marked." `(let* ((inhibit-read-only t) count - (use-region-p (and dired-mark-region - (region-active-p) - (> (region-end) (region-beginning)))) - (beg (if use-region-p - (save-excursion - (goto-char (region-beginning)) - (line-beginning-position)) - (point-min))) - (end (if use-region-p - (save-excursion - (goto-char (region-end)) - (if (if (eq dired-mark-region 'line) - (not (bolp)) - (get-text-property (1- (point)) 'dired-filename)) - (line-end-position) - (line-beginning-position))) - (point-max)))) - (save-excursion - (setq count 0) - (when ,msg - (message "%s %ss%s%s..." - (cond ((eq dired-marker-char ?\s) "Unmarking") - ((eq dired-del-marker dired-marker-char) - "Flagging") - (t "Marking")) - ,msg - (if (eq dired-del-marker dired-marker-char) - " for deletion" - "") - (if use-region-p - " in region" - ""))) - (goto-char beg) - (while (< (point) end) - (when ,predicate - (unless (= (following-char) dired-marker-char) - (delete-char 1) - (insert dired-marker-char) - (setq count (1+ count)))) - (forward-line 1)) - (when ,msg (message "%s %s%s %s%s%s" - count - ,msg - (dired-plural-s count) - (if (eq dired-marker-char ?\s) "un" "") - (if (eq dired-marker-char dired-del-marker) - "flagged" "marked") - (if use-region-p - " in region" - "")))) - (and (> count 0) count))) + (use-region-p (and dired-mark-region + (region-active-p) + (> (region-end) (region-beginning)))) + (beg (if use-region-p + (save-excursion + (goto-char (region-beginning)) + (line-beginning-position)) + (point-min))) + (end (if use-region-p + (save-excursion + (goto-char (region-end)) + (if (if (eq dired-mark-region 'line) + (not (bolp)) + (get-text-property (1- (point)) 'dired-filename)) + (line-end-position) + (line-beginning-position))) + (point-max)))) + (save-excursion + (setq count 0) + (when ,msg + (message "%s %ss%s%s..." + (cond ((eq dired-marker-char ?\s) "Unmarking") + ((eq dired-del-marker dired-marker-char) + "Flagging") + (t "Marking")) + ,msg + (if (eq dired-del-marker dired-marker-char) + " for deletion" + "") + (if use-region-p + " in region" + ""))) + (goto-char beg) + (while (< (point) end) + (when ,predicate + (unless (= (following-char) dired-marker-char) + (delete-char 1) + (insert dired-marker-char) + (setq count (1+ count)))) + (forward-line 1)) + (when ,msg (message "%s %s%s %s%s%s" + count + ,msg + (dired-plural-s count) + (if (eq dired-marker-char ?\s) "un" "") + (if (eq dired-marker-char dired-del-marker) + "flagged" "marked") + (if use-region-p + " in region" + "")))) + (and (> count 0) count))) (defmacro dired-map-over-marks (body arg &optional show-progress distinguish-one-marked) @@ -817,7 +825,6 @@ (user-error (if (stringp error) error "No files specified"))) result)) - ;; The dired command (defun dired-read-dir-and-switches (str) @@ -1197,7 +1204,6 @@ (setq blist (cdr blist)))))) found))) - ;; Read in a new dired buffer (defun dired-readin () @@ -1231,16 +1237,16 @@ ;; same performance advantages without the problem of breaking ;; users of after/before-change-functions. (combine-change-calls (point-min) (point-max) - (let ((inhibit-read-only t) - ;; Don't make undo entries for readin. - (buffer-undo-list t)) - (erase-buffer) - (dired-readin-insert)) - (goto-char (point-min)) - ;; Must first make alist buffer local and set it to nil because - ;; dired-build-subdir-alist will call dired-clear-alist first - (setq-local dired-subdir-alist nil) - (dired-build-subdir-alist)) + (let ((inhibit-read-only t) + ;; Don't make undo entries for readin. + (buffer-undo-list t)) + (erase-buffer) + (dired-readin-insert)) + (goto-char (point-min)) + ;; Must first make alist buffer local and set it to nil because + ;; dired-build-subdir-alist will call dired-clear-alist first + (setq-local dired-subdir-alist nil) + (dired-build-subdir-alist)) (let ((attributes (file-attributes dirname))) (if (eq (car attributes) t) (set-visited-file-modtime (file-attribute-modification-time @@ -1556,7 +1562,7 @@ (put-text-property (+ (point) 4) (line-end-position) 'invisible 'dired-hide-details-link)))) (forward-line 1)))) - + ;; Reverting a dired buffer (defun dired-revert (&optional _arg _noconfirm) @@ -1899,7 +1905,7 @@ ;; No need to do this, now that top-level items are fewer. ;;;; ;; Get rid of the Edit menu bar item to save space. - ;(define-key map [menu-bar edit] 'undefined) + ;(define-key map [menu-bar edit] 'undefined) (define-key map [menu-bar subdir] (cons "Subdir" (make-sparse-keymap "Subdir"))) @@ -2209,7 +2215,7 @@ map) "Local keymap for Dired mode buffers.") - + ;; Dired mode is suitable only for specially formatted data. (put 'dired-mode 'mode-class 'special) @@ -2317,14 +2323,14 @@ (add-hook 'file-name-at-point-functions #'dired-file-name-at-point nil t) (add-hook 'isearch-mode-hook #'dired-isearch-filenames-setup nil t) (run-mode-hooks 'dired-mode-hook)) - + ;; Idiosyncratic dired commands that don't deal with marks. (defun dired-summary () "Summarize basic Dired commands and show recent Dired errors." (interactive) (dired-why) - ;>> this should check the key-bindings and use substitute-command-keys if non-standard + ;>> this should check the key-bindings and use substitute-command-keys if non-standard (message "d-elete, u-ndelete, x-punge, f-ind, o-ther window, R-ename, C-opy, h-elp")) @@ -2631,7 +2637,7 @@ (if (string-match (concat "^" (regexp-quote dir)) file) (substring file (match-end 0)) file)) - + (define-minor-mode dired-hide-details-mode "Toggle visibility of detailed information in current Dired buffer. When this minor mode is enabled, details such as file ownership and @@ -2668,7 +2674,7 @@ 'add-to-invisibility-spec 'remove-from-invisibility-spec) 'dired-hide-details-link)) - + ;;; Functions to hide/unhide text (defun dired--find-hidden-pos (start end) @@ -3553,7 +3559,7 @@ (let ((beg (point))) (completion--insert-strings files) (put-text-property beg (point) 'mouse-face nil))) - + ;; Commands to mark or flag file(s) at or near current line. (defun dired-repeat-over-lines (arg function) @@ -4014,7 +4020,7 @@ (message (if (= count 1) "1 mark removed" "%d marks removed") count)))) - + ;; Logging failures operating on files, and showing the results. (defvar dired-log-buffer "*Dired log*") @@ -4080,7 +4086,7 @@ ;; Log a summary describing a bunch of errors. (dired-log (concat "\n" string "\n")) (dired-log t)) - + ;;; Sorting ;; Most ls can only sort by name or by date (with -t), nothing else. @@ -4114,23 +4120,39 @@ "Non-nil means the Dired sort command is disabled. The idea is to set this buffer-locally in special Dired buffers.") +(defun dired-set-mode-line () + ;; Flush dired info to mode-line (eval all dired-mode-line-hook) + ;; If dired-mode-line-hook is nil, it means user has manually + ;; disabled displaying of Dired info on mode-line, so let's respect + ;; the user decision. + (when (eq major-mode 'dired-mode) + (if dired-mode-line-hook + (progn + (let ((mode-info "")) + (dolist (hook dired-mode-line-hook) + (setq mode-info (concat " " (funcall hook)))) + (setq mode-name (concat mode-name mode-info)))) + (setq mode-name "Dired")) ;; reset name if dired-mode-line-hook is nil + (force-mode-line-update))) + (defun dired-sort-set-mode-line () ;; Set mode line display according to dired-actual-switches. ;; Mode line display of "by name" or "by date" guarantees the user a ;; match with the corresponding regexps. Non-matching switches are - ;; shown literally. + ;; shown literally if user has not disabled displaying them by + ;; customizing dired-display-listing-switches variable. (when (eq major-mode 'dired-mode) - (setq mode-name - (let (case-fold-search) - (cond ((string-match-p - dired-sort-by-name-regexp dired-actual-switches) - "Dired by name") - ((string-match-p - dired-sort-by-date-regexp dired-actual-switches) - "Dired by date") - (t - (concat "Dired " dired-actual-switches))))) - (force-mode-line-update))) + (let* ((mode-line-info) + (case-fold-search)) + (cond ((string-match-p + dired-sort-by-name-regexp dired-actual-switches) + (setq mode-line-info " by name")) + ((string-match-p + dired-sort-by-date-regexp dired-actual-switches) + (setq mode-line-info " by date")) + (t + (setq mode-line-info (concat " " dired-actual-switches)))) + mode-line-info))) (define-obsolete-function-alias 'dired-sort-set-modeline #'dired-sort-set-mode-line "24.3") @@ -4174,7 +4196,7 @@ dired-actual-switches) "t" " -t"))))) - (dired-sort-set-mode-line) + (dired-set-mode-line) (revert-buffer)) ;; Some user code loads dired especially for this. @@ -4197,7 +4219,7 @@ With optional second arg NO-REVERT, don't refresh the listing afterwards." (dired-sort-R-check switches) (setq dired-actual-switches switches) - (dired-sort-set-mode-line) + (dired-set-mode-line) (or no-revert (revert-buffer))) (defvar-local dired-subdir-alist-pre-R nil @@ -4233,7 +4255,6 @@ ;; No pre-R subdir alist, so revert to main directory ;; listing: (list (car (reverse dired-subdir-alist)))))))) - ;;;; Drag and drop support @@ -4337,7 +4358,6 @@ (let ((local-file (dnd-get-local-file-uri uri))) (if local-file (dired-dnd-handle-local-file local-file action) nil))) - ;;;; Desktop support --=-=-=-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 03:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Eli Zaretskii , juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158968501324504 (code B ref 41250); Sun, 17 May 2020 03:11:01 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 03:10:13 +0000 Received: from localhost ([127.0.0.1]:42025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja9gj-0006N4-WF for submit@debbugs.gnu.org; Sat, 16 May 2020 23:10:12 -0400 Received: from mail-oln040092075082.outbound.protection.outlook.com ([40.92.75.82]:48575 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ja9gi-0006MR-FD for 41250@debbugs.gnu.org; Sat, 16 May 2020 23:10:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HUIAWVLBc0S3fCl9UXTSiDowEFxDbQK2YCljnWazNb+oe0O7YkLr1BK2+9yRyZyhB3Mjv6xrKv4L2hzQoy/hFAG/80mZWk2vPzZJbBQj5KaUpDIpbklY8Jtg06FaPbD/6YJj0by6eEU4h0JXtyo/pTS99xwY1hE+AtSoQrom2hOpmQ7WWRO4hHAnMUny50pjGjLEFVSSfyDXJwqTQhkQAqLHV7IB/lIyEsoHlkXWtFHSthGT3gWHh8gOWHN8epmisQ6+iHzLCNnwcg3yYwPSMLHA1x32aGCc2633cEcTYVbPq7dtcoaiVG7Z3GQImCS3kKPYFPC205rZMnqZ4RghXw== 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=v+8XvkjGLmGAq6trK/usIFheYYl74XCx4LPCW8h76Ts=; b=Os6M033Ufe8f2g+874j2DH3W8fqai5mExwkAPKkFCgA5JCbiHpUOpm6kCvkdr+4mA+C9u8rk2kpH/kI1vWKGOzofK6cG8e7I9kFWMBRt65D3a0YYBi/DWOlcufO1Dg48U+1NwRDNiYk41N+gIuSxiKHngDg+y8CrwLoPAuzAMjsnLvKo9r9srgtJBZb8476Tu39yB2GMpbNh+QMAIKkTHfdZakLQ8/DxrmdchvwhQnSTlL7MN4GZnbBTVsJvCa/43dMCeZOFC9W8h6ICVJOyR0nl0t0tLJ651zWIY4nif/t+6TBSMzN3/WMhyq51Gw3pUvt7+wb8Sl0xll+Um99asQ== 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=v+8XvkjGLmGAq6trK/usIFheYYl74XCx4LPCW8h76Ts=; b=M7QKJAyeVhtNIlTxCchs2MtYG1AK7RkWhVDveLYv+wf6t0QZ5GSJ6Zzrl1OPxHJq5G1lDJUSxYdKrjzdjgyPSewTj9abhKdXLsq5qake+7wWCVvd7793tFFHcuq6GeE/v/FV7AtQLUAB2xU4a3wf1YQX+Nfju6qjrEzzRIX1BtAHWre3ZD/smVMTLFuN26cOyjJRSS1C1QHJ6wv0brgzpsSH26AbEkp01AaNo/gwjw/DNecc07GL0qcogGLWPRaum3ByA0s3CP6QC04MaaXmd/iNxTnIdEQktEA28BBmxfItQTpTSdnfOm3nMFPqq2ZRmQKU1IIN/WK8kELsPgLWXg== Received: from HE1EUR04FT038.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::4b) by HE1EUR04HT034.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::316) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Sun, 17 May 2020 03:09:58 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::43) by HE1EUR04FT038.mail.protection.outlook.com (2a01:111:e400:7e0d::189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Sun, 17 May 2020 03:09:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8C40E48E6CA0AD9BA1FE84107E277D34844D8372DEEDEC30D87494AF5AF0EC8E; UpperCasedChecksum:E5EEB964B621583937CC0671F112F26C64F2627663C6CFB1D8ABDEBDA34E7F23; SizeAsReceived:8032; Count:48 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.3000.022; Sun, 17 May 2020 03:09:58 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> Date: Sun, 17 May 2020 05:09:56 +0200 In-Reply-To: (Drew Adams's message of "Fri, 15 May 2020 15:19:00 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM5PR0201CA0010.eurprd02.prod.outlook.com (2603:10a6:203:3d::20) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <875zcv1cl7.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM5PR0201CA0010.eurprd02.prod.outlook.com (2603:10a6:203:3d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Sun, 17 May 2020 03:09:57 +0000 X-Microsoft-Original-Message-ID: <875zcv1cl7.fsf@live.com> X-TMN: [o2MTNf/s8SdIFqdJ5Hso+rPTTHRRcKeO] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e759a5cf-8a9a-41ca-1844-08d7fa0fc79d X-MS-TrafficTypeDiagnostic: HE1EUR04HT034: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zXHuK3668TZqNFt1oeNp8+x4cdGHIx/eGvhX+MDjnjpbP2FaLiuxDmIDcTUKoisnjvGI+DVsUGJ9U2ZDZnF5FpR7X0Rjkg/37NoWrNvMlDXuPZqGzzX3hHif+ERUnPC7T5Z/y4DmdZxYidRuoV0GoP6lht5VPT90Lxn8r7eptPYIubyFnPXgZE+DEDfpzwdBxm6t45axkDmOKcxRM8JyPw== 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: eIiaJDf/iX8ypCeo/bvBT8gf1fY/LkYWQPi8fZJl/Q7aCd0weJmU6O6QD0m5RPfOgjRugE+oXdOijDpIvuXI/EMh59ehxz/ouJ2Nyg5Ep9fQnt56a683CRZJjXBLMPMlYTZ8hPI78HDIV0DOmRHRDw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: e759a5cf-8a9a-41ca-1844-08d7fa0fc79d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2020 03:09:58.0427 (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: HE1EUR04HT034 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Drew Adams writes: >> I am actually now wondering, why is it assumed that >> Dired will show sorting order on modeline by default? > > Because it's useful. And it is very common to use > `s', to toggle between name and date sorting. Those > are the common sorts, and switches that match their > regexps are the most common. > > Those predefined regexps could presumably be tweaked > to accommodate more patterns that have time in them, > but IMHO it's not worth it. > > This mode-line indication is not, primarily, about > showing you the current `ls' switches. It's about > telling you whether files are sorted by name or time. > > The relevant function is called `dired-sort-set-mode-line'. > ^^^^ Yeah, I completely understand, but as I wrote to Eli too, to me, dired buffer itself is an immidate visual feedback. I don't need addtional information on modeline to tell me if files are sorted alfabetically or by some other mean. So I prefer to save mode-line space for something else. It is just my personal preference, I have understanding that other people might have different taste. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 07:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, Eli Zaretskii , juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158969876715709 (code B ref 41250); Sun, 17 May 2020 07:00:02 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 06:59:27 +0000 Received: from localhost ([127.0.0.1]:42183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaDGg-00045J-RX for submit@debbugs.gnu.org; Sun, 17 May 2020 02:59:27 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaDGf-000455-1H for 41250@debbugs.gnu.org; Sun, 17 May 2020 02:59:25 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04H6uugu134869; Sun, 17 May 2020 06:59:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=4If5Z9hgMQJ/5fLJfvnTrJhZNZ9U3r2j4h0bYXvKmpo=; b=rjmjqwLhYPNDc0eeS67n6KVNPKoXdlvSC+6FsM9+y+XGAxEoctz7+w68aux0Bxs9rfth pSVWplLpI2mzWXcgN1MobLT3klf78CsSsXTJg3GGJ/USA9KQXmok1KCEgetGBYbc6J7X 95Pu4mouJjO1nKdDACSKc8g9M1SRsjsi9RGn65+NCFQfc1OhD5o0PdOIb0L6PMqxl7T0 jJ5RDD5C1pWN7VEa4cBPbo7irxQNYWa48yCpt+6mcoeBln5DfF73p5afaQvyMjtxQoTx La1dcYvAVPPtB8n59oggfVSoRUVao3nAYkLkK6E15zy9RBRf5mJ3mGeRZXkVrZcHwIgs Ew== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 3127kqtmyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 17 May 2020 06:59:18 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04H6wnCb142751; Sun, 17 May 2020 06:59:18 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 312t2w2mx9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 17 May 2020 06:59:18 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04H6xCaT032325; Sun, 17 May 2020 06:59:12 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 16 May 2020 23:59:11 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9623 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=661 phishscore=1 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005170061 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9623 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 impostorscore=0 suspectscore=0 mlxlogscore=677 malwarescore=0 cotscore=-2147483648 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005170061 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > This mode-line indication is not, primarily, about > > showing you the current `ls' switches. It's about > > telling you whether files are sorted by name or time. > > Yeah, I completely understand, but as I wrote to Eli too, to me, dired > buffer itself is an immidate visual feedback. I don't need addtional > information on modeline to tell me if files are sorted alfabetically or > by some other mean. Some of us do need/want that aid. And no, it's not always obvious what the current order is. > So I prefer to save mode-line space for something > else. It is just my personal preference, I have > understanding that other people might have different taste. Indeed; likewise. And I'm in favor of making it easy for different people to get different behavior in this regard. In general, user customization of the mode-line is not simple. When a mode like Dired can offer useful info in the mode-line, in a few chars, it should. And when it can offer users easy ways to change what's shown there and how, it should. That doesn't mean that providing a few simple choices and simple ways to choose will satisfy all user desires in this department. Fortunately ;-). From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Eli Zaretskii , juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15897139878389 (code B ref 41250); Sun, 17 May 2020 11:14:02 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 11:13:07 +0000 Received: from localhost ([127.0.0.1]:42416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaHE4-0002Al-SG for submit@debbugs.gnu.org; Sun, 17 May 2020 07:13:07 -0400 Received: from mail-oln040092065090.outbound.protection.outlook.com ([40.92.65.90]:26271 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaHDz-0002AQ-Sy for 41250@debbugs.gnu.org; Sun, 17 May 2020 07:12:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BhfI6mlyw8oMjvhuQjOby1WK83+D+8QE0c9Gz0DHZ8yE5CZL476bwtmhpC179MdufMNZaxJrWBh3MqGRg1slZ5K26AQrUKkXSDtz9hLJP/Nh+X4CwRCRapbcPtZwv8rpFYUWiXqvBRLT+AQxxPV4ksBSg/fKjRWCSv4J1gyox+zjnx8XwPFmA3w3s4of0sIm3sy5v+/KuIj6gGsN7LSgkDsDvsJDYi3o/xrhAW2XoJTAKCnOjRp/D0wyJmZplj6LOIWLxFamy142sRF+dBZ5yL8Dc4xiAhbC2yFpCQXb8fJTW9vxRNY7dzJNSgx/sEIgZf2ebl3NoO20c+M4Uzs0uQ== 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=/FskQ/quR6w1Gjkdk7vK3ocNS29eNPEAVGPgrVM8EAY=; b=PsoKJY+1EpNia/Ge+g9coGoimjvLG995w0ZkswlLS3WH9ROHmaBcmF4AGn4JpNnnhngjNgGiQnYoevIc2Nplr3Fquy+LY7bf7ZnhWX84/3Czn9N/h61V/sNI02Rg47K6qVHs40mt9KPamKad0WYpPrM1sY6uEsn/mWVJ/44t0r0csjZX59IgK2oWr0LYDJtflUpda9jWlqg9wlh1eS8jZrlPAP5nq7yE8PhQf/DyatnAou2R2iqAMd4ffiGp/OPWz6zoXuOD/qnZisj42GyqukBVZ/iIh6vs5uNQYH7z4u7M64jmQ2+MRfIL7R5J2i4yzOWBaSvqiZ2UMMzIUpZhzw== 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=/FskQ/quR6w1Gjkdk7vK3ocNS29eNPEAVGPgrVM8EAY=; b=DA14omHA6q7BXHQb5fEEn4iSyeOaof1dB4hSfiyCX1S36x8JJjE2ksdP4MuGpcoU/7EsngO+7MrjP24mW4+NBNdvnPO9hZxx8OcrpxLFuSgC3J7T5KGW7He+g1E6HQTUCPlbFowMS5p5aQD2WjbC/95fQtAWR5YRlERP9hip+g2ipU0i0zitx4XKCYKP64WuuT5MAxRggjJR4cRsrIU7AcyhSWsl6Py4tqtjQTXvAbpsIzhy2GCkiNTNgjCgUIHbWtWeqsR3saHPOQbbqBvKD/QKLkZSAAmn7Nd0QZPfGF/cWi6sWPStwQVQNcyjWk0GBDwMcJ1YHiB0bEjE/Fegqg== Received: from VE1EUR01FT059.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::42) by VE1EUR01HT194.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Sun, 17 May 2020 11:12:49 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e19::40) by VE1EUR01FT059.mail.protection.outlook.com (2a01:111:e400:7e19::383) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Sun, 17 May 2020 11:12:49 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:6018874E63A7929B9571B8C735F1A063DBA6AC682D40FEB829152179101E2FEB; UpperCasedChecksum:96E643C6C2CE3E646C6E148DD559602B6290612964F6CA2F0E3487D3A757ABC6; SizeAsReceived:8159; Count:48 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.3000.022; Sun, 17 May 2020 11:12:49 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> Date: Sun, 17 May 2020 13:12:47 +0200 In-Reply-To: (Drew Adams's message of "Sat, 16 May 2020 23:59:11 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM6P194CA0028.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::41) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <874kse6ci8.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM6P194CA0028.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24 via Frontend Transport; Sun, 17 May 2020 11:12:48 +0000 X-Microsoft-Original-Message-ID: <874kse6ci8.fsf@live.com> X-TMN: [EM05CvtjtC8Q9pMK4Djkbok1p4a0Jtzt] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 580b11fd-bb2c-4948-5feb-08d7fa533b8d X-MS-TrafficTypeDiagnostic: VE1EUR01HT194: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RC3Cyu6jcD9mKO5iqgITJbZIRSrFJ6u5SiSXZEZXh2dg2lq8ykJfJ3iZ5H4m5jdtLdipnpRkYZCskKvXWSvdAvXpiS1eCHsPVFKcfrNxYjhwB+QLt45T7u/1mNmnX99M3OsWTjs5dVEFVfDvNX/w3O46NjaxLuQAwXAY5dlboGCPx+gnwBrTrgW6eaZnfWEkTl/QL6/YTCU3b4A8DPgHSQ== 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: NjAQQXNGEJ3FSh9zAEFI/6EPrrlZEvBlugiYmwggGd4t50/fNlRE3RoI9Nb1uG+Yvgm9jPZ8g6KUyGpDsN/zuuj9GEsYlWimTSKnG6s9lPgK711PswQixsRIIe+fWZOANwJ65g5CG4HwLgMBrK7JeA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 580b11fd-bb2c-4948-5feb-08d7fa533b8d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2020 11:12:48.9951 (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: VE1EUR01HT194 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Drew Adams writes: > That doesn't mean that providing a few simple > choices and simple ways to choose will satisfy all > user desires in this department. Fortunately ;-). Indeed! If one aim to satisfy everybody one ends satisfying nobody ... usually (I talk about software platorms and architecture :-)). From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158972864517405 (code B ref 41250); Sun, 17 May 2020 15:18:02 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 15:17:25 +0000 Received: from localhost ([127.0.0.1]:44306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaL2a-0004We-Qr for submit@debbugs.gnu.org; Sun, 17 May 2020 11:17:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaL2Y-0004WS-HS for 41250@debbugs.gnu.org; Sun, 17 May 2020 11:17:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60465) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaL2Q-0006O9-Ne; Sun, 17 May 2020 11:17:14 -0400 Received: from [176.228.60.248] (port=2171 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jaL2Q-0007XE-1k; Sun, 17 May 2020 11:17:14 -0400 Date: Sun, 17 May 2020 18:17:05 +0300 Message-Id: <83wo5abngu.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Arthur Miller on Sun, 17 May 2020 05:01:53 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Arthur Miller > Cc: drew.adams@oracle.com, 41250@debbugs.gnu.org, juri@linkov.net > Date: Sun, 17 May 2020 05:01:53 +0200 > > I have introduced dired-mode-line-hook, which is a usual thing in Emacs, > which is ment as a list of hooks that user can set. Each hook should > return a string that will be concatenated to the lighter. So users can > print whatever they want to that string (number of files, dirs etc). > > I have introduced also another function that will just iterate through > hooks concat stuff and update the modeline and refactored some code to > call this function instead of old dired-sort-set-modeline. Also > dired-sort-set-modeline is changed to work as a mentioned hook and is > used as default value for dired-mode-line-hook. > > If user does not prefer to see any aditional info on modeline then it is > just to set dired-mode-line-hook to nil. Obs, that can probably be coded > more elegantly, me & elisp are maybe not best friends (yet :-)). I have > built and tested emacs with the patch, but I might have missed > something. Once again, I think users should have simple means to request simple variations in behavior. A hook is not a simple means, it requires non-trivial knowledge of Lisp. So it should not be the only or main solution to such problems. > While I was looking through the code to set myself into dired, I have > also noticed lots of '^L' chars, I took the freedom to clean it up where > I saw them, there are probably more. You shouldn't remove them, they divide large files into sections, and make it easy to move by "pages". From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 16:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158973332427042 (code B ref 41250); Sun, 17 May 2020 16:36:01 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 16:35:24 +0000 Received: from localhost ([127.0.0.1]:44464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMG4-00071g-2T for submit@debbugs.gnu.org; Sun, 17 May 2020 12:35:24 -0400 Received: from mail-vi1eur06olkn2039.outbound.protection.outlook.com ([40.92.17.39]:59253 helo=EUR06-VI1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMFh-0006yH-Pj for 41250@debbugs.gnu.org; Sun, 17 May 2020 12:35:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DQx+8WYFvgM3+2mOp0VOJEx/Iwjsc7gZ1i5E+j/FOWjfk/nMhCqIcDKeqDHYdTAxgv4fVCgnKU888NjV4Xrz5ejOKbuG5LOHg7kzDPVLm4RRjhj7tgr7KSYq0DPOdiDvHGmO32xWMunjChafjb253boiRwFrKebx4K1WN3vFcoeeNROYF/tirjrIXurQfAyjX1Fbx3qjWceCtOrgdJZVn683IN16JAekh8BIOJPjZLYTJwiZbbZGHeMTfWByQCScEIhzCM+w/5coEQc4Fiy3Taf98qY0BFEXW4y0LwVc0BvQq1NwNZMm1+HW1AXM4pn9SmZ0+2km6pbxB1hQ8YT01w== 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=lys2N//9TPeqIzPYq1l/2uvxlVP44aI0OusD706cE68=; b=ZiBjOI2HiCujPz268BZEXgUSlbLKrCmRQWNh0cytD5jvKMYBcobvH0872Dp/mg+1zTFVnuXa0Y4V45hxy6zJEPfG1c7ER2hj8ZBkWP0ji4nifA5XbMq+8EjrU9o5h+ZcapsHuIaD3V0ibPwzMzBKo+GrEqzVhPHCeCEqxvOvQVOq0d1ANDGUNlMQwX8bUH0TJ+CStBsMhdTDFoaJoWdN7kTYRNnNSwWi7nHz+PYlx59fwmUT7lnPotpJHsDLGmG9rDIYqKWWiF4fKgtIvMyyBdQyxAQKpvsoz97HUs2nZw4+MyVvY+7T5PO4c5i78ah8ICwcvFwP5WrotAC1KcC4MQ== 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=lys2N//9TPeqIzPYq1l/2uvxlVP44aI0OusD706cE68=; b=tvFTPwR7IFHY8rxw77r6FbTwwR3Z/6QA5fkOTSY2hXXjNgBWwzMssX0tircWRV718noD6ObqQm0jr+ZIIptFd/V13S+tR4BTrANXUJTROlaL/XStMCzRFyQY3K1ti0Aj7LNxeQMIGY0fS832H5gqWddbf76PGvnSiPSvl4fCZP7fjoZhM+1KAKVsgQmPAWgsoKqTelX0EaZYOaM4YVwud5oZKTwaSthseQ/t2iAXh7LDfvwKaLJy45ESL1zSJHmcpKvi85dXVf9++ltJ8jGcYoLfK82bfas+m2/Z3jR+CDi7VPeY/ou0uqrLP+11tgaPk01ZOWaKrVi0/xxdOcNG0w== Received: from AM7EUR06FT054.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::4d) by AM7EUR06HT094.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::269) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Sun, 17 May 2020 16:34:55 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc36::45) by AM7EUR06FT054.mail.protection.outlook.com (2a01:111:e400:fc36::407) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Sun, 17 May 2020 16:34:55 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C0F50026A3D436B6AA663530F10EFEF88E71FF8D1745294A73E2C6775D3584BE; UpperCasedChecksum:B9127A1A4355A66CE110FB11EBE5132E11C637E2D5474B9C06821A5276C16758; SizeAsReceived:8083; Count:48 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.3000.022; Sun, 17 May 2020 16:34:55 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> <83wo5abngu.fsf@gnu.org> Date: Sun, 17 May 2020 18:34:53 +0200 In-Reply-To: <83wo5abngu.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 May 2020 18:17:05 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: AM6PR0202CA0067.eurprd02.prod.outlook.com (2603:10a6:20b:3a::44) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87d0724j0y.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM6PR0202CA0067.eurprd02.prod.outlook.com (2603:10a6:20b:3a::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Sun, 17 May 2020 16:34:54 +0000 X-Microsoft-Original-Message-ID: <87d0724j0y.fsf@live.com> X-TMN: [ZsryjoJuVNGVkWy5+dGfVb8oWzi6x1Zi] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: ae7590ac-065a-4e0f-02fc-08d7fa803acd X-MS-TrafficTypeDiagnostic: AM7EUR06HT094: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iFLrx7drfXi/EkWAfUBGHQXipwS8xZjR0h5bReXTt6yXkOp2c7fNHfOG0t1NpD2s9w42tkJUi+dx8Vf1PoSSr8tti0R4fNujSGnjOx9aO58inVKBuueZHBswHekzAWfEEZlOr8wboYaguB9lFfDauDcd7fn+bBFMh3Y6GWtN85+9vNYuPt8UKgYIANJjQZiTNwXMosCjkyxcoq5l9/KmOQ== 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: hcRLKshd5QE8j7spoS/L9ylueC1ijWuyov7csx7VFQH79mjJKFbxkkwOzduIBq/PAeWsHpLnOt25Jl+TFgUYsDnU9s5jGx1TVEIInA0mG7ctguKp5vmCu8AQ1Hb8qgSMKgOaQL+KXVF6f7O7SG4G/g== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae7590ac-065a-4e0f-02fc-08d7fa803acd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2020 16:34:55.0253 (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: AM7EUR06HT094 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Arthur Miller >> Cc: drew.adams@oracle.com, 41250@debbugs.gnu.org, juri@linkov.net >> Date: Sun, 17 May 2020 05:01:53 +0200 >> >> I have introduced dired-mode-line-hook, which is a usual thing in Emacs, >> which is ment as a list of hooks that user can set. Each hook should >> return a string that will be concatenated to the lighter. So users can >> print whatever they want to that string (number of files, dirs etc). >> >> I have introduced also another function that will just iterate through >> hooks concat stuff and update the modeline and refactored some code to >> call this function instead of old dired-sort-set-modeline. Also >> dired-sort-set-modeline is changed to work as a mentioned hook and is >> used as default value for dired-mode-line-hook. >> >> If user does not prefer to see any aditional info on modeline then it is >> just to set dired-mode-line-hook to nil. Obs, that can probably be coded >> more elegantly, me & elisp are maybe not best friends (yet :-)). I have >> built and tested emacs with the patch, but I might have missed >> something. > > Once again, I think users should have simple means to request simple > variations in behavior. A hook is not a simple means, it requires > non-trivial knowledge of Lisp. So it should not be the only or main > solution to such problems. I agree with what you say about elisping requiring more knowledge on users end, of course. Allowing for hooks is quite standard and usual in Emacs, so in that regard, it fits into the "emacs way", if I can call it so (and also a cheap way to get away with this :-)), but yes I agree it is not a newbie friendly. Really newbie friendly would involve adding more regexps, say for type and size and maybe some other "important" criteria, and also adding means of controlling display of those on modeline, either via customize (bunch of variables) or by some kind of gui I guess. Another considerations is that this really is a minor change, since this behaviour of Dired has existed for so long and nobody but me seems to complain about it. I guess, not many people are using dired in way I do, and/or are bothered by ls switches pushing stuff away on modeline. While I was looking to see if there was a solution before I coded mine, I couldn't find anyone asking on forums or SX about this, so I guess it was more of "advanced" usage anyway? In conclusion, it might be a lot of work for quite little regard in terms of how much people would use it. A hook is not that as nice as a gui of course, but it is still better then nothing. I don't know, what do you guys think, is it worth? Is there a need for that, I mean, more than "it would be nice to have"? Another suggestion: Instead of displaying ls-switches per se, dired could display just "by custom". It is consistent with "by name" and "by date" as of currently. Then when user hoovers over that part "by ..." the tooltip showing actuall regexp could be shown. I have a technical question regarding this: is it possilbe to detect in elisp when pointer howers over part of a string, i.e. part of mode-name on a lighter, since a lighter is a button. Would this be quite involved or it can be implemented easily? >> While I was looking through the code to set myself into dired, I have >> also noticed lots of '^L' chars, I took the freedom to clean it up where >> I saw them, there are probably more. > > You shouldn't remove them, they divide large files into sections, and > make it easy to move by "pages". Aha, that is why all those were there; I didn't know. Sorry, I'll never ever touch them again :-). Thanks for the explanation. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158973378731637 (code B ref 41250); Sun, 17 May 2020 16:44:02 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 16:43:07 +0000 Received: from localhost ([127.0.0.1]:44484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMNX-0008ED-C1 for submit@debbugs.gnu.org; Sun, 17 May 2020 12:43:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMNV-0008Dc-Op for 41250@debbugs.gnu.org; Sun, 17 May 2020 12:43:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33979) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaMNP-00044L-03; Sun, 17 May 2020 12:42:59 -0400 Received: from [176.228.60.248] (port=3466 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jaMNO-00046T-Fa; Sun, 17 May 2020 12:42:58 -0400 Date: Sun, 17 May 2020 19:42:49 +0300 Message-Id: <83h7webjhy.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Arthur Miller on Sun, 17 May 2020 18:34:53 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> <83wo5abngu.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Arthur Miller > Cc: drew.adams@oracle.com, 41250@debbugs.gnu.org, juri@linkov.net > Date: Sun, 17 May 2020 18:34:53 +0200 > > I have a technical question regarding this: is it possilbe to detect in > elisp when pointer howers over part of a string, i.e. part of mode-name > on a lighter, since a lighter is a button. Would this be quite involved > or it can be implemented easily? You need to define different help-echo strings for different parts of the string, using text properties. You can see how this is done in bindings.el. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 22:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15897562723283 (code B ref 41250); Sun, 17 May 2020 22:58:01 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 22:57:52 +0000 Received: from localhost ([127.0.0.1]:45079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaSEC-0000qt-7J for submit@debbugs.gnu.org; Sun, 17 May 2020 18:57:52 -0400 Received: from mail-am7eur06olkn2026.outbound.protection.outlook.com ([40.92.16.26]:30657 helo=EUR06-AM7-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaSEB-0000qf-1f for 41250@debbugs.gnu.org; Sun, 17 May 2020 18:57:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OWPTl+XzJd7+OAwkRbacWkuWY3jRFruvjfwtnC/83omiYsjjW6oC8LUoBMuBsU7sPhYw1uNs5zfTdqukHCU+rp5EWMTqAmFxG6h6TNESN1xi7pJo0FY5BkwzRZIg8WnAQiIt5WZ5h9o6+NmtF2jLCAQPIWLemMoEbfipOHKXIEGOypbPB0QX2t1NeWfmBJsUvltuCXPPVj5Q7FK2AXurLFjsMgQ4VqlIyhm6+51Fe/IwUmfcvMxYbOIAU3ST0KVwOAtWX4Zv5ke4E+hv9tU5TeZawHq4G3FYRpjfbt7QnBae57AzBxe4MQtM9njYwlioq3OcOuKbHS6BEy20+UET3g== 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=32akf1vft/VVGfRP0cxrLwdYcs1OvOJ5DpNlGOrVouM=; b=iY1z9pTlF+/V/Nn0GpLWVxSp8cnK4JdidCSOze6Wyv0xAVEsUH3jE/MZuazPYyzuNL3JG1rYGkEU8P+68dDlakFWkJUzwAgdByVpzO9A7dLjjcKYjUKzHgFOb9bqKBsj1IZ4KxIxkGZtkprjJL+3HKlvbTJnqvYI6mLVyfsAv2JGOBAY7H3GLaPDMBdfRxuhG34nW41easFJDzxbfokkZ+I90pxjMvVdcPiYSLbQl0CkTZmyBb++njOmCIgzIshkLJ9sQsWVbTHND1cvbmAlPa5c7rxcaRrQeVMZbioJ4TABDlxSSli9xAyImETv0lMO6RJeSBIdiPrU2af1G5tNfw== 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=32akf1vft/VVGfRP0cxrLwdYcs1OvOJ5DpNlGOrVouM=; b=VDTYcAs6AZkM4TjPu8xpqbnwzIIMc9MW/n6Vt2ZPdLOD6Qy38/d26+kDGyrm5VIpHlKxVs42FHlZVqvKhdJGhziwRpWhi76hv8z9EqjX+kYcTM5SILqBHcha2qfRvHQ1WOZK0Z94rsnKVu9dlcLvui9hcHd05oUFeKYkR1BnwbWTpAG0VASeJU9QHNPZH8DChT8ajqhkHeHcMux6McK3OY+aCisXApihOV7ZWyV9jrSdJgswpSw5CeBm0FthsvLgoInmW8ficSr/wSV8qM5C/7RRPWEiteBvMKgcZ8+IROoQtxjxiCUGue8a4CJwoni2Rtxm2uL4ohj3iHcyMHcuEw== Received: from AM7EUR06FT018.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::53) by AM7EUR06HT205.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Sun, 17 May 2020 22:57:44 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc36::50) by AM7EUR06FT018.mail.protection.outlook.com (2a01:111:e400:fc36::396) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Sun, 17 May 2020 22:57:44 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3AE6580B568F83F106549DDEC233C5685D0155246C46FE9A4F13BC6A77D6B14F; UpperCasedChecksum:93F689F2B1F3CB72C34BA23BA46B9BAA4B345B0729D73DF1445B83C5840B6C8D; SizeAsReceived:8184; Count:48 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.3000.022; Sun, 17 May 2020 22:57:44 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> <83wo5abngu.fsf@gnu.org> <83h7webjhy.fsf@gnu.org> Date: Mon, 18 May 2020 00:57:42 +0200 In-Reply-To: <83h7webjhy.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 May 2020 19:42:49 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: OL1P279CA0064.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:15::15) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87imgu2mqh.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by OL1P279CA0064.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:15::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; Sun, 17 May 2020 22:57:43 +0000 X-Microsoft-Original-Message-ID: <87imgu2mqh.fsf@live.com> X-TMN: [f3CXIoUFuwJ6xXDqoym8OaDZ6m3x7WDZ] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 810eab46-3694-4ea9-114a-08d7fab5b5c6 X-MS-TrafficTypeDiagnostic: AM7EUR06HT205: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vCQ8jzPfkFVfbYNjReOsX2rfOrZCEl86z2oxkbS2XO1CebKeZ0QtpgGc/mpq6DaCFIeL5R+vG9hzKstNQJtJXVfAaBxoptCOHPcZ4qRdGXHN32qMpyLDpAmyXxmfG4r3SPryfw9BrqFT8+tAPWyEaYwJikrWKi3oE/BVb1k/rlF8biiV6f6ISq2S8UBiGlbASOw1mq4FX79FSfod6AUJfw== 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: ZSKJlvbJ0HAoNtIIqwet7F2+WYvAXFOo/5A6Kd7wyk49VAtEXuPUnGizTNLI1/nlhQjRzPrdXrsbhSmHAtBWAaVjANTqYG/6/1J53tOoHI9PxqibszsuKge80H1WOraWpb2SEsbmfm8JkcwbZU8Tkg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 810eab46-3694-4ea9-114a-08d7fab5b5c6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2020 22:57:44.7672 (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: AM7EUR06HT205 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Arthur Miller >> Cc: drew.adams@oracle.com, 41250@debbugs.gnu.org, juri@linkov.net >> Date: Sun, 17 May 2020 18:34:53 +0200 >> >> I have a technical question regarding this: is it possilbe to detect in >> elisp when pointer howers over part of a string, i.e. part of mode-name >> on a lighter, since a lighter is a button. Would this be quite involved >> or it can be implemented easily? > > You need to define different help-echo strings for different parts of > the string, using text properties. You can see how this is done in > bindings.el. Yes. Another question: can I assume, at this time of civilisation development, that everybody has GNU ls, since binutils, or coreutils, or what is the name, is probably default on most *nix distros, as well as on msys2 which is needed to build on Windows. No idea how Mac people are doing in that regard though? If we can assume that, then I can add sort by extension & size, and feature to group dirs first and reverse sort. I can try to detect if gnu ls is present say when dired-mode is loaded, but that would slow down dired every time we open a directory. I can also make a customize option for user to enable those regexpes which requires that user is knowledgable what he/she has on the system, but maybe it is fairly safe to assume that most people have gnu ls these days? :-) Sorry ... From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 23:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller , Eli Zaretskii Cc: 41250@debbugs.gnu.org, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.15897586446993 (code B ref 41250); Sun, 17 May 2020 23:38:02 +0000 Received: (at 41250) by debbugs.gnu.org; 17 May 2020 23:37:24 +0000 Received: from localhost ([127.0.0.1]:45112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaSqS-0001oj-MN for submit@debbugs.gnu.org; Sun, 17 May 2020 19:37:24 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]:37531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaSqP-0001oV-Si for 41250@debbugs.gnu.org; Sun, 17 May 2020 19:37:24 -0400 Received: by mail-yb1-f173.google.com with SMTP id b123so2160906yba.4 for <41250@debbugs.gnu.org>; Sun, 17 May 2020 16:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=sXw/bwvMfqx3kApXFe5G7ZzpTY14h1QwF3Sl1cVL5Aw=; b=ddEa1rr36R01KWnQYmeDk82qj2o2w9jmGMgAkjAtybH/nNr+RYeDVcjJHj33uCl/DT IFNPoX9GtK3vrnWaSfNOY+j25yE2o5dXlu1gCazxwySn4Ct0Gx9Y9SWHevDQCRTIXLKt psLIv/0DP8B2Q1Cq4e19pFAYpfxIlFAlbFnr9SjNEceo3aECZMhpzvT+s5P7piUgrrrC nsASFKMZzVfYAH0gXmtH6g+8jrUhuSsydLHavGg8pHkXDzM3GYm4p12xaFR4JxJKGWWI GApYIprW0j1+178sU90zARPxgA7UXlHJk9uItkgxaV9dPw1Zgqbiq+gbmQtPh21O9R31 GQrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=sXw/bwvMfqx3kApXFe5G7ZzpTY14h1QwF3Sl1cVL5Aw=; b=mzkudJ+E2RcsR4VJmet7XrBs/HvmP2PjhfHdPn/GFpOOKIgI6lxoOUzO2XBZltuym3 xwfHK5rDP/5bxPowK1ikb7XHFDRjEJbeS99Kf45W2LA8SMWDE/DClMxLlvraJdHo/NL9 1/1x/pPTi3mFGmP5FsEEijqgclvLjw8AUDj6ytOgSUQ+TQw6/trOiVaIhMulzbDvJrGP dhzdVKTD0bQRFaJGQdS9LdbWqRgggYWh5uH3V+H0iZO31BYW2Xd1ddRIdxnwpuAVzlx1 zThni4kYfIEfI2ffc51Xmug8ZXgAUYvjKl1dgl+s7anuYFfGehDkPcGVuXSwRM80hLNB uWAw== X-Gm-Message-State: AOAM530ZEoA12V9bISX+CNhmh9NhqYDEIzcYjS9hWHp9sK0itNInkqQB 3aN9UDHeCxGG5dgF2bNuAhZdVek08/8oUd2EjFE= X-Google-Smtp-Source: ABdhPJxQUquDq2V4SnOtnAFhVCyoGHObUm0uVYhi/eVsQHxIxImKQnWpHVzm9qLXrOpRc8Lv7/yS42HbuBLU58m7WTg= X-Received: by 2002:a25:bb08:: with SMTP id z8mr22148532ybg.129.1589758636223; Sun, 17 May 2020 16:37:16 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 17 May 2020 16:37:15 -0700 From: Stefan Kangas In-Reply-To: References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> <83wo5abngu.fsf@gnu.org> <83h7webjhy.fsf@gnu.org> MIME-Version: 1.0 Date: Sun, 17 May 2020 16:37:15 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Arthur Miller writes: > Another question: can I assume, at this time of civilisation > development, that everybody has GNU ls, since binutils, or coreutils, or > what is the name, is probably default on most *nix distros, as well as > on msys2 which is needed to build on Windows. No idea how Mac people are > doing in that regard though? MacOS has BSD userland, as does *BSD. You can install it and use GNU coreutils optionally, but I would expect only a minority of users to do that. Best regards, Stefan Kangas From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2020 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arthur Miller Cc: 41250@debbugs.gnu.org, drew.adams@oracle.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158981197122840 (code B ref 41250); Mon, 18 May 2020 14:27:02 +0000 Received: (at 41250) by debbugs.gnu.org; 18 May 2020 14:26:11 +0000 Received: from localhost ([127.0.0.1]:47933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jagiZ-0005wK-F5 for submit@debbugs.gnu.org; Mon, 18 May 2020 10:26:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jagiX-0005w6-Ed for 41250@debbugs.gnu.org; Mon, 18 May 2020 10:26:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58176) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jagiR-0000Kg-3O; Mon, 18 May 2020 10:26:03 -0400 Received: from [176.228.60.248] (port=3866 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jagiQ-0007FM-Al; Mon, 18 May 2020 10:26:02 -0400 Date: Mon, 18 May 2020 17:25:54 +0300 Message-Id: <83o8ql9v65.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Arthur Miller on Mon, 18 May 2020 00:57:42 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> <83wo5abngu.fsf@gnu.org> <83h7webjhy.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Arthur Miller > Cc: drew.adams@oracle.com, 41250@debbugs.gnu.org, juri@linkov.net > Date: Mon, 18 May 2020 00:57:42 +0200 > > Another question: can I assume, at this time of civilisation > development, that everybody has GNU ls, since binutils, or coreutils, or > what is the name, is probably default on most *nix distros, as well as > on msys2 which is needed to build on Windows. No idea how Mac people are > doing in that regard though? No, we cannot assume GNU 'ls', since both *BSD Unix systems and macOS (which is BSD-ish) use non-GNU 'ls'. > I can try to detect if gnu ls is present say when dired-mode is > loaded, but that would slow down dired every time we open a directory. Don't we already detect GNU 'ls' by looking at the //DIRED signature? Look in files.el. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 May 2020 15:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 41250@debbugs.gnu.org, Eli Zaretskii , juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158981453226979 (code B ref 41250); Mon, 18 May 2020 15:09:02 +0000 Received: (at 41250) by debbugs.gnu.org; 18 May 2020 15:08:52 +0000 Received: from localhost ([127.0.0.1]:48049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jahNr-000715-VQ for submit@debbugs.gnu.org; Mon, 18 May 2020 11:08:52 -0400 Received: from mail-oln040092068060.outbound.protection.outlook.com ([40.92.68.60]:19587 helo=EUR02-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jahNp-00070p-VS for 41250@debbugs.gnu.org; Mon, 18 May 2020 11:08:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SVFFxVOHsFXAyBGG6g+btXlP30M74ZOb5TLy18luY41c5gG42AS/F9/eN0jmEB6hJrzH+mrutJO0xvbLSWw366Vbm9HXh7LRzrwt5vL6JvetczRPBk6a/0yunJPq7ExqqxSFRWQNa/8d+ISz2bAY0BC+UJXXmAKOS94r1pQHX5FJMYjZTBgvfQsk38jVLC6fbe2VTuLDvkBVLkhYnFPmZsJ/nnLsiBjpD7cCetKeub3dCPb5ZuLZtX/gcDhpCfUNv46LuTDJgEaC6oBH9RiR1aaydyjOY/CGeCIG+RgJyrGF5ArSjvCXgJlfffiHNjO7iNpeYxWzt3mozlXb/NW4YA== 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=M3a/LXdJf8Mf+3zD54jf5mwkTXAQIGZmDSNFBM7wYv0=; b=NIBZf4k/xjpusEDfjoofPS3YEEXneOcTmowDzArmnDM+Yjjif3kHRa0olrfFrIQ3vCIozPTVu1u4mQ9Vb6pvphyod4yePzCP7wjR6wn4xg1dixqRiw4x/a7lyFfD7p0SeTJsS8+XGBkdS8l5QdK50+76aKkstku97m9ZKfu0K5bDDl29BIH9rVh6ZcXy/ChJVVbWWFIjx7ej0/rRxwZR5f/rMOyj587slyS0nYY03Zqg/Vnm9etNUy9Ew1zuGVgAc5VraLUo2nlH9jvnS4qt8ZlTBVqDxzJErZ58XX7jqL3HQMFwFAd5JKWv1WzWzrUvu92dCoqEBvmJg+SpDDOqcQ== 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=M3a/LXdJf8Mf+3zD54jf5mwkTXAQIGZmDSNFBM7wYv0=; b=p7z7er+WNnDhSkCnl63AqgpM7LDN+275X42ZmdTGbTTCzQbOD576SNHTc/ZmfzE0TSgu+32qcqgM5MNTOETK1zkzmSPi9G89zjTDcoUiW85hEv+Dzx8wAfbKxQHKhhdrrx6EW/JhZqbTH9UzwNsyEI+TM81+VZjlwVIotqH1TRYIJR36BNJ5ZCTkkze735PrN1KV1+gvDJwPcW+QksddL43hSrlg3ADTtx3vbYsOabSysDW/1Sjxht/qaNdeGy2ifqrL1zV8COV4I7E5lalk95a8L+t3pdf1d/PjdR0NPesq4t+h4EoUDtsQMYRx2VOS5urS4I02sfjotgBIcX/sMg== Received: from AM5EUR02FT039.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::4e) by AM5EUR02HT092.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::402) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19; Mon, 18 May 2020 15:08:43 +0000 Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:7e1c::44) by AM5EUR02FT039.mail.protection.outlook.com (2a01:111:e400:7e1c::283) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Mon, 18 May 2020 15:08:43 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:51AE97C21AB828FDC6E0B5FCA56E711528D9EBC7C41667F6CAFC2DEBD78C6D66; UpperCasedChecksum:5D6FDE07AD4031976A8285A24A8A7142F8CB8BB39464591C3BD568F1A2888BCC; SizeAsReceived:8443; Count:48 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.3000.034; Mon, 18 May 2020 15:08:43 +0000 From: Arthur Miller References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <83a729uiaq.fsf@gnu.org> <835zcwv15e.fsf@gnu.org> <83wo5abngu.fsf@gnu.org> <83h7webjhy.fsf@gnu.org> Date: Mon, 18 May 2020 17:08:40 +0200 In-Reply-To: (Stefan Kangas's message of "Sun, 17 May 2020 16:37:15 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: multipart/mixed; boundary="=-=-=" X-ClientProxiedBy: AM7PR04CA0015.eurprd04.prod.outlook.com (2603:10a6:20b:110::25) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <877dx946x3.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pascal.homepc (90.230.29.56) by AM7PR04CA0015.eurprd04.prod.outlook.com (2603:10a6:20b:110::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Mon, 18 May 2020 15:08:41 +0000 X-Microsoft-Original-Message-ID: <877dx946x3.fsf@live.com> X-TMN: [NGQfV6kiit/4EEPV4+3JB3pZbYwYZE+v] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 297b0d02-dfa5-42a9-89d9-08d7fb3d59bd X-MS-TrafficTypeDiagnostic: AM5EUR02HT092: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tR3nrkxgfICOfqt8QKc15n5nk+MW3Q9lHs4gosI7LOEZeqNzvzpBEx6crRqX4RwVbU4CG4w1RLJnxOAxrFGky89HtiRK4zuJGa/qxuKYiEPTx2d62Mdu57H9b75EYqMB+JN5lLw/DDCDUj5lKlaAaFIgxoh5RTS7sAZ3nnjeUCGY7b3omVceMUJdKzPNaM10FXLPz71kbo9lctGfyFlA3g== 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: 9gyb0q7hLZj6VDqdtXYOkrxaboJRd6I4UCQ0qCZjGwt+GKgXssMCrwXGdl7tPzcDV4nTv34i2WiY7POMOCOSVRdtPF8JLB9AJoS5l+osRUYQa0WWeZOdfynMlZDqv2sKvDqhz7vUn3xZME/DlxJ/Ng== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 297b0d02-dfa5-42a9-89d9-08d7fb3d59bd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2020 15:08:43.1374 (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: AM5EUR02HT092 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Stefan Kangas writes: > Arthur Miller writes: > >> Another question: can I assume, at this time of civilisation >> development, that everybody has GNU ls, since binutils, or coreutils, or >> what is the name, is probably default on most *nix distros, as well as >> on msys2 which is needed to build on Windows. No idea how Mac people are >> doing in that regard though? > > MacOS has BSD userland, as does *BSD. > > You can install it and use GNU coreutils optionally, but I would expect > only a minority of users to do that. > > Best regards, > Stefan Kangas Alright, thanks. I can then either opt for status quo, as it is now (just date and name) or add extra sort options and bool flag in defcustom for users to enable if they now they have gnu ls. I could also add utility funciton to print version of ls in say message buffer. Anyway I have red the manual about propertize and seen some examples in code that Eli pointed me to, online aw well, and as I understand this feature (help-echo) is fairly trivial and easy to use. I like it, it seems really usefull. However, for some reason modeline ignores my propertized string :-). Below is another sketch for this. Instead of displaying actual switches, I display string "by user". I tested with elipsis at the end, "by user...", but I don't think it lookes so nice on modeline. The strategy is to show the tooltip with switches when user hoovers with pointer over the modeline (I completely missed that feature of Emacs since I use mouse and modeline so little :-)). Attached is a patch with this sketch, the only problem seems that I missundestand something, seems modeline does not display the tooltip. I am sorry for me being such noob, I will look around more, but if somebody can point out the misstake it will be helpful. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=dired.patch --- dired.el 2020-05-14 03:06:34.046112281 +0200 +++ lisp/dired.el 2020-05-18 13:37:21.934674831 +0200 @@ -223,6 +223,14 @@ (define-obsolete-variable-alias 'dired-free-space-args 'directory-free-space-args "27.1") +(defcustom dired-sort-mode-line-info t + "Run when dired is displaying it's info on modeline. Default hook is +dired-set-sort-mode-line, which displays sorting order used in current + dired buffer. Every hook in the list should return a string that + will be appended to dired info already shown on modeline." + :group 'dired + :type 'boolean) + ;;; Hook variables (defcustom dired-load-hook nil @@ -4114,24 +4122,43 @@ "Non-nil means the Dired sort command is disabled. The idea is to set this buffer-locally in special Dired buffers.") -(defun dired-sort-set-mode-line () - ;; Set mode line display according to dired-actual-switches. - ;; Mode line display of "by name" or "by date" guarantees the user a - ;; match with the corresponding regexps. Non-matching switches are - ;; shown literally. +(defun dired-set-mode-line () + ;; Flush dired info to mode-line (eval all dired-mode-line-hook) + ;; If dired-mode-line-hook is nil, it means user has manually + ;; disabled displaying of Dired info on mode-line, so let's respect + ;; the user decision. (when (eq major-mode 'dired-mode) - (setq mode-name - (let (case-fold-search) - (cond ((string-match-p - dired-sort-by-name-regexp dired-actual-switches) - "Dired by name") - ((string-match-p - dired-sort-by-date-regexp dired-actual-switches) - "Dired by date") - (t - (concat "Dired " dired-actual-switches))))) + (if dired-sort-mode-line-info + (setq mode-name + (concat + mode-name + (propertize + (dired-sort-set-mode-line) + 'help-echo dired-actual-switches))) + (setq mode-name "Dired")) ;; reset name if dired-mode-line-hook is nil (force-mode-line-update))) +(defun dired-sort-set-mode-line () + "Set mode line display according to dired-actual-switches. + Mode line display of \"by name\" or \"by date\" guarantees the user a + match with the corresponding regexps. Non-matching switches are + shown as \"by user\". has not disabled displaying them by + customizing dired-display-listing-switches variable." + (when (eq major-mode 'dired-mode) + (let* ((mode-line-info) + (case-fold-search)) + (cond ((string-match-p + dired-sort-by-name-regexp dired-actual-switches) + (setq mode-line-info " by name")) + + ((string-match-p + dired-sort-by-date-regexp dired-actual-switches) + (setq mode-line-info " by date")) + + (t + (setq mode-line-info " by user"))) + mode-line-info))) + (define-obsolete-function-alias 'dired-sort-set-modeline #'dired-sort-set-mode-line "24.3") @@ -4174,7 +4201,7 @@ dired-actual-switches) "t" " -t"))))) - (dired-sort-set-mode-line) + (dired-set-mode-line) (revert-buffer)) ;; Some user code loads dired especially for this. @@ -4197,7 +4224,7 @@ With optional second arg NO-REVERT, don't refresh the listing afterwards." (dired-sort-R-check switches) (setq dired-actual-switches switches) - (dired-sort-set-mode-line) + (dired-set-mode-line) (or no-revert (revert-buffer))) (defvar-local dired-subdir-alist-pre-R nil --=-=-=-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams Cc: 41250@debbugs.gnu.org, Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160148179416574 (code B ref 41250); Wed, 30 Sep 2020 16:04:01 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 16:03:14 +0000 Received: from localhost ([127.0.0.1]:60960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNeZW-0004JG-CO for submit@debbugs.gnu.org; Wed, 30 Sep 2020 12:03:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNeZT-0004J2-JI for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 12:03:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OYbuyruqZbBe4Iq2sBd/HfBxLl49LqSeny5jtT0Asi0=; b=ZnEpQLoUH2lPGxrWFnzMIIpSgq mpGM49T1VkmPQdInIKHAun391TB2ekTd0sxCBwjW2HZKfSTRNeSkZqkvTav5hXbneQTAcU6HWkEwh MYYrkaYt2K0skLXzvOq0A8zg8q6jJDAfMSHyJuq5QKsG+O3JxTdMqnu2+ZAXpguqNFOs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNeZG-0003Dy-P8; Wed, 30 Sep 2020 18:03:04 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> X-Now-Playing: Psapp's _Tiger, My Friend_: "King Kong" Date: Wed, 30 Sep 2020 18:02:56 +0200 In-Reply-To: <6073a2d5-4024-465d-8293-88ad7f6127ed@default> (Drew Adams's message of "Fri, 15 May 2020 15:24:26 -0700 (PDT)") Message-ID: <87mu172qxb.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: > Sorry. `diredp' should be `dired' everywhere. > This patch takes care of that typo. Looks good to me, so I've now applied your patch to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Drew Adams writes: > Sorry. `diredp' should be `dired' everywhere. > This patch takes care of that typo. Looks good to me, so I've now applied your patch to Emacs 28. Some bikeshedding ensued, and people should feel free to alter the code (as-is vs t, for instance). And I'm not sure about this: + (concat " " xs (and (< l2 l1) "=E2=80= =A6"))))) Perhaps that should be conditional upon the terminal being able to display that character? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 12:03:43 2020 Received: (at control) by debbugs.gnu.org; 30 Sep 2020 16:03:44 +0000 Received: from localhost ([127.0.0.1]:60963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNeZz-0004K1-Nc for submit@debbugs.gnu.org; Wed, 30 Sep 2020 12:03:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNeZy-0004Jm-BN for control@debbugs.gnu.org; Wed, 30 Sep 2020 12:03:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EbfY+lirB4EOGsAhTaFmGk+D52L7gWX9j+vqf0oUpH4=; b=OzepyE7p5Je4JQfhVXt0mAHsfP E0CBa8MBaZ/i2urSNjlqfitbzzuwHGRNJGaAtpabl4Y9TnM4nGjMGZ4HKL4EDWCkJTQs7z7csWEHw kxRnQWGCZRSJ1f39hx8Kn49h1x7MwECuSMsd2coyrGmpHe7i01fYY4oRXa9PPrtgCTPI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNeZq-0003EB-JJ for control@debbugs.gnu.org; Wed, 30 Sep 2020 18:03:36 +0200 Date: Wed, 30 Sep 2020 18:03:33 +0200 Message-Id: <87lfgr2qwa.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #41250 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 41250 fixed close 41250 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 41250 fixed close 41250 28.1 quit From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Arthur Miller , Drew Adams Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160149358412134 (code B ref 41250); Wed, 30 Sep 2020 19:20:02 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 19:19:44 +0000 Received: from localhost ([127.0.0.1]:33162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhdT-00039E-AV for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:19:44 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:35187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhdQ-00038t-Ck for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 15:19:29 -0400 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 8CAB5200008; Wed, 30 Sep 2020 19:19:21 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> Date: Wed, 30 Sep 2020 22:04:51 +0300 In-Reply-To: <87mu172qxb.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Sep 2020 18:02:56 +0200") Message-ID: <87sgazi550.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Drew Adams writes: > >> Sorry. `diredp' should be `dired' everywhere. >> This patch takes care of that typo. > > Looks good to me, so I've now applied your patch to Emacs 28. > > Some bikeshedding ensued, and people should feel free to alter the code > (as-is vs t, for instance). I recall I asked for 't' instead of 'as-is', but actually 'as-is' is fine as a value as long as it is not checked for this value in function body. And indeed it's on the 't' branch of 'cond'. > And I'm not sure about this: > > + (concat " " xs (and (< l2 l1) "…"))))) > > Perhaps that should be conditional upon the terminal being able to > display that character? Like everywhere else (if (char-displayable-p ?…) "…" "...") From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Arthur Miller , Drew Adams Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160149427117510 (code B ref 41250); Wed, 30 Sep 2020 19:32:01 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 19:31:11 +0000 Received: from localhost ([127.0.0.1]:33185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhok-0004Y2-PH for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:31:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhoi-0004Qh-SM for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 15:31:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=N929K9qnoZvXorHSy2KxzvqbjEsd/tlYHrtoUw+3Yxs=; b=SwziGYZRgn6kxMlj4osKk/6tMh LmOzz2DXley1ZuwsVsC47Ux1RzYiqKkw83qgB/DgWyU6SzPXVF4OG8xNstN54xPlTh3ZZLyxJKZX8 Lx6db+u7RLiCLwjuAiavK5RsMKdH8Tx2zT8c04Ao2lAXZk3X8ePC8zYo2NVwCy7iyDSg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNhoX-00056Y-Sc; Wed, 30 Sep 2020 21:31:00 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEUQChBdTj7e0J7C xmKdMjT8+vR3hUMrIyD///9YvTMqAAAAAWJLR0QIht6VegAAAAd0SU1FB+QJHhMcG46lOHEAAAGP SURBVDjLbdLNTgMhEAfw2ZiUa6navbNFr3ZRfAGfYA2exY30ylbjvL7AIgzqpEnT/6/A8AFQqhue SNUcLszhf3g3VGrOjKFClpgagR4RfRIhqYDlofoFsTNr5d7AOaVdxF0G87zCrALYPedvRmSZEqhB Kaf3br8zw0gEVCg9O8sXU2u6X0E5ZxGuqRxWOIYc2BsRk2HdY2xMNKDWLcIijRAN3P2cizSToKDL Uco8Wwa1hTrGTAQeoRFZQEEjosD4SiTusMCRXPJG1jXKVlJ9UCBzhTOQFTQF+KpQtrJl6avCKfQT 75/veQtheRaehV+WvoFxaJYvMIo4F4DHjnmsEHJlfVzD2i/Otxn0KAalT1cMkaFHz/IIrcL/te0/ fbuGntc8t1Mg5xwX3kDKw7uKtZC59Bwaiu8t5jMBN4Z5OAILn8uBwBgfe8oBRwphfh7DcFCbSVOI uY+5f7/pkaxh8w/cmBPJgf/k/vrZ053nnGEnHxnQIRn8OQ34IwzlLYPU9S84m3g9/8DDC1t7yME3 af255bYkzNUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDktMzBUMTk6Mjg6MjcrMDA6MDBX5ovz AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5LTMwVDE5OjI4OjI3KzAwOjAwJrszTwAAAABJRU5E rkJggg== X-Now-Playing: Martin Finke's _Untended Stories_: "I Can't Release You" Date: Wed, 30 Sep 2020 21:30:56 +0200 In-Reply-To: <87sgazi550.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 30 Sep 2020 22:04:51 +0300") Message-ID: <87tuvfxdsf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> And I'm not sure about this: >> >> + (concat " " xs (and (< l2 l1) "=?UTF-8?Q?=E2=80=A6?="))))) >> >> Perhaps that should be conditional upon the terminal being able to >> display that character? > > Like everywhere [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >> And I'm not sure about this: >> >> + (concat " " xs (and (< l2 l1) "=E2= =80=A6"))))) >> >> Perhaps that should be conditional upon the terminal being able to >> display that character? > > Like everywhere else (if (char-displayable-p ?=E2=80=A6) "=E2=80=A6" "...= ") Yes. But this is surely a general problem, and: `truncate-string-to-width'. ---- If ELLIPSIS is non-nil, it should be a string which will replace the end of STR (including any padding) if it extends beyond END-COLUMN, unless the display width of STR is equal to or less than the display width of ELLIPSIS. If it is non-nil and not a string, then ELLIPSIS defaults to =E2=80=98truncate-string-ellipsis=E2=80=99. ---- *sigh* Would anybody mind very much if I added a `string-truncate-right' that does all this automatically, and amend `string-truncate-left' in the same way? I.e., use (if (char-displayable-p ?=E2=80=A6) "=E2=80=A6" "..."). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 19:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Arthur Miller , Drew Adams Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160149592623775 (code B ref 41250); Wed, 30 Sep 2020 19:59:02 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 19:58:46 +0000 Received: from localhost ([127.0.0.1]:33191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNiFS-0006BP-47 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:58:46 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:43353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNiFN-0006B8-Jp for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 15:58:44 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id AD439C0006; Wed, 30 Sep 2020 19:58:33 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> Date: Wed, 30 Sep 2020 22:58:00 +0300 In-Reply-To: <87tuvfxdsf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Sep 2020 21:30:56 +0200") Message-ID: <875z7vdol3.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) > Would anybody mind very much if I added a `string-truncate-right' that > does all this automatically, and amend `string-truncate-left' in the > same way? I.e., use (if (char-displayable-p ?…) "…" "..."). There is a better function 'truncate-string-to-width'. But users need to set up 'truncate-string-ellipsis' explicitly in init files as (with-eval-after-load 'mule-util (setq truncate-string-ellipsis "…")) From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160149599423882 (code B ref 41250); Wed, 30 Sep 2020 20:00:02 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 19:59:54 +0000 Received: from localhost ([127.0.0.1]:33195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNiGX-0006D6-QF for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:59:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNiGV-0006Ct-1L for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 15:59:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6Z2pS2KFbZsI7rRSKk5aL8+UR8N4W/i9xJlTtLWUdTc=; b=dgfcDLp1PHoQttB6WglEIWL6hF SRILdu3SHRqDnCg9iS7rWr2DbpLmsrTcOnPLyFi90l1NuEhJ6B9k8fdKovuZTQoU93Qzgz19GOzwR TFIQ1vpkT7MFYpZ9F17+Mc/On898fSh6X4/wGQXm+fYZxbyPJLVqnuE/FHvc2YTV+tVs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNiGF-0005Ml-RY; Wed, 30 Sep 2020 21:59:43 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> X-Now-Playing: Ben Watt's _North Marine Drive_: "Empty Bottles" Date: Wed, 30 Sep 2020 21:59:34 +0200 In-Reply-To: <875z7vdol3.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 30 Sep 2020 22:58:00 +0300") Message-ID: <87pn63xcgp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > There is a better function 'truncate-string-to-width'. I mentioned that in the previous paragraph. :-/ Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > There is a better function 'truncate-string-to-width'. I mentioned that in the previous paragraph. :-/ -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160149949829357 (code B ref 41250); Wed, 30 Sep 2020 20:59:01 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 20:58:18 +0000 Received: from localhost ([127.0.0.1]:33274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNjB3-0007dR-Su for submit@debbugs.gnu.org; Wed, 30 Sep 2020 16:58:18 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:37600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNjB2-0007dE-BG for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 16:58:16 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08UKrpEv187979; Wed, 30 Sep 2020 20:58:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=jShykxWSrST5vEbTUBAxHIb75t53bWJUnV0hcrUAGQw=; b=BASte3cJ0fgUizV9bB07MfllzIbuJS0O3xY00CZi3yfHwNhpxsamRrqDRSTBCV4oa4JI s5VQ6UtnPw8Suml2w4LcYOWZCE1N7HxGSW6ozwFU+26hol/OnWXxiJYvrWmCEDm5u9+c /5V6et2P5eLag8X5OUX0gGUg15X70TvINwigP29Tzx7oe9uIck0H0VXhvNg32vJsAmV7 KRRWszXifJEzq0yi5nUgpISRN74QbnIOHVv9CYbUGFN2UmIeus+wz0bJGI+SSEKf7Wvd olWaYtvvGywPz04AIfzkcbgIn54/AXjHLEK6/qPLiIFtXbdsyWjD8aTCIP7tLkgZ3+vq zg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 33su5b2vd3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Sep 2020 20:58:09 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08UKsnEq155599; Wed, 30 Sep 2020 20:56:08 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 33tfduk92q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Sep 2020 20:56:08 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08UKu4Xl032736; Wed, 30 Sep 2020 20:56:05 GMT MIME-Version: 1.0 Message-ID: Date: Wed, 30 Sep 2020 13:56:03 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> In-Reply-To: <87mu172qxb.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9760 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=815 phishscore=0 adultscore=0 malwarescore=0 spamscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009300170 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9760 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=836 suspectscore=0 lowpriorityscore=0 spamscore=0 clxscore=1011 mlxscore=0 impostorscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009300170 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > And I'm not sure about this: >=20 > + (concat " " xs (and (< l2 l1) > "=E2=80=A6"))))) >=20 > Perhaps that should be conditional upon the terminal being able to > display that character? Interesting. Dunno why I used that char (which I guess is HORIZONTAL ELLIPSIS). In my own code I in fact use "..." (3 period chars). Maybe I tossed in an ellipsis char because others in the thread were worried about losing mode-line space. (FWIW, I had that ellipsis char in Emacs doc etc. At least in the fonts I use (fixed width) it's so tiny as to be illegible. An ellipsis in ordinary printed text is quite a bit wider than other chars (which are anyway of unequal width). That Unicode provides a single char for ellipsis is not a reason that we have to, or should, use it. I think it works against readability - everywhere I've seen it in Emacs.) From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov , Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160150007230265 (code B ref 41250); Wed, 30 Sep 2020 21:08:01 +0000 Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 21:07:52 +0000 Received: from localhost ([127.0.0.1]:33281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNjKJ-0007s4-SQ for submit@debbugs.gnu.org; Wed, 30 Sep 2020 17:07:52 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:47458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNjKH-0007rq-Ge for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 17:07:50 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08UL45uQ184371; Wed, 30 Sep 2020 21:07:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=68QjjwkfNrZfwcxJunllGmD7hQsd3Vy943okpnTg5CM=; b=id7MLUHHnxHSvbX1khGToG7zATI87rw8CVciYnve+hwS627lt3aR2TP/bxepyKS2/Vu0 eUFTQs9mXrCRksvINSp5J1Cmx7wSUAJRKJHZl1JzVLyCnP/W9fVl4lrQGkMaEU1tA9mE tfdqkIkeWJsnWVuCfRLhrJ9j7aLh1DW3HFhvOyIw1gX6W7532uOIo9Ci5bgFzLYJ9tI1 6HQipCY/GH7n32vbly3L6+hH5CrJ7JSZCATCX7btYjOXkzh1SZOF08Ic2vE9S/dUY6Nz Atsq6CO0PQpbbG6N+MYNVRYKpYD/NMaKILm3qnz8lRjWVE6ZSH/WhZp0jd2FHOGfwgzu 9A== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 33swkm2te9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Sep 2020 21:07:42 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08UL5nTe126197; Wed, 30 Sep 2020 21:07:42 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 33tfk0bq3f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Sep 2020 21:07:41 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 08UL7edB019902; Wed, 30 Sep 2020 21:07:41 GMT MIME-Version: 1.0 Message-ID: Date: Wed, 30 Sep 2020 14:07:39 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> In-Reply-To: <87sgazi550.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9760 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=689 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009300172 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9760 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 mlxlogscore=706 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009300172 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.7 (---) > > And I'm not sure about this: > > > > + (concat " " xs (and (< l2 l1) > "=E2=80=A6"))))) > > > > Perhaps that should be conditional upon the terminal being able to > > display that character? >=20 > Like everywhere else (if (char-displayable-p ?=E2=80=A6) "=E2=80=A6" "...= ") I'd argue (but not forcefully) for just "...". As I mentioned, "=E2=80=A6" is, for me, useless as an ellipsis. I think it must be useless for nearly everyone, with a fixed-width font. I imagine that I included it in the patch (it's not in my code, which is otherwise identical to what's in the patch) only because some were worried about mode-line real estate. Maybe it's worth a defvar (string value), so code that wants to tweak the mode-line can adapt it? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 01:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Drew Adams Cc: 41250@debbugs.gnu.org, Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160151557021378 (code B ref 41250); Thu, 01 Oct 2020 01:27:01 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 01:26:10 +0000 Received: from localhost ([127.0.0.1]:33450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNnMH-0005Yj-I8 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 21:26:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNnM8-0005Y8-19 for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 21:26:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Vd+L9WRd3bNOJpc+nracVoDt48ZEXSFq/K3q/AzhREE=; b=GeUbu/shjgpwA+SZ1ehqlHeenE sUrxWefaUbzLOsL8CDsh1z3pGSj1wgVpv+m1m1bBWeiAcPg47TkfFlDXcQAn2enr6w1CvVQjSxKvW aF1DQRicl/0QBzkbfg/mjzkOiR7mconF6WGfNNk21hhbkTG2/bnyblZZGEs0fWbE8K24=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNnLr-00008L-O9; Thu, 01 Oct 2020 03:25:53 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEU0OUQnKjNCSlZr eIQYGiD///9of+7CAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QKAQEVOzRx6fcAAAG+SURBVDjLbVSB jdwwDJODDiA+NECQjtAFToD2n6mk5Nzl0PqAQ2BaJEUrsQX4df3+s9d1ma3kphm07Nori6sBQI/1 M/sn7kUggaj0g9vnqnuZG9mC5VS6bACRGHxVRjMDC7X4DP6ZnRtIE1kGQZdGrhjSpMODZm3hEH+S cKjERQDSIKLNG4h8Gd0sCwL1AAppZ1QgSDtHK0fI7STTL1FtYEpWqpP/AEYAFVF+CMiMGAxUZg8Z fimOF7jfWboauA62d1gfqA6SFXDdwHITFVL7pOsWleX5QyBopfo8KLYBpzhzlDYhqEP0vQzVS8K6 tI7rAcwNMqjJ8egLNns4aioBl+zyTr0BmQ62yLE4TQCGPtU7AQ0BpIFuQqNSyhirZ4eLVnNXocad ctFN8sfz1OnWF1PBAG1rnE0Fx0iAksqW/wAqEUliT7CKsWV27TfgtoFwAW3Xa9vdTt8D1A7/BWhX wPIeUWUxGrI95zU+tyOpxP0Exv4APk9l9b0QUfc7uFd8n2DwfFUktio+kWwHndl6RqI3/66wd0EO cL65GIlFt4ueXvEoAV+MOTCTijuUx5fio/EE3t8dAeuJhKq48xdILZi4Di/3IgAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMC0xMC0wMVQwMToyMTo1OSswMDowMHDTjOgAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjAtMTAtMDFUMDE6MjE6NTkrMDA6MDABjjRUAAAAAElFTkSuQmCC X-Now-Playing: The Breeders's _Off You_: "Off You" Date: Thu, 01 Oct 2020 03:25:42 +0200 In-Reply-To: (Drew Adams's message of "Wed, 30 Sep 2020 14:07:39 -0700 (PDT)") Message-ID: <87h7rewxd5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: > I'd argue (but not forcefully) for just "...". As I > mentioned, "=?UTF-8?Q?=E2=80=A6?=" is, for me, useless as an ellipsis. I think > it must be useless for nearly everyone, with a fixed-width > font. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Drew Adams writes: > I'd argue (but not forcefully) for just "...". As I > mentioned, "=E2=80=A6" is, for me, useless as an ellipsis. I think > it must be useless for nearly everyone, with a fixed-width > font. I kinda like =E2=80=A6 because it takes up so little space, and the reason = we're normally truncating strings is because they take up too much space. So using that limited space for "..." is counter-productive. But this should be standardised throughout Emacs, and work out of the box automatically on systems that can display the character and not, which makes truncate-string-to-width less than ideal. There also, of course, the issue of "well, if the call says 'truncate to 15 characters', how much should we remove when we add the =E2=80=A6?" Beca= use =E2=80=A6 usually takes a bit more than a single normal character to display, while "..." takes three. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 02:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160151942911688 (code B ref 41250); Thu, 01 Oct 2020 02:31:02 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 02:30:29 +0000 Received: from localhost ([127.0.0.1]:33568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNoMW-00032Q-FH for submit@debbugs.gnu.org; Wed, 30 Sep 2020 22:30:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNoMT-00032C-Uy for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 22:30:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46596) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNoMN-00089o-M8; Wed, 30 Sep 2020 22:30:19 -0400 Received: from [176.228.60.248] (port=1026 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kNoML-0004Mz-9y; Wed, 30 Sep 2020 22:30:18 -0400 Date: Thu, 01 Oct 2020 05:30:12 +0300 Message-Id: <834kneisp7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87tuvfxdsf.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 30 Sep 2020 21:30:56 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Wed, 30 Sep 2020 21:30:56 +0200 > Cc: 41250@debbugs.gnu.org, Arthur Miller > > Would anybody mind very much if I added a `string-truncate-right' that > does all this automatically, and amend `string-truncate-left' in the > same way? I.e., use (if (char-displayable-p ?…) "…" "..."). That could be useful, but it would be better if the name hinted on the fact that char-displayable-p is involved. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 02:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160152001512556 (code B ref 41250); Thu, 01 Oct 2020 02:41:02 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 02:40:15 +0000 Received: from localhost ([127.0.0.1]:33572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNoVy-0003GR-BM for submit@debbugs.gnu.org; Wed, 30 Sep 2020 22:40:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNoVi-0003FP-Gt for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 22:40:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EVCl4jXFIefZsmKpylVN3Nb+yZFZcPNl0hwUlKb7tNA=; b=UBZjtis69YewwGumS9vHMhFWvx 9dmQ/93CeOLJBZ86IOloeFr1tR+jjmPst/+ETu6I6JF8viX+cOwn7kWffRPWyC4YPrHuB6wB8x87I rn+MuboisNLOCbhU38isGoyMR1KrdDNIIWL7o3WEwvMc8RXIw8Bpge/mXv1ROxVjoZiA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNoVV-000137-WE; Thu, 01 Oct 2020 04:39:51 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <834kneisp7.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVbUkqbXysYFxep pqHt7Ob///8FC+zSAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QKAQIaKtsfa5MAAAGhSURBVDjLbZKB scMgCIYJZoDEtwAhHcALDtA73X+m92MaG9tyF6N+Ago/Tbyw8BRV5NANP1021olpmaYVthAGjX9x XWXBNFKctga2BtY2TusSaaUVPtsiYLqtErUtIsFUWQnfy2IbHWCLkFHa7DI6f8JBKZf0BUhpp2yW aATCyiFYBeABYCUhVcRiGkNhAodcjfUb5FoR6xswQLEk/AFEAMyM0gfQHfuFKNEnCAj0Xg0edugP gBS3gryAD496gv35BiyJ/U6thnPlN2Bj3AnJkaTWowMqZFYAcFcceHYQ+FHMkJzIAjz5AjPekIKZ 99Cf2T0eiGMhJy/YXrh1XxxIrTiPwoqRx2FxIBhnzw4Qyny98lQPDrS2ziXnyp24qNTwPMjEeh0b 2AFyA10K3GLthyIH3vBK4NpoStyLOLBy7M7oMt7btmXj1pIOqAF/CtkV5bTg2kShLIXEA0CBcE0C sDKCXFy0opTSHczevS7OERj9AnnwoBF0l/d2cuBa4M9QVk+7CxGOlutPcB0vPVSzTNdx9OgG5tqB hds+5PEbQOH/X5GQBz+oNKgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAtMDFUMDI6MjY6NDIr MDA6MDDhaK87AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEwLTAxVDAyOjI2OjQyKzAwOjAwkDUX hwAAAABJRU5ErkJggg== X-Now-Playing: Seigen Ono's _Comme des =?UTF-8?Q?Gar=C3=A7ons=5F:?= "540AM, View of Empire" Date: Thu, 01 Oct 2020 04:39:44 +0200 In-Reply-To: <834kneisp7.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Oct 2020 05:30:12 +0300") Message-ID: <87zh56u0sv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Would anybody mind very much if I added a `string-truncate-right' that >> does all this automatically, and amend `string-truncate-left' in the >> same way? I.e., use (if (char-displayable-p =?UTF-8?Q?=3F=E2=80=A6?=) " [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Would anybody mind very much if I added a `string-truncate-right' that >> does all this automatically, and amend `string-truncate-left' in the >> same way? I.e., use (if (char-displayable-p ?=E2=80=A6) "=E2=80=A6" "..= ."). > > That could be useful, but it would be better if the name hinted on the > fact that char-displayable-p is involved. Uhm... truncate-string-prettily?=20 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: 41250@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16015442633368 (code B ref -1); Thu, 01 Oct 2020 09:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 09:24:23 +0000 Received: from localhost ([127.0.0.1]:34035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNup5-0000sG-II for submit@debbugs.gnu.org; Thu, 01 Oct 2020 05:24:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:41184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNup4-0000s9-Sq for submit@debbugs.gnu.org; Thu, 01 Oct 2020 05:24:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNup4-0000lD-MF for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 05:24:22 -0400 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:51150 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNup3-0001MM-CL for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 05:24:22 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kNuoz-0001Vz-3a for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 11:24:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Andy Moreton Date: Thu, 01 Oct 2020 10:24:11 +0100 Message-ID: <86wo0axps4.fsf@gmail.com> References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <834kneisp7.fsf@gnu.org> <87zh56u0sv.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) Cancel-Lock: sha1:U7QXfN6d9sb+dhWEWeLGF6O4dGc= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/01 04:41:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On Thu 01 Oct 2020, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > >>> Would anybody mind very much if I added a `string-truncate-right' that >>> does all this automatically, and amend `string-truncate-left' in the >>> same way? I.e., use (if (char-displayable-p ?…) "…" "..."). >> >> That could be useful, but it would be better if the name hinted on the >> fact that char-displayable-p is involved. > > Uhm... truncate-string-prettily? Using truncate could lead to confusion with string-trim-{left,right}. Perhaps string-elide-left etc ? AndyM From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160157024726667 (code B ref 41250); Thu, 01 Oct 2020 16:38:01 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 16:37:27 +0000 Received: from localhost ([127.0.0.1]:38093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO1aB-0006w3-49 for submit@debbugs.gnu.org; Thu, 01 Oct 2020 12:37:27 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:34428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO1a6-0006vn-TF for 41250@debbugs.gnu.org; Thu, 01 Oct 2020 12:37:25 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 091GZRxD151671; Thu, 1 Oct 2020 16:37:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=ojgAt8aHU6/GFqx86ebLrKJ6fFMAD3MHOCMNkmffAaU=; b=NxL5wWaCdLlK+/ws6rPaTSUkgL/rEpnoW4O/AQayoniRQtn+jsLXPZ4Wd/yyqOXotFKD PhxafKswAAifyNLcgclbYhU/t0FtBmACB63Lu9ePYXMr3VcVA7/9h7RGV8CkEwUbZsOS bbIu1SNNmW8orOX2LvyQsagkdKgYvUnjBWktZvjzVARR/58Xb12yjNkuVP+cTxZInLl/ HV0wMsLd2rUOBkRPVQ5FHQzm0eiXun5yAzH5V/jF9p+tFrYhySbubAnLkUjz8p//vxZI WMe2rpcnUjmewhSHaJHJDbCvzQ3oFIIE0qyizYtEnWqrLQX2MbrVJKCaKs3F4cvlc9AT bw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 33sx9nf181-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 01 Oct 2020 16:37:16 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 091GTq0b056746; Thu, 1 Oct 2020 16:35:15 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 33tfk1v0y8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Oct 2020 16:35:15 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 091GZ9kl026990; Thu, 1 Oct 2020 16:35:09 GMT MIME-Version: 1.0 Message-ID: <46048049-7264-4a7f-b173-356a87d3848d@default> Date: Thu, 1 Oct 2020 09:35:08 -0700 (PDT) From: Drew Adams References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87h7rewxd5.fsf@gnus.org> In-Reply-To: <87h7rewxd5.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9761 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=909 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010010139 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9761 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=929 suspectscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010010139 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > I'd argue (but not forcefully) for just "...". As I > > mentioned, "=E2=80=A6" is, for me, useless as an ellipsis. I think > > it must be useless for nearly everyone, with a fixed-width > > font. >=20 > I kinda like =E2=80=A6 because it takes up so little space, and the reaso= n we're > normally truncating strings is because they take up too much space. So > using that limited space for "..." is counter-productive. It's not about losing any more mode-line space. Instead, it should be about losing 2 more chars from the info displayed for this in the mode-line. > But this should be standardised throughout Emacs, and work out of the > box automatically on systems that can display the character and not, > which makes truncate-string-to-width less than ideal. >=20 > There also, of course, the issue of "well, if the call says 'truncate to > 15 characters', how much should we remove when we add the =E2=80=A6?" Be= cause =E2=80=A6 > usually takes a bit more than a single normal character to display, > while "..." takes three. FTR, I disagree. Better to truncate an additional 2 chars and use a "real" ellipsis: "...". The single char ellipsis is awful, at least in any fixed-width font I've used. If we're truncating, we're truncating. Truncating 2 more chars is not so bad. It's more important to clearly pass the message that the thing _is_ truncated. And the ellipsis char doesn't do that clearly. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160158181921982 (code B ref 41250); Thu, 01 Oct 2020 19:51:02 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 19:50:19 +0000 Received: from localhost ([127.0.0.1]:38468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4ao-0005iU-V0 for submit@debbugs.gnu.org; Thu, 01 Oct 2020 15:50:19 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4an-0005hq-9i for 41250@debbugs.gnu.org; Thu, 01 Oct 2020 15:50:17 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 5F87060005; Thu, 1 Oct 2020 19:50:09 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> Date: Thu, 01 Oct 2020 22:37:43 +0300 In-Reply-To: <87pn63xcgp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Sep 2020 21:59:34 +0200") Message-ID: <874knd7mow.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> There is a better function 'truncate-string-to-width'. > > I mentioned that in the previous paragraph. :-/ Oh, sorry. But anyway I think that it would be better to keep 'truncate-string-to-width', and to turn 'truncate-string-ellipsis' into a user option (defvar -> defcustom) with the default value computed as (if (char-displayable-p ?…) "…" "...") If this doesn't work on dynamically created mixed X/tty frames, then maybe allow some value (e.g. 'auto-detect') for 'truncate-string-ellipsis', so 'truncate-string-to-width' would call (if (char-displayable-p ?…) "…" "...") every time when 'truncate-string-to-width' is used and recompute the value of ellipsis. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160158236922838 (code B ref 41250); Thu, 01 Oct 2020 20:00:02 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 19:59:29 +0000 Received: from localhost ([127.0.0.1]:38480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4jg-0005wI-WC for submit@debbugs.gnu.org; Thu, 01 Oct 2020 15:59:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4jf-0005w5-J7 for 41250@debbugs.gnu.org; Thu, 01 Oct 2020 15:59:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Hr44o5q0cyVShroJ/AVrp9QA0FF2/tmd50YszaSvv70=; b=kxCv9WCXkJ+Sod9T+C7ecILthG RQrk67xtOAkACVAC8qAB3aQYxOay4BTYbOYWzDgBOYD0Tljr4P4LsbqRuH75lSSAaBXKPrUO2l049 FX+mssKZaQ/I5YgVOfEfp3eJuXUdALLoBTKM514LfyxGKtvj2kEDxJoixBuN1uYV7WfI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO4jT-0002r4-DK; Thu, 01 Oct 2020 21:59:19 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVdOkeMVmCtoKPw 7Ov///+QNNExAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QKARM2EDnGEMgAAAHCSURBVDjLZZTtuYMw CIUhXSDgAklYQJP9d7sHiNY+lx9WfQ2HzxKFVRJlSetxJb/o+DF8lR/TZ9q0Yf5yjWHtC04q2rji Wal+3kDZunSVOkSO5jLkIgccrBm+cF1ddIvjfiAA6wBqqxFnrHQstzmWxQ1ATVDm8miWTbgaACUA 03G5Jx2KoKfY5XmRB58eHtvi7ioUTBGCuobIFnfQailwfmwQcbGDCz9N1AIMTxt5hCubt8Z5V3e4 44k6dM/V89gWJ172gNCYUU6yf+D8VqdHgrLFr+zADjcyYdpA2q+rG/DoxAH4P8hwUSp1cGvAb3Fw jUiwSlTuCu0oSZddRd5gEF3HBvIGRqUFqJygbFCaBYhxRIJ9a5Sq8yfBShxAqrYEeMdvgP7cgN4g pzUyF5zwfdAsOxzXbG0C5L8mOuvjmwMnT0MwI/5zRq++gHmdzft1UvOHBJ5lSfDxEyhDf3awZIQA lwMck7o1Tq61HCeGViFe5QFh93w3ufej+2vVjtZk2RV7ilQ4TpitmSvVkJ/crpAYNt03KktCj4Yv rW0N+mZ+20xXCDrnZ/hcyIiC+t8MsezSv+2OFUFlKzxCiU3yb/8AAUZn5CnFt7kAAAAldEVYdGRh dGU6Y3JlYXRlADIwMjAtMTAtMDFUMTk6NTQ6MTYrMDA6MDAKzx4nAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIwLTEwLTAxVDE5OjU0OjE2KzAwOjAwe5KmmwAAAABJRU5ErkJggg== X-Now-Playing: Sandy Denny's _'Gold Dust' Live at the Royalty_: "Nothing More" Date: Thu, 01 Oct 2020 21:59:13 +0200 In-Reply-To: <874knd7mow.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 01 Oct 2020 22:37:43 +0300") Message-ID: <877ds91zvy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > But anyway I think that it would be better to keep > 'truncate-string-to-width', and to turn 'truncate-string-ellipsis' > into a user option (defvar -> defcustom) with the default value > computed a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > But anyway I think that it would be better to keep > 'truncate-string-to-width', and to turn 'truncate-string-ellipsis' > into a user option (defvar -> defcustom) with the default value > computed as (if (char-displayable-p ?=E2=80=A6) "=E2=80=A6" "...") > > If this doesn't work on dynamically created mixed X/tty frames, then > maybe allow some value (e.g. 'auto-detect') for > 'truncate-string-ellipsis', so 'truncate-string-to-width' would call > (if (char-displayable-p ?=E2=80=A6) "=E2=80=A6" "...") every time when > 'truncate-string-to-width' is used and recompute the value of > ellipsis. The variable doesn't work as is (because of the problem of mixed frames), and `auto-detect' doesn't have much meaning, which is why this should never have been a variable in the first place. Instead of trying to fix that mess, I thought it would be easier to introduce a new function that does the right thing automatically, and without a gazillion optional parameters, and then make the old function obsolete. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 20:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160158254023216 (code B ref 41250); Thu, 01 Oct 2020 20:03:02 +0000 Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 20:02:20 +0000 Received: from localhost ([127.0.0.1]:38485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4mO-00062J-G8 for submit@debbugs.gnu.org; Thu, 01 Oct 2020 16:02:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO4mI-00061w-WE for 41250@debbugs.gnu.org; Thu, 01 Oct 2020 16:02:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ibb1zTYMnNd6NjCXAHBt8B4hR7oMwO6Rd7+Q6bnF+0s=; b=NhWLx0S6jsKSGxhbGPU6snn31d +FWNncT4r2k45PKmN0G7LGZsqvwZMS3BzxTj+ffrdBhZdxv8IjCL7+CH7NWd5IcKXAbvhkbpAEHUa oFEjzVoqfMuSVRlGNmuW9eUqmtptlzbZuGEmj3PXHlzvm79cGDctseKNmy5GdROz3WTk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO4m7-0002rq-FP; Thu, 01 Oct 2020 22:02:03 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVdOkeMVmCtoKPw 7Ov///+QNNExAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QKARM2EDnGEMgAAAHCSURBVDjLZZTtuYMw CIUhXSDgAklYQJP9d7sHiNY+lx9WfQ2HzxKFVRJlSetxJb/o+DF8lR/TZ9q0Yf5yjWHtC04q2rji Wal+3kDZunSVOkSO5jLkIgccrBm+cF1ddIvjfiAA6wBqqxFnrHQstzmWxQ1ATVDm8miWTbgaACUA 03G5Jx2KoKfY5XmRB58eHtvi7ioUTBGCuobIFnfQailwfmwQcbGDCz9N1AIMTxt5hCubt8Z5V3e4 44k6dM/V89gWJ172gNCYUU6yf+D8VqdHgrLFr+zADjcyYdpA2q+rG/DoxAH4P8hwUSp1cGvAb3Fw jUiwSlTuCu0oSZddRd5gEF3HBvIGRqUFqJygbFCaBYhxRIJ9a5Sq8yfBShxAqrYEeMdvgP7cgN4g pzUyF5zwfdAsOxzXbG0C5L8mOuvjmwMnT0MwI/5zRq++gHmdzft1UvOHBJ5lSfDxEyhDf3awZIQA lwMck7o1Tq61HCeGViFe5QFh93w3ufej+2vVjtZk2RV7ilQ4TpitmSvVkJ/crpAYNt03KktCj4Yv rW0N+mZ+20xXCDrnZ/hcyIiC+t8MsezSv+2OFUFlKzxCiU3yb/8AAUZn5CnFt7kAAAAldEVYdGRh dGU6Y3JlYXRlADIwMjAtMTAtMDFUMTk6NTQ6MTYrMDA6MDAKzx4nAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIwLTEwLTAxVDE5OjU0OjE2KzAwOjAwe5KmmwAAAABJRU5ErkJggg== X-Now-Playing: Sandy Denny's _'Gold Dust' Live at the Royalty_: "The Sea" Date: Thu, 01 Oct 2020 22:01:58 +0200 In-Reply-To: <874knd7mow.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 01 Oct 2020 22:37:43 +0300") Message-ID: <87362x1zrd.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Perhaps call it... `limit-string-for-display'... And it could work for the displayed pixel width of all the characters involved, so that it'd also work on variable-pitch characters (and compute the co [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Perhaps call it... `limit-string-for-display'... And it could work for the displayed pixel width of all the characters involved, so that it'd also work on variable-pitch characters (and compute the correct length occupied for =E2=80=A6 vs ..., too. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 06:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160162032227342 (code B ref 41250); Fri, 02 Oct 2020 06:33:01 +0000 Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 06:32:02 +0000 Received: from localhost ([127.0.0.1]:39177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOEbp-00076o-N3 for submit@debbugs.gnu.org; Fri, 02 Oct 2020 02:32:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOEbl-00076P-Ml for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 02:32:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41526) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOEbe-0004t6-EI; Fri, 02 Oct 2020 02:31:50 -0400 Received: from [176.228.60.248] (port=4927 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOEbc-0004Bi-ES; Fri, 02 Oct 2020 02:31:50 -0400 Date: Fri, 02 Oct 2020 09:31:45 +0300 Message-Id: <837ds9gmum.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <877ds91zvy.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 01 Oct 2020 21:59:13 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Thu, 01 Oct 2020 21:59:13 +0200 > Cc: 41250@debbugs.gnu.org, Arthur Miller > > Juri Linkov writes: > > > But anyway I think that it would be better to keep > > 'truncate-string-to-width', and to turn 'truncate-string-ellipsis' > > into a user option (defvar -> defcustom) with the default value > > computed as (if (char-displayable-p ?…) "…" "...") > > > > If this doesn't work on dynamically created mixed X/tty frames, then > > maybe allow some value (e.g. 'auto-detect') for > > 'truncate-string-ellipsis', so 'truncate-string-to-width' would call > > (if (char-displayable-p ?…) "…" "...") every time when > > 'truncate-string-to-width' is used and recompute the value of > > ellipsis. > > The variable doesn't work as is (because of the problem of mixed > frames), and `auto-detect' doesn't have much meaning, which is why this > should never have been a variable in the first place. > > Instead of trying to fix that mess, I thought it would be easier to > introduce a new function that does the right thing automatically, and > without a gazillion optional parameters, and then make the old function > obsolete. How about making char-displayable-p accept an optional argument, a frame for which to perform the test? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 07:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160162199629880 (code B ref 41250); Fri, 02 Oct 2020 07:00:02 +0000 Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 06:59:56 +0000 Received: from localhost ([127.0.0.1]:39208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOF2p-0007ls-Mu for submit@debbugs.gnu.org; Fri, 02 Oct 2020 02:59:55 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:57189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOF2n-0007lY-UZ for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 02:59:54 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 67C37E0009; Fri, 2 Oct 2020 06:59:45 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> Date: Fri, 02 Oct 2020 09:54:17 +0300 In-Reply-To: <877ds91zvy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 01 Oct 2020 21:59:13 +0200") Message-ID: <87lfgpm82u.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit > The variable doesn't work as is (because of the problem of mixed > frames), and `auto-detect' doesn't have much meaning, which is why this > should never have been a variable in the first place. > > Instead of trying to fix that mess, I thought it would be easier to > introduce a new function that does the right thing automatically, and > without a gazillion optional parameters, and then make the old function > obsolete. I have no opinion about a new function. Like everyone else, I'm using truncate-string-to-width, and happy with it, except of one complaint: on every use I need to wrap it with such code: (let ((ellipsis (cond (truncate-string-ellipsis) ((char-displayable-p ?…) "…") ("...")))) (truncate-string-to-width string max nil nil ellipsis)) Preferably, this should be fixed with this patch: --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=truncate-string-ellipsis.patch Content-Transfer-Encoding: 8bit diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index 660ac58e02..a2bd5802cc 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el @@ -44,10 +44,16 @@ store-substring (setq i (1+ i))))) string) -(defvar truncate-string-ellipsis "..." ;"…" +(defvar truncate-string-ellipsis nil "String to use to indicate truncation. Serves as default value of ELLIPSIS argument to `truncate-string-to-width'.") +(defun truncate-string-ellipsis () + (cond + (truncate-string-ellipsis) + ((char-displayable-p ?…) "…") + ("..."))) + ;;;###autoload (defun truncate-string-to-width (str end-column &optional start-column padding ellipsis @@ -81,7 +87,7 @@ truncate-string-to-width (or start-column (setq start-column 0)) (when (and ellipsis (not (stringp ellipsis))) - (setq ellipsis truncate-string-ellipsis)) + (setq ellipsis (truncate-string-ellipsis))) (let ((str-len (length str)) (str-width (string-width str)) (ellipsis-width (if ellipsis (string-width ellipsis) 0)) --=-=-=-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16016478549620 (code B ref 41250); Fri, 02 Oct 2020 14:11:02 +0000 Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 14:10:54 +0000 Received: from localhost ([127.0.0.1]:42196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLlu-0002V6-K3 for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:10:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLlr-0002Un-U9 for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 10:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SeiH6kqvYaTRIkpRcZHSDKiAmx7ls5nwk3YUdEQkr4I=; b=AX1GVb3oMKbG3HBmUQ2CulIctO bT2O/BXMArowUeGKBADm3z6QdH4wjMxdKDGjoX7DxgYucUWaE4ZQDHu6+GlujJXdT6z5/rbVo0Y1A uZbz0TnkQ8Q1LVA9zd/PLSBWRSoFv1ZkElFv/JW7JeW+2Y5I4sCWSM9NbNNv1OFueBR0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOLli-0004Dv-Ns; Fri, 02 Oct 2020 16:10:45 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <837ds9gmum.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUgCA9THyGdZ1Zq S0jTvbf///8dkPdbAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QKAg4GDYPN1S8AAAG2SURBVDjLdZRr FuMgCIXhZAMSN1AxC/DRDYx1/2sawGhq54w/mlO+IHC9BuBrnc4BOCDQ5/c6ggUEUN0J2S8qWTE/ w0C1pLziWGRv+4ucgcY7RORZAFYtgefnTkbytfQrCldAhcMA5C/m3jtncijFSsgwuitX19U4G+AX gFUj7mO1bDU4zUavG3SuWv79L/ggJektOvR5z3DS11EJ8MANtExLlB1EP2WRJz6g8wS1ahpvAJfM WL5ABhTRKBs5x1589aZAkshqAF7WUYlX88nEtgxJPSUuUnbWDAGi99321SOdfLV2io4royZ4S1kX ubdC4NMRLANLENAKNykuolA4E6ks5BVIzDrjUGrOuhXqSa7ZQ3aivFaRc+npAUmPHW0OLM0t8IHh BxuwRFjgpVONFBEkPCANCW1qQJFnljCbLHPCfwA8oNUfMGsoSFsGTzPADo55gBmO/ZIR1QnSXoS8 uTqMAb+KkJ1ufIkP0+HrfWtF+bfuFEWSI3HJZiu14mzKFEw6yugBHw1Xn+MxHffnF3i+L9sPQLmo g9in5PGuxNd53IOoe0is1h8wXjanlucavGwDp+AvqG13L9fgKPcAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjAtMTAtMDJUMTQ6MDY6MTMrMDA6MDBDsZlzAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEw LTAyVDE0OjA2OjEzKzAwOjAwMuwhzwAAAABJRU5ErkJggg== X-Now-Playing: Jane Siberry's _When I Was A Boy_: "Calling All Angels" Date: Fri, 02 Oct 2020 16:10:41 +0200 In-Reply-To: <837ds9gmum.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Oct 2020 09:31:45 +0300") Message-ID: <87wo08wwf2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > How about making char-displayable-p accept an optional argument, a > frame for which to perform the test? I thought char-displayable-p worked based on the current frame? Which is what we'd want in a truncate-string-visually function (or whatever it'd be called). But having that function take an optional f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > How about making char-displayable-p accept an optional argument, a > frame for which to perform the test? I thought char-displayable-p worked based on the current frame? Which is what we'd want in a truncate-string-visually function (or whatever it'd be called). But having that function take an optional frame parameter wouldn't help with the initialisation of the 'truncate-string-ellipsis' variable (a variable I think is misguided)... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 14:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160164808710041 (code B ref 41250); Fri, 02 Oct 2020 14:15:01 +0000 Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 14:14:47 +0000 Received: from localhost ([127.0.0.1]:42205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLpf-0002bt-CH for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:14:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLpd-0002aa-NA for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 10:14:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PqzFLf1y3TVBHBNOs0jAjRLtfFuJaQyn+IY+pd8ZEsQ=; b=Qn/HZ+tXb3GsUWIkOc2ivDXvbA QXiu8Cej+Oxd/iDh5v3gEjSBWJdWHuDOpC/tXb6WoFGoNsUM2QYfPGetxk5MYHCfrQxaQ5cXO+Byb XffUBgzIa2YEwyOVRz/aQPLiX5ebR3pX550vt5pJivvob9/YId8q3djsh+kGxBLWcbm8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOLpQ-0004Ha-AO; Fri, 02 Oct 2020 16:14:36 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUgCA9THyGdZ1Zq S0jTvbf///8dkPdbAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QKAg4GDYPN1S8AAAG2SURBVDjLdZRr FuMgCIXhZAMSN1AxC/DRDYx1/2sawGhq54w/mlO+IHC9BuBrnc4BOCDQ5/c6ggUEUN0J2S8qWTE/ w0C1pLziWGRv+4ucgcY7RORZAFYtgefnTkbytfQrCldAhcMA5C/m3jtncijFSsgwuitX19U4G+AX gFUj7mO1bDU4zUavG3SuWv79L/ggJektOvR5z3DS11EJ8MANtExLlB1EP2WRJz6g8wS1ahpvAJfM WL5ABhTRKBs5x1589aZAkshqAF7WUYlX88nEtgxJPSUuUnbWDAGi99321SOdfLV2io4royZ4S1kX ubdC4NMRLANLENAKNykuolA4E6ks5BVIzDrjUGrOuhXqSa7ZQ3aivFaRc+npAUmPHW0OLM0t8IHh BxuwRFjgpVONFBEkPCANCW1qQJFnljCbLHPCfwA8oNUfMGsoSFsGTzPADo55gBmO/ZIR1QnSXoS8 uTqMAb+KkJ1ufIkP0+HrfWtF+bfuFEWSI3HJZiu14mzKFEw6yugBHw1Xn+MxHffnF3i+L9sPQLmo g9in5PGuxNd53IOoe0is1h8wXjanlucavGwDp+AvqG13L9fgKPcAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjAtMTAtMDJUMTQ6MDY6MTMrMDA6MDBDsZlzAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEw LTAyVDE0OjA2OjEzKzAwOjAwMuwhzwAAAABJRU5ErkJggg== X-Now-Playing: Jane Siberry's _When I Was A Boy_: "Calling All Angels" Date: Fri, 02 Oct 2020 16:14:31 +0200 In-Reply-To: <87lfgpm82u.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 02 Oct 2020 09:54:17 +0300") Message-ID: <87sgawww8o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > I have no opinion about a new function. Like everyone else, I'm using > truncate-string-to-width, and happy with it, except of one complaint: > on every use I need to wrap it with such code: > > (le [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > I have no opinion about a new function. Like everyone else, I'm using > truncate-string-to-width, and happy with it, except of one complaint: > on every use I need to wrap it with such code: > > (let ((ellipsis (cond > (truncate-string-ellipsis) > ((char-displayable-p ?=E2=80=A6) "=E2=80=A6") > ("...")))) > (truncate-string-to-width string max nil nil ellipsis)) > > Preferably, this should be fixed with this patch: Your patch is a distinct improvement on the current state of affairs, so please go ahead and push to master (with a NEWS item). A new function that's more pixel-aware can be added at a later date, and is pretty much an orthogonal issue anyway. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160165065722224 (code B ref 41250); Fri, 02 Oct 2020 14:58:02 +0000 Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 14:57:37 +0000 Received: from localhost ([127.0.0.1]:42274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMV6-0005mO-Sw for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:57:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMV4-0005mC-T1 for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 10:57:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60699) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOMUy-00062S-Jw; Fri, 02 Oct 2020 10:57:28 -0400 Received: from [176.228.60.248] (port=4818 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOMUx-0001u7-Cp; Fri, 02 Oct 2020 10:57:28 -0400 Date: Fri, 02 Oct 2020 17:57:24 +0300 Message-Id: <83wo08ekvf.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87wo08wwf2.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 02 Oct 2020 16:10:41 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <837ds9gmum.fsf@gnu.org> <87wo08wwf2.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: juri@linkov.net, 41250@debbugs.gnu.org, arthur.miller@live.com > Date: Fri, 02 Oct 2020 16:10:41 +0200 > > Eli Zaretskii writes: > > > How about making char-displayable-p accept an optional argument, a > > frame for which to perform the test? > > I thought char-displayable-p worked based on the current frame? The selected-frame, yes. I though that wasn't good enough in this case, but maybe I was confused? If the latter, what exactly is the problem that caused you to say "The variable doesn't work as is (because of the problem of mixed frames)"? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160165078322412 (code B ref 41250); Fri, 02 Oct 2020 15:00:02 +0000 Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 14:59:43 +0000 Received: from localhost ([127.0.0.1]:42278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMX9-0005pQ-Ct for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:59:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMX7-0005pE-TU for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 10:59:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60714) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOMX2-0006Ao-2b; Fri, 02 Oct 2020 10:59:36 -0400 Received: from [176.228.60.248] (port=4948 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOMX1-0006pS-Gc; Fri, 02 Oct 2020 10:59:35 -0400 Date: Fri, 02 Oct 2020 17:59:34 +0300 Message-Id: <83v9fsekrt.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87sgawww8o.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 02 Oct 2020 16:14:31 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Fri, 02 Oct 2020 16:14:31 +0200 > Cc: 41250@debbugs.gnu.org, Arthur Miller > > > (let ((ellipsis (cond > > (truncate-string-ellipsis) > > ((char-displayable-p ?…) "…") > > ("...")))) > > (truncate-string-to-width string max nil nil ellipsis)) > > > > Preferably, this should be fixed with this patch: > > Your patch is a distinct improvement on the current state of affairs, so > please go ahead and push to master (with a NEWS item). > > A new function that's more pixel-aware can be added at a later date, and > is pretty much an orthogonal issue anyway. To be pixel-aware, we need to use window-text-pixel-size. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2020 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160174661732686 (code B ref 41250); Sat, 03 Oct 2020 17:37:02 +0000 Received: (at 41250) by debbugs.gnu.org; 3 Oct 2020 17:36:57 +0000 Received: from localhost ([127.0.0.1]:44378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOlSq-0008V8-Oh for submit@debbugs.gnu.org; Sat, 03 Oct 2020 13:36:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOlSo-0008Us-Ij for 41250@debbugs.gnu.org; Sat, 03 Oct 2020 13:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hi6++sGHRzDi/QGAGOwLuPkMB5aQdQNT27TgmYt+6kU=; b=K0kAN0618l1w/CduMTgc3qLlb4 2fnJdRtSD/q3A+0Q3uOD8bDtRIj72txlsg8wmF25IUZ4ZoHCHawac+ZheSlGa6aq8pvPsHgA9aSve ccyffBCdvlPxH8Jufo5OTbjJMD9iUzmcgfPTd54rMfGWQZn+FFYcv0zaqdUWUEvQ1T9I=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOlSd-0000kG-Ku; Sat, 03 Oct 2020 19:36:48 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <837ds9gmum.fsf@gnu.org> <87wo08wwf2.fsf@gnus.org> <83wo08ekvf.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEUFBAUmGDNMMTe0 SCi/k1G8rpzk3cz9/f3///+cFMj3AAAAAWJLR0QIht6VegAAAAd0SU1FB+QKAxEVEVnlS9oAAAGa SURBVDjLfZRNc5swEIY3DL1bDr2DEPc2qOk1gZVzbQgi14wH0D2Tor/fFTgYK3JfgWD2YfXxLgBw XXseUEqgDOnOB3Jun6CW1MoacbmTJS5AonQqcbnKFdBzkk43RF1uM65Nnl8Dgudu5XgWzVoR6MaA egLGWjuozl7o7wIauGFPAfBOfZS/fgXOMRjQ+OB9NrkY7n3wNoPvxdB5YB4JvtVKd5dgN4OoaVHp cbST28eRIiMV0SW9UHxV45YDUVlSlvjVFqewUg4YxHEg05L2Ida6Wxz6OFli+x00RRMdzMmrFUw/ II17UONozDiZM7B/gMd6V/juWnuEhOm0aNV5VctQPcSPh0dBMUTV4gp4D9FzIrDKJaLWw/EEnoEB VFo0+cFsbJ8ygJsd7V/dvm69mvvZrvTglfZhAVns1/wjXRLufTC9cMaA698+sFNbcr5vn74AQgNK EQLOYW7CwH+vNgW9LG3wqyUvgAXlwB6ZqBgyKTMhfyaYifoMkNWuo+h8fIIsqVZwuwVMZG4ol+ky qGf/nTwM2JV/0j//Gg73lH+4MQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMC0wM1QxNzoyMTox NyswMDowMB7s4ocAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTAtMDNUMTc6MjE6MTcrMDA6MDBv sVo7AAAAAElFTkSuQmCC X-Now-Playing: Brian Eno, Jah Wobble's _Spinner_: "Stravinksy" Date: Sat, 03 Oct 2020 19:36:42 +0200 In-Reply-To: <83wo08ekvf.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Oct 2020 17:57:24 +0300") Message-ID: <87a6x3us7p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> > How about making char-displayable-p accept an optional argument, a >> > frame for which to perform the test? >> >> I thought char-displayable-p worked based on the current frame? > > The selected [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> > How about making char-displayable-p accept an optional argument, a >> > frame for which to perform the test? >> >> I thought char-displayable-p worked based on the current frame? > > The selected-frame, yes. I though that wasn't good enough in this > case, but maybe I was confused? If the latter, what exactly is the > problem that caused you to say "The variable doesn't work as is > (because of the problem of mixed frames)"? There's a variable -- 'truncate-string-ellipsis' -- set globally, and it was suggested that the default of that variable should depend on char-displayable-p. I pointed out that that isn't very useful, in general, in a mixed frame situation. The char-displayable-p function is fine as is, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2020 17:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.1601746753435 (code B ref 41250); Sat, 03 Oct 2020 17:40:01 +0000 Received: (at 41250) by debbugs.gnu.org; 3 Oct 2020 17:39:13 +0000 Received: from localhost ([127.0.0.1]:44382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOlV3-00006w-5v for submit@debbugs.gnu.org; Sat, 03 Oct 2020 13:39:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOlV0-00006i-Kd for 41250@debbugs.gnu.org; Sat, 03 Oct 2020 13:39:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=O/rqA6OHGnFBJnoLrkHpgeDSx6f12Ti+W9DINIqmsKc=; b=VGIjC9W275gssPJhA9nw07AQiX biaIdTFp7zN7KKSUU/XK2agR/i5HOhhnHrYL6ITKihCrg9+8/H2YE/DIxw9q5MQOTLt2ljvdNC7zh EQ4NYnajj7WJvxkP9UWa5QClLvJnQseq4ULDled+IKIP+ry486n1v2ubUo4gN8RY3H+Y=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOlUr-0000kq-Sg; Sat, 03 Oct 2020 19:39:04 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <83v9fsekrt.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEUFBAUmGDNMMTe0 SCi/k1G8rpzk3cz9/f3///+cFMj3AAAAAWJLR0QIht6VegAAAAd0SU1FB+QKAxEVEVnlS9oAAAGa SURBVDjLfZRNc5swEIY3DL1bDr2DEPc2qOk1gZVzbQgi14wH0D2Tor/fFTgYK3JfgWD2YfXxLgBw XXseUEqgDOnOB3Jun6CW1MoacbmTJS5AonQqcbnKFdBzkk43RF1uM65Nnl8Dgudu5XgWzVoR6MaA egLGWjuozl7o7wIauGFPAfBOfZS/fgXOMRjQ+OB9NrkY7n3wNoPvxdB5YB4JvtVKd5dgN4OoaVHp cbST28eRIiMV0SW9UHxV45YDUVlSlvjVFqewUg4YxHEg05L2Ida6Wxz6OFli+x00RRMdzMmrFUw/ II17UONozDiZM7B/gMd6V/juWnuEhOm0aNV5VctQPcSPh0dBMUTV4gp4D9FzIrDKJaLWw/EEnoEB VFo0+cFsbJ8ygJsd7V/dvm69mvvZrvTglfZhAVns1/wjXRLufTC9cMaA698+sFNbcr5vn74AQgNK EQLOYW7CwH+vNgW9LG3wqyUvgAXlwB6ZqBgyKTMhfyaYifoMkNWuo+h8fIIsqVZwuwVMZG4ol+ky qGf/nTwM2JV/0j//Gg73lH+4MQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMC0wM1QxNzoyMTox NyswMDowMB7s4ocAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTAtMDNUMTc6MjE6MTcrMDA6MDBv sVo7AAAAAElFTkSuQmCC X-Now-Playing: Brian Eno, Jah Wobble's _Spinner_: "Lockdown" Date: Sat, 03 Oct 2020 19:38:59 +0200 In-Reply-To: <83v9fsekrt.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Oct 2020 17:59:34 +0300") Message-ID: <875z7rus3w.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > To be pixel-aware, we need to use window-text-pixel-size. Yup. This is the strategy that eww--pixel-column and friends use to figure out where to truncate the title in the header line of the eww buffers. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > To be pixel-aware, we need to use window-text-pixel-size. Yup. This is the strategy that eww--pixel-column and friends use to figure out where to truncate the title in the header line of the eww buffers. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Oct 2020 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16018407999061 (code B ref 41250); Sun, 04 Oct 2020 19:47:02 +0000 Received: (at 41250) by debbugs.gnu.org; 4 Oct 2020 19:46:39 +0000 Received: from localhost ([127.0.0.1]:46831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP9xv-0002M5-Ed for submit@debbugs.gnu.org; Sun, 04 Oct 2020 15:46:39 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:54193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP9xt-0002LV-Qw for 41250@debbugs.gnu.org; Sun, 04 Oct 2020 15:46:38 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 8275E240007; Sun, 4 Oct 2020 19:46:29 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> Date: Sun, 04 Oct 2020 22:44:22 +0300 In-Reply-To: <87sgawww8o.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 02 Oct 2020 16:14:31 +0200") Message-ID: <87y2klixr5.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> on every use I need to wrap it with such code: >> >> (let ((ellipsis (cond >> (truncate-string-ellipsis) >> ((char-displayable-p ?…) "…") >> ("...")))) >> (truncate-string-to-width string max nil nil ellipsis)) >> >> Preferably, this should be fixed with this patch: > > Your patch is a distinct improvement on the current state of affairs, so > please go ahead and push to master (with a NEWS item). Pushed now with a NEWS item. When I grepped for more usages of truncate-string-to-width, I found one call in Gnus. It seems this patch could improve gnus-set-mode-line, but I'm not sure, and moreover I have no idea how to test this: diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index b3ed5cb664..42ba4fbd71 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -6240,8 +6240,7 @@ gnus-set-mode-line ;; We might have to chop a bit of the string off... (when (> (length mode-string) max-len) (setq mode-string - (concat (truncate-string-to-width mode-string (- max-len 3)) - "..."))))) + (truncate-string-to-width mode-string (- max-len 3) nil nil t))))) ;; Update the mode line. (setq mode-line-buffer-identification (gnus-mode-line-buffer-identification (list mode-string))) Here is another function, and it needs not just an improvement, but a plain bug fix because its args were wrong, and this patch should fix its args, but again currently I don't yet know how to test this: diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index c9a748830c..8ff3b56c5e 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -1597,7 +1597,7 @@ ibuffer-compile-make-eliding-form (defun ibuffer-compile-make-substring-form (strvar maxvar from-end-p) (if from-end-p ;; FIXME: not sure if this case is correct (Bug#24972) - `(truncate-string-to-width str strlen (- strlen ,maxvar) nil ?\s) + `(truncate-string-to-width str strlen (- strlen ,maxvar) ?\s) `(truncate-string-to-width ,strvar ,maxvar nil ?\s))) (defun ibuffer-compile-make-format-form (strvar widthform alignment) From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 07:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160188170825861 (code B ref 41250); Mon, 05 Oct 2020 07:09:02 +0000 Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 07:08:28 +0000 Received: from localhost ([127.0.0.1]:47601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPKbk-0006j3-Ce for submit@debbugs.gnu.org; Mon, 05 Oct 2020 03:08:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPKbi-0006il-0l for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 03:08:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hnLaUWVJEUs2KNh+Jeg66tOnlPLPJhte/Typsp639O4=; b=u4a7SUJH4E14q0tue3HFtW+yZ5 8klnlj6rK2rIxaq5G2ZXRBJkaqGuaSognWXi0APhFDGtosaSWwFNSEN7dunduvEChRrFQ0Ydn77Pa VIcAjJeh1aK+59KwRz/EFUjEKRymS1GPRrfTBHMdD1Y/NjStCARwIeDvZVprbGoTyNkM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPKbV-0004lW-3U; Mon, 05 Oct 2020 09:08:15 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEXSRjLjSjSrPDBW JyPWa1fbi3PkvLT///+l+FD6AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QKBQYhMJKkQloAAAGnSURB VDjL1ZLNbusgEIWJZbJOq3ZPh2ZfgdQ1aQevfW8Z1lEFvP8jdLCJY1v3PkAnSqScj/nhDEL8kjj9 R+9ACPvyD/BoTgcLe/VQgTbavm3FQ6c02BpmpWshZtHqDdB2HbdSB7xUYKavtmppHkuegDadUvz/ oemylPIF50iujrCKgUGuP2U3fowMql7SFjQ5ib44IVQHrfkxYc0p7NPrtwKAroGI5Dkl8UkgtaqU EJETrtOhanDT+wq4lKfAA7IxG1ByDODHCjalfBYJwPgKOlCtEXmMbvg0oM8uik6JNq6MwSXpreWh 3OqGfb3bmKRhHfAaF1QdHND5CVTDXAPH6qAUDPhTDRiXUhS875+BH4HJREuGGIKQvpefvKf3hJTX N5Ee8S+vcChj7zZAIg4f9jyUP9uF9M8BXcz5mN0OhIDY4xjDab9cj56iK5dFoSmBClvs03E10WQA xRKQKK/fQprd4sPo2xLnuM7gym8rFxrvYJyfzygQqWR8WsZ1dcEyc39uwU7dU/S8RsnuMQh3ADPw xKNtQDcDanHX2+Jv4LQvdQO3qX4A+7+AFHeY4dQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAt MDVUMDY6MzM6NDgrMDA6MDB2N8LgAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEwLTA1VDA2OjMz OjQ4KzAwOjAwB2p6XAAAAABJRU5ErkJggg== X-Now-Playing: Stereolab's _Margerine Eclipse_: "Bop Scotch" Date: Mon, 05 Oct 2020 09:08:11 +0200 In-Reply-To: <87y2klixr5.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 04 Oct 2020 22:44:22 +0300") Message-ID: <87r1qdqhes.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Pushed now with a NEWS item. Great! Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > Pushed now with a NEWS item. Great! > When I grepped for more usages of truncate-string-to-width, I found > one call in Gnus. It seems this patch could improve gnus-set-mode-line, > but I'm not sure, and moreover I have no idea how to test this: [...] > - (concat (truncate-string-to-width mode-string (- max-len 3)) > - "..."))))) > + (truncate-string-to-width mode-string (- max-len 3) nil nil t))))) I applied the patch and tested it, and it looks fine, so I've pushed it to Emacs 28. > Here is another function, and it needs not just an improvement, > but a plain bug fix because its args were wrong, and this patch should fix > its args, but again currently I don't yet know how to test this: [...] > - `(truncate-string-to-width str strlen (- strlen ,maxvar) nil ?\s) > + `(truncate-string-to-width str strlen (- strlen ,maxvar) ?\s) > `(truncate-string-to-width ,strvar ,maxvar nil ?\s))) Testing should be pretty easy -- just say `M-x ibuffer' and look at how it truncates buffer names. :-) However, the patch doesn't fix the ellipsis stuff here, because ibuffer has a `ibuffer-eliding-string' variable (that could be obsoleted now). (But the patch otherwise looks "obviously correct" to me; passing in ?\s as the ellipsis argument doesn't make much sense.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Lars Ingebrigtsen , Arthur Miller , Drew Adams Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160191297714906 (code B ref 41250); Mon, 05 Oct 2020 15:50:01 +0000 Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 15:49:37 +0000 Received: from localhost ([127.0.0.1]:50266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPSk5-0003sM-DG for submit@debbugs.gnu.org; Mon, 05 Oct 2020 11:49:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPSk3-0003s7-E1 for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 11:49:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60936) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPSjw-0000de-Oe; Mon, 05 Oct 2020 11:49:28 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kPSju-0006MX-Pk; Mon, 05 Oct 2020 11:49:26 -0400 From: Glenn Morris References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> X-Spook: kilo class threat colonel Breach Car bomb lynch PGP Drug X-Ran: 5\uW6kOsu:gCTJ0QUU2>xcjvkb~_)PR[%Mk&25JN"'Q+Kv/_Z80M[]aTs2EfW8J(k!NMK+ X-Hue: black X-Attribution: GM Date: Mon, 05 Oct 2020 11:49:25 -0400 In-Reply-To: <87y2klixr5.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 04 Oct 2020 22:44:22 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 5ec2115 seems to cause a build failure in some cases. Ref https://hydra.nixos.org/build/128075429 From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Glenn Morris Cc: 41250@debbugs.gnu.org, Lars Ingebrigtsen , Arthur Miller , Drew Adams Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160192941116624 (code B ref 41250); Mon, 05 Oct 2020 20:24:02 +0000 Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 20:23:31 +0000 Received: from localhost ([127.0.0.1]:50640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPX19-0004K3-3G for submit@debbugs.gnu.org; Mon, 05 Oct 2020 16:23:31 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPX15-0004Jm-G5 for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 16:23:30 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id D6E4FC0002; Mon, 5 Oct 2020 20:23:17 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> Date: Mon, 05 Oct 2020 23:12:50 +0300 In-Reply-To: (Glenn Morris's message of "Mon, 05 Oct 2020 11:49:25 -0400") Message-ID: <87blhgv3ct.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 5ec2115 seems to cause a build failure in some cases. > Ref https://hydra.nixos.org/build/128075429 I tried to bootstrap several times, but can't reproduce the error. Here are the relevant parts of the hydra log: make -C ../leim all EMACS="../src/bootstrap-emacs" GEN ../lisp/leim/ja-dic/ja-dic.el INFO Processing OKURI-ARI entries INFO Processing POSTFIX entries Loading macroexp.elc... Invalid read syntax: "?" make[3]: *** [Makefile:143: ../lisp/leim/ja-dic/ja-dic.el] Error 255 When I tried the command make -C leim all EMACS="../src/bootstrap-emacs" its output was: GEN ../lisp/leim/ja-dic/ja-dic.el INFO Processing OKURI-ARI entries INFO Processing POSTFIX entries Source file `lisp/international/mule-util.el' newer than byte-compiled file; using older file INFO Processing PREFIX entries ... INFO Processing OKURI-NASI entries...done and successfully finished. The interesting line is "Source file `lisp/international/mule-util.el' newer" this means that skkdic-convert-postfix in ja-dic-cnv.el calls set-nested-alist that autoloads mule-util.el. So the question is why loading mule-util.el produces this error? It seems loading can't parse this recently added line: (char-displayable-p ?…) and gives the error `Invalid read syntax: "?"`. Maybe this Unicode character should be replaced in the source file with its name: (char-displayable-p ?\N{HORIZONTAL ELLIPSIS}) From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Lars Ingebrigtsen Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160192941516640 (code B ref 41250); Mon, 05 Oct 2020 20:24:02 +0000 Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 20:23:35 +0000 Received: from localhost ([127.0.0.1]:50643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPX1D-0004KJ-Ax for submit@debbugs.gnu.org; Mon, 05 Oct 2020 16:23:35 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:32803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPX19-0004Jr-8c for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 16:23:33 -0400 X-Originating-IP: 91.129.108.13 Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 24B631C0003; Mon, 5 Oct 2020 20:23:22 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87r1qdqhes.fsf@gnus.org> Date: Mon, 05 Oct 2020 23:15:32 +0300 In-Reply-To: <87r1qdqhes.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 05 Oct 2020 09:08:11 +0200") Message-ID: <87pn5wtofj.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> - `(truncate-string-to-width str strlen (- strlen ,maxvar) nil ?\s) >> + `(truncate-string-to-width str strlen (- strlen ,maxvar) ?\s) >> `(truncate-string-to-width ,strvar ,maxvar nil ?\s))) > > Testing should be pretty easy -- just say `M-x ibuffer' and look at how > it truncates buffer names. :-) > > However, the patch doesn't fix the ellipsis stuff here, because ibuffer > has a `ibuffer-eliding-string' variable (that could be obsoleted now). Yep, this is what I tried, but it had no immediate effect :-) > (But the patch otherwise looks "obviously correct" to me; passing in ?\s > as the ellipsis argument doesn't make much sense.) It seems this code is over-complicated with several levels of backquoting. So maybe better just to push this obvious fix. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: Glenn Morris , Lars Ingebrigtsen , Arthur Miller , 41250@debbugs.gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16019335014093 (code B ref 41250); Mon, 05 Oct 2020 21:32:02 +0000 Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 21:31:41 +0000 Received: from localhost ([127.0.0.1]:50689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPY57-00013e-1K for submit@debbugs.gnu.org; Mon, 05 Oct 2020 17:31:41 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:41023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPY55-00011R-DR for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 17:31:40 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C4v1P5X2gz1qrfx; Mon, 5 Oct 2020 23:31:37 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C4v1P3jXXz1r0lk; Mon, 5 Oct 2020 23:31:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 3a4yM3tXtix5; Mon, 5 Oct 2020 23:31:36 +0200 (CEST) X-Auth-Info: JIFMwqlAsKaPrDQdsauLZbSMd09ln+BhrRVxSx4cJY7nEF3sNsahvkvOu5Jq1/2m Received: from igel.home (ppp-46-244-175-195.dynamic.mnet-online.de [46.244.175.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 5 Oct 2020 23:31:36 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 4ED752C2952; Mon, 5 Oct 2020 23:31:36 +0200 (CEST) From: Andreas Schwab References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> X-Yow: Yes, Private DOBERMAN!! Date: Mon, 05 Oct 2020 23:31:36 +0200 In-Reply-To: <87blhgv3ct.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 05 Oct 2020 23:12:50 +0300") Message-ID: <87mu10s6kn.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 05 2020, Juri Linkov wrote: > So the question is why loading mule-util.el produces this error? Because skkdic-convert binds coding-system-for-read to euc-japan. $ ../src/bootstrap-emacs -batch --eval "(let ((coding-system-for-read 'euc-japan)) (require 'mule-util))" Invalid read syntax: "?" Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 23:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Lars Ingebrigtsen , Arthur Miller , Drew Adams Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160193918623543 (code B ref 41250); Mon, 05 Oct 2020 23:07:02 +0000 Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 23:06:26 +0000 Received: from localhost ([127.0.0.1]:50758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPZYo-00067e-Ir for submit@debbugs.gnu.org; Mon, 05 Oct 2020 19:06:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPZYk-00067O-PE for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 19:06:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40433) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPZYe-00041O-IH; Mon, 05 Oct 2020 19:06:16 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kPZYV-0002lJ-Lc; Mon, 05 Oct 2020 19:06:14 -0400 From: Glenn Morris References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> X-Spook: Palestine Liberation Organization MS13 bootleg TWA X-Ran: a^BbO5J5)[y'TE^r.YSkZCB_0VCN+B@xlXF~M*1j}C~&bmLV&R18*w47jc3dM0nB&c/3dO X-Hue: white X-Attribution: GM Date: Mon, 05 Oct 2020 19:06:05 -0400 In-Reply-To: <87blhgv3ct.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 05 Oct 2020 23:12:50 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov wrote: >> 5ec2115 seems to cause a build failure in some cases. >> Ref https://hydra.nixos.org/build/128075429 > > I tried to bootstrap several times, but can't reproduce the error. I think doing a non-parallel build in a completely clean tree (not just a bootstrap) should make it reproducible. > make -C leim all EMACS="../src/bootstrap-emacs" > Source file `lisp/international/mule-util.el' newer than byte-compiled file; using older file leim/Makefile.in should probably set load-prefer-newer, as lisp/Makefile.in does. > So the question is why loading mule-util.el produces this error? Thanks to Andreas for answering that. Simply making ja-dic-cnv.el require mule-util at top-level seems to avoid the problem? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 01:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Juri Linkov Cc: 41250@debbugs.gnu.org, Drew Adams , Arthur Miller Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160194829214234 (code B ref 41250); Tue, 06 Oct 2020 01:39:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 01:38:12 +0000 Received: from localhost ([127.0.0.1]:50926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPbvg-0003hV-Df for submit@debbugs.gnu.org; Mon, 05 Oct 2020 21:38:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPbve-0003hJ-Q1 for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 21:38:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cf4c9+sYIK4S79Ug5quuvha0HpOdLslmk3D9Aw+eZgU=; b=Usr3O5fhT59FindGETMpzSxdX/ Q5cTJwx1dz8oXR4T4THOdziRKtXy6rqkxF47BfxCSWRp/OKEEuKHvWGftkoYxz+T2vRQ17qjtaTrH xgoTSaC2vIbhupk73Kd1dJu51eRXH0MXCk9499jDBj5OSnAGuldRS4qZdPqRPzRomJTU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPbvT-0001Rl-VL; Tue, 06 Oct 2020 03:38:02 +0200 From: Lars Ingebrigtsen References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87r1qdqhes.fsf@gnus.org> <87pn5wtofj.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEW8urXU0MzLyMHF wbvBvrivrKeioJyYlpJaWFb29fSDgH4YFxf///9drujFAAAAAWJLR0QMgbNRYwAAAAd0SU1FB+QK BgEjId3YuUEAAAGmSURBVDjLddOxTsMwEABQ0wQqNsLGVhzEnNqGOdRmr0qjrgikVGKCDm0lZqRI XWDsHyB1L0j+Oe7sxDZN6yFK/HLnc84hR8l5klwmlKZCKqUk54xSynPywGEwlnIzKaxxQSzgUM2I QfLjGoRopvM4AMmFCyAkBPc+RAQgfX4EogBOTAQ8i4MgPUgL0tTq6vVgqsVduRAPkMgo5ssVQlYD NyBtDbEHbsBkxK3DXdYNQRpQCHnXf0RbHC7fAml3GnloVsBm2H7spGJuPYCxm76dLobzcrGIdiOy ooiLIVxCwKab78JSEVbFllX1dPf18pFV1RuAaGDwvdKz0/XntrfSFyHwR4TVcntlwa8xedczpvU2 03oeSeFhutk8X2v909O6gtb5VJfJ+qxv4Lcaw+Yd9BPKB5PyVZRFGWOqph/w+bhgNMWF46Dn7vQK bBQ2PoS68ep/qiDsMPADYHbeBmEb1YY6bl8EP5QKLwCjfZlE83Pir01DARjZ2TZ0Uh4AnAkHlLoQ vKsXuScd1szbkdoTeYMRuwB9YVmYyoKtUJCorsO/b442+wNtn/v1zfwzhAAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMC0xMC0wNlQwMTozNTozMyswMDowMCdQXe4AAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjAtMTAtMDZUMDE6MzU6MzMrMDA6MDBWDeVSAAAAAElFTkSuQmCC X-Now-Playing: The Notwist's _Pick Up The Phone_: "Pick Up The Phone" Date: Tue, 06 Oct 2020 03:37:58 +0200 In-Reply-To: <87pn5wtofj.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 05 Oct 2020 23:15:32 +0300") Message-ID: <87h7r8nngp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> (But the patch otherwise looks "obviously correct" to me; passing in ?\s >> as the ellipsis argument doesn't make much sense.) > > It seems this code is over-complicated with several levels of back [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >> (But the patch otherwise looks "obviously correct" to me; passing in ?\s >> as the ellipsis argument doesn't make much sense.) > > It seems this code is over-complicated with several levels of backquoting. > So maybe better just to push this obvious fix. Yup. And ibuffer probably can't use the ellipsis stuff from the function anyway, because it wants to create a tabulated buffer layout, and assumes that all the characters have the same width. (I've just skimmed the code; I may well be wrong here.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 07:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Glenn Morris Cc: 41250@debbugs.gnu.org, Lars Ingebrigtsen , Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160196840622179 (code B ref 41250); Tue, 06 Oct 2020 07:14:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 07:13:26 +0000 Received: from localhost ([127.0.0.1]:51445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhA5-0005lf-Rz for submit@debbugs.gnu.org; Tue, 06 Oct 2020 03:13:26 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:36537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhA4-0005lW-9E for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 03:13:24 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C57wg0RDxz1qw9N; Tue, 6 Oct 2020 09:13:22 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C57wf5h2cz1r0lw; Tue, 6 Oct 2020 09:13:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id LXJTBixW08tV; Tue, 6 Oct 2020 09:13:21 +0200 (CEST) X-Auth-Info: Q5XZjHCcO74uXk58aduvsfDFVLcR32K3VJBEx3AIFd5F6bt5wX/5Z8ScDMFCVf3Q Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 09:13:21 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 6498F2C0BFE; Tue, 6 Oct 2020 09:13:21 +0200 (CEST) From: Andreas Schwab References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> X-Yow: .. ich bin in einem dusenjet ins jahr 53 vor chr... ich lande im antiken Rom... einige gladiatoren spielen scrabble... ich rieche PIZZA... Date: Tue, 06 Oct 2020 09:13:21 +0200 In-Reply-To: (Glenn Morris's message of "Mon, 05 Oct 2020 19:06:05 -0400") Message-ID: <87zh4zn7xq.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 05 2020, Glenn Morris wrote: > Thanks to Andreas for answering that. Simply making ja-dic-cnv.el > require mule-util at top-level seems to avoid the problem? Autoloading should probably bind coding-system-for-read to nil. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 07:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab Cc: rgm@gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, 41250@debbugs.gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160196871122735 (code B ref 41250); Tue, 06 Oct 2020 07:19:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 07:18:31 +0000 Received: from localhost ([127.0.0.1]:51455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhEw-0005uW-Ku for submit@debbugs.gnu.org; Tue, 06 Oct 2020 03:18:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhEu-0005uI-FN for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 03:18:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46718) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPhEm-00004q-NM; Tue, 06 Oct 2020 03:18:16 -0400 Received: from [176.228.60.248] (port=3814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPhEk-0005WT-NO; Tue, 06 Oct 2020 03:18:16 -0400 Date: Tue, 06 Oct 2020 10:18:17 +0300 Message-Id: <83ft6rbz5z.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87zh4zn7xq.fsf@igel.home> (message from Andreas Schwab on Tue, 06 Oct 2020 09:13:21 +0200) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andreas Schwab > Date: Tue, 06 Oct 2020 09:13:21 +0200 > Cc: 41250@debbugs.gnu.org, Lars Ingebrigtsen , > Arthur Miller , Juri Linkov > > On Okt 05 2020, Glenn Morris wrote: > > > Thanks to Andreas for answering that. Simply making ja-dic-cnv.el > > require mule-util at top-level seems to avoid the problem? > > Autoloading should probably bind coding-system-for-read to nil. Perhaps if it is not already bound to something. But not unconditionally, I think. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 07:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: schwab@linux-m68k.org Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160196929323650 (code B ref 41250); Tue, 06 Oct 2020 07:29:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 07:28:13 +0000 Received: from localhost ([127.0.0.1]:51459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhOO-00069O-K3 for submit@debbugs.gnu.org; Tue, 06 Oct 2020 03:28:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhOM-00069A-Es for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 03:28:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46781) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPhOG-00016y-9I; Tue, 06 Oct 2020 03:28:04 -0400 Received: from [176.228.60.248] (port=4413 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPhOC-0001MZ-R5; Tue, 06 Oct 2020 03:28:01 -0400 Date: Tue, 06 Oct 2020 10:28:03 +0300 Message-Id: <83eembbypo.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <83ft6rbz5z.fsf@gnu.org> (message from Eli Zaretskii on Tue, 06 Oct 2020 10:18:17 +0300) References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 06 Oct 2020 10:18:17 +0300 > From: Eli Zaretskii > Cc: 41250@debbugs.gnu.org, rgm@gnu.org, larsi@gnus.org, arthur.miller@live.com, > juri@linkov.net > > > Autoloading should probably bind coding-system-for-read to nil. > > Perhaps if it is not already bound to something. But not > unconditionally, I think. Actually, aren't *.elc files always encoded in utf-8-emacs? If so, perhaps we should treat them as such in load-with-code-conversion, bypassing coding-system-for-read entirely? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160197051425561 (code B ref 41250); Tue, 06 Oct 2020 07:49:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 07:48:34 +0000 Received: from localhost ([127.0.0.1]:51477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhi5-0006eD-OY for submit@debbugs.gnu.org; Tue, 06 Oct 2020 03:48:33 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:52791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhi3-0006e3-3y for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 03:48:32 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C58j92snTz1s6DV; Tue, 6 Oct 2020 09:48:29 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C58j874cfz1r0lw; Tue, 6 Oct 2020 09:48:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id dtmADAUKkBrj; Tue, 6 Oct 2020 09:48:26 +0200 (CEST) X-Auth-Info: cIex1IocFAB894cfzmpG+ZZb0cQQWIFdVqRnhienvmWKYyrrqSsdP95H7jO83SRb Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 09:48:26 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 4382F2C0BFE; Tue, 6 Oct 2020 09:48:26 +0200 (CEST) From: Andreas Schwab References: <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> X-Yow: I'm losing my hair..did it go to ATLANTIC CITY?? Date: Tue, 06 Oct 2020 09:48:26 +0200 In-Reply-To: <83eembbypo.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Oct 2020 10:28:03 +0300") Message-ID: <87mu0zn6b9.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 06 2020, Eli Zaretskii wrote: > Actually, aren't *.elc files always encoded in utf-8-emacs? This is about uncompiled files. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 07:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, larsi@gnus.org, Andreas Schwab , arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160197078925992 (code B ref 41250); Tue, 06 Oct 2020 07:54:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 07:53:09 +0000 Received: from localhost ([127.0.0.1]:51488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhmX-0006l9-IK for submit@debbugs.gnu.org; Tue, 06 Oct 2020 03:53:09 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:50311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhmV-0006kg-MJ for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 03:53:08 -0400 X-Originating-IP: 91.129.102.160 Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 58C8B1C0010; Tue, 6 Oct 2020 07:52:59 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> Date: Tue, 06 Oct 2020 10:52:33 +0300 In-Reply-To: <83ft6rbz5z.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Oct 2020 10:18:17 +0300") Message-ID: <87d01vbxku.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> > Thanks to Andreas for answering that. Simply making ja-dic-cnv.el >> > require mule-util at top-level seems to avoid the problem? >> >> Autoloading should probably bind coding-system-for-read to nil. > > Perhaps if it is not already bound to something. But not > unconditionally, I think. As a quick fix before deciding for a more general solution I replaced the character with its name. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 08:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160197232028642 (code B ref 41250); Tue, 06 Oct 2020 08:19:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 08:18:40 +0000 Received: from localhost ([127.0.0.1]:51546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPiB3-0007Rh-6B for submit@debbugs.gnu.org; Tue, 06 Oct 2020 04:18:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPiB0-0007RT-EK for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 04:18:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47503) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPiAs-0008L3-Tz; Tue, 06 Oct 2020 04:18:18 -0400 Received: from [176.228.60.248] (port=3654 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPiAr-0002aB-NA; Tue, 06 Oct 2020 04:18:18 -0400 Date: Tue, 06 Oct 2020 11:18:20 +0300 Message-Id: <83d01vbwdv.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87mu0zn6b9.fsf@igel.home> (message from Andreas Schwab on Tue, 06 Oct 2020 09:48:26 +0200) References: <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> <87mu0zn6b9.fsf@igel.home> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andreas Schwab > Cc: 41250@debbugs.gnu.org, rgm@gnu.org, larsi@gnus.org, > arthur.miller@live.com, juri@linkov.net > Date: Tue, 06 Oct 2020 09:48:26 +0200 > > On Okt 06 2020, Eli Zaretskii wrote: > > > Actually, aren't *.elc files always encoded in utf-8-emacs? > > This is about uncompiled files. But the error message which started this bug report was about macroexp.elc, no? I guess I'm missing something. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 08:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160197387631296 (code B ref 41250); Tue, 06 Oct 2020 08:45:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 08:44:36 +0000 Received: from localhost ([127.0.0.1]:51618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPiaK-00088i-D5 for submit@debbugs.gnu.org; Tue, 06 Oct 2020 04:44:36 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:52106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPiaH-00088Y-Ig for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 04:44:34 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C59xq6p9jz1sKCQ; Tue, 6 Oct 2020 10:44:31 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C59xq4cCgz1sM97; Tue, 6 Oct 2020 10:44:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fgUZAX9r9xvA; Tue, 6 Oct 2020 10:44:30 +0200 (CEST) X-Auth-Info: WGNLarbyjj0+SK1d8qFSt0g4SZ5hnTW6s7hs82hHDYA1jScJcuvNIH4bpb9ODyDs Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 10:44:30 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 435002C2858; Tue, 6 Oct 2020 10:44:30 +0200 (CEST) From: Andreas Schwab References: <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> <87mu0zn6b9.fsf@igel.home> <83d01vbwdv.fsf@gnu.org> X-Yow: Could I have a drug overdose? Date: Tue, 06 Oct 2020 10:44:30 +0200 In-Reply-To: <83d01vbwdv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Oct 2020 11:18:20 +0300") Message-ID: <87imbnn3pt.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 06 2020, Eli Zaretskii wrote: > But the error message which started this bug report was about > macroexp.elc, no? No, this is unrelated. It just happend to be loaded at the same time. See the recipe in <87mu10s6kn.fsf@igel.home>. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 09:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.1601975002687 (code B ref 41250); Tue, 06 Oct 2020 09:04:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 09:03:22 +0000 Received: from localhost ([127.0.0.1]:51654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPisQ-0000Av-6j for submit@debbugs.gnu.org; Tue, 06 Oct 2020 05:03:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPisN-0000Ah-NV for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 05:03:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48084) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPisH-0005kH-II; Tue, 06 Oct 2020 05:03:09 -0400 Received: from [176.228.60.248] (port=2492 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPisG-0003xe-Et; Tue, 06 Oct 2020 05:03:08 -0400 Date: Tue, 06 Oct 2020 12:03:11 +0300 Message-Id: <837ds3bub4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87imbnn3pt.fsf@igel.home> (message from Andreas Schwab on Tue, 06 Oct 2020 10:44:30 +0200) References: <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> <87mu0zn6b9.fsf@igel.home> <83d01vbwdv.fsf@gnu.org> <87imbnn3pt.fsf@igel.home> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andreas Schwab > Cc: 41250@debbugs.gnu.org, rgm@gnu.org, larsi@gnus.org, > arthur.miller@live.com, juri@linkov.net > Date: Tue, 06 Oct 2020 10:44:30 +0200 > > On Okt 06 2020, Eli Zaretskii wrote: > > > But the error message which started this bug report was about > > macroexp.elc, no? > > No, this is unrelated. It just happend to be loaded at the same time. Ah, okay. So perhaps adding a coding: cookie in mule-utils.el would solve this? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16019758811977 (code B ref 41250); Tue, 06 Oct 2020 09:18:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 09:18:01 +0000 Received: from localhost ([127.0.0.1]:51664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPj6e-0000Vp-Rh for submit@debbugs.gnu.org; Tue, 06 Oct 2020 05:18:01 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:33738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPj6c-0000Ve-Kd for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 05:17:59 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C5BhP3Dydz1r6nK; Tue, 6 Oct 2020 11:17:57 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C5BhP15k4z1sM9D; Tue, 6 Oct 2020 11:17:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 3ztDs4ndydGF; Tue, 6 Oct 2020 11:17:56 +0200 (CEST) X-Auth-Info: 7l2vcer8TIwfN0RyTIKo1SYnrRyQtIbqWYj5eQourimezrdQfou3s0fGVWCpdEYF Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 11:17:56 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id E800F2C2858; Tue, 6 Oct 2020 11:17:55 +0200 (CEST) From: Andreas Schwab References: <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> <87mu0zn6b9.fsf@igel.home> <83d01vbwdv.fsf@gnu.org> <87imbnn3pt.fsf@igel.home> <837ds3bub4.fsf@gnu.org> X-Yow: After THIS, let's go to PHILADELPHIA and have TRIPLETS!! Date: Tue, 06 Oct 2020 11:17:55 +0200 In-Reply-To: <837ds3bub4.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Oct 2020 12:03:11 +0300") Message-ID: <87a6wzn264.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 06 2020, Eli Zaretskii wrote: > So perhaps adding a coding: cookie in mule-utils.el would solve this? No, coding-system-for-read takes precedence. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16019762592587 (code B ref 41250); Tue, 06 Oct 2020 09:25:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 09:24:19 +0000 Received: from localhost ([127.0.0.1]:51671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPjCg-0000fW-SK for submit@debbugs.gnu.org; Tue, 06 Oct 2020 05:24:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPjCe-0000f3-6O for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 05:24:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48280) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPjCW-0008AZ-8a; Tue, 06 Oct 2020 05:24:05 -0400 Received: from [176.228.60.248] (port=3770 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPjCU-0005i9-LT; Tue, 06 Oct 2020 05:24:03 -0400 Date: Tue, 06 Oct 2020 12:24:04 +0300 Message-Id: <834kn7btcb.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a6wzn264.fsf@igel.home> (message from Andreas Schwab on Tue, 06 Oct 2020 11:17:55 +0200) References: <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> <87mu0zn6b9.fsf@igel.home> <83d01vbwdv.fsf@gnu.org> <87imbnn3pt.fsf@igel.home> <837ds3bub4.fsf@gnu.org> <87a6wzn264.fsf@igel.home> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Andreas Schwab > Cc: 41250@debbugs.gnu.org, rgm@gnu.org, larsi@gnus.org, > arthur.miller@live.com, juri@linkov.net > Date: Tue, 06 Oct 2020 11:17:55 +0200 > > On Okt 06 2020, Eli Zaretskii wrote: > > > So perhaps adding a coding: cookie in mule-utils.el would solve this? > > No, coding-system-for-read takes precedence. Perhaps this is what we should change in load-with-code-conversion? Does it make sense to have any coding-system-for-read except no-conversion take precedence over an explicit file-local encoding value of a .el file? From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 09:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Eli Zaretskii Cc: 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, rgm@gnu.org Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16019775574760 (code B ref 41250); Tue, 06 Oct 2020 09:46:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 09:45:57 +0000 Received: from localhost ([127.0.0.1]:51728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPjXh-0001Ei-5M for submit@debbugs.gnu.org; Tue, 06 Oct 2020 05:45:57 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:59277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPjXe-0001EY-53 for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 05:45:55 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C5CJc6bncz1r6nC; Tue, 6 Oct 2020 11:45:52 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C5CJc5g6Yz1sM9N; Tue, 6 Oct 2020 11:45:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id aH3eemuh6vFF; Tue, 6 Oct 2020 11:45:52 +0200 (CEST) X-Auth-Info: z7Fv9+3KuSrwXRCKaHDnqlT77EWnXEny3zRAUDoq3klUj8Xje16Ol1aczzSEKOLz Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 11:45:51 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 8D4862C285E; Tue, 6 Oct 2020 11:45:51 +0200 (CEST) From: Andreas Schwab References: <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87zh4zn7xq.fsf@igel.home> <83ft6rbz5z.fsf@gnu.org> <83eembbypo.fsf@gnu.org> <87mu0zn6b9.fsf@igel.home> <83d01vbwdv.fsf@gnu.org> <87imbnn3pt.fsf@igel.home> <837ds3bub4.fsf@gnu.org> <87a6wzn264.fsf@igel.home> <834kn7btcb.fsf@gnu.org> X-Yow: I hope I bought the right relish... zzzzzzzzz... Date: Tue, 06 Oct 2020 11:45:51 +0200 In-Reply-To: <834kn7btcb.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Oct 2020 12:24:04 +0300") Message-ID: <871ribn0vk.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 06 2020, Eli Zaretskii wrote: > Perhaps this is what we should change in load-with-code-conversion? > Does it make sense to have any coding-system-for-read except > no-conversion take precedence over an explicit file-local encoding > value of a .el file? That's basically what I proposed. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline References: In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab , Eli Zaretskii , 41250@debbugs.gnu.org, larsi@gnus.org, juri@linkov.net, arthur.miller@live.com, Glenn Morris Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160198421623506 (code B ref 41250); Tue, 06 Oct 2020 11:37:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 11:36:56 +0000 Received: from localhost ([127.0.0.1]:51808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPlH6-000674-Hp for submit@debbugs.gnu.org; Tue, 06 Oct 2020 07:36:56 -0400 Received: from mail1465c50.megamailservers.eu ([91.136.14.65]:47830 helo=mail268c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPlH3-00066p-PQ for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 07:36:55 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1601984206; bh=Ty/hRhoz1U5XxDsNDWgjGKQ5muV8YBHkSTBLXQr1XcQ=; h=From:Subject:Date:To:From; b=iqd/YCWx1gi/VS/QzpM7cW5OsQWyoLBX8y9mNggExLNKNHpZYEzk4pKNyStnmEi/q jOfxeLBgQvM3tVTHXhDfiARzGY3VN+dgWAMSnzMirO/dDDZQ4v2UVJQvlFF9Rj8zfC UdDYIGICW6D1xPwv68VnjKDN5Il1I11ySDMzH+q8= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-304ee655.032-75-73746f71.bbcust.telenor.se [85.230.78.48]) (authenticated bits=0) by mail268c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 096BahvA010997; Tue, 6 Oct 2020 11:36:45 +0000 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Message-Id: <5254F42F-607A-41F2-BCCC-4A37B650FDFD@acm.org> Date: Tue, 6 Oct 2020 13:36:42 +0200 X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A782F1B.5F7C56CE.0077, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=BZ+mLYl2 c=1 sm=1 tr=0 a=63Z2wlQ1NB3xHpgKFKE71g==:117 a=63Z2wlQ1NB3xHpgKFKE71g==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=oynCb-Gb3LzQ_1K3Sp4A:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: To repair the build, I changed from \N{...} to hex escapes. Perhaps you want a different solution eventually. Putting (require 'mule-util) at the top level of ja-dic-cnv.el doesn't help -- \N{...} escapes don't seem to work at this stage of the build. Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) To repair the build, I changed from \N{...} to hex escapes. Perhaps you = want a different solution eventually. Putting (require 'mule-util) at the top level of ja-dic-cnv.el doesn't = help -- \N{...} escapes don't seem to work at this stage of the build. From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab Cc: 41250@debbugs.gnu.org, Glenn Morris , Lars Ingebrigtsen , Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160198973132427 (code B ref 41250); Tue, 06 Oct 2020 13:09:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 13:08:51 +0000 Received: from localhost ([127.0.0.1]:51962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPmi3-0008Qx-K3 for submit@debbugs.gnu.org; Tue, 06 Oct 2020 09:08:51 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:33744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPmhz-0008Qh-St for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 09:08:50 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6F20780C95; Tue, 6 Oct 2020 09:08:42 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D5AEE8073F; Tue, 6 Oct 2020 09:08:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1601989720; bh=pQy/iscE7HNhM8k6eV8FlUUjue6gzf6omLkabpTfaGw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=SrTKkHt2kGZIdcwTxYyBRU9YZJzg5Yut0DTOfkvaMgEAsLzDDD1+vW3DgHYQni/OJ vELZQ6Cunv6AUO0EOPKaLa3mFHtFDv1fWhPguP/v1ztpzozZzIls/XCCOWT3HH7Pak DdblMO9UmChD7j9H/oi9ORh5z5QwMMVmjCkYjL0T1y2yZ1ClMPnm7Rag0f74HeozjN +Il+1QA12YlktimjdOcovS+GjSx6cgdLhwY/oNMxg6H3/ahSLcQ8GeVBrTS0xhvYn7 pS8I2fNE2xQ7GJ1cbivEl7Ubp8chCpcn72ar/u9aySgRbpLTfc16kHJJkoyVvzcGmi 3Kobgczrg/0rQ== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9FBE312005B; Tue, 6 Oct 2020 09:08:40 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87mu10s6kn.fsf@igel.home> Date: Tue, 06 Oct 2020 09:08:40 -0400 In-Reply-To: <87mu10s6kn.fsf@igel.home> (Andreas Schwab's message of "Mon, 05 Oct 2020 23:31:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.022 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> So the question is why loading mule-util.el produces this error? > Because skkdic-convert binds coding-system-for-read to euc-japan. > > $ ../src/bootstrap-emacs -batch --eval "(let ((coding-system-for-read > 'euc-japan)) (require 'mule-util))" > Invalid read syntax: "?" Does the patch below address the issue? Stefan diff --git a/lisp/international/ja-dic-cnv.el b/lisp/international/ja-dic-cnv.el index f5e70ce702..5f645b6e8e 100644 --- a/lisp/international/ja-dic-cnv.el +++ b/lisp/international/ja-dic-cnv.el @@ -329,12 +329,12 @@ skkdic-convert the generated Emacs Lisp is saved. The name of generated file is specified by the variable `ja-dic-filename'." (interactive "FSKK dictionary file: ") - (let* ((coding-system-for-read 'euc-japan) - (skkbuf (get-buffer-create " *skkdic-unannotated*")) + (let* ((skkbuf (get-buffer-create " *skkdic-unannotated*")) (buf (get-buffer-create "*skkdic-work*"))) ;; Set skkbuf to an unannotated copy of the dictionary. (with-current-buffer skkbuf - (insert-file-contents (expand-file-name filename)) + (let ((coding-system-for-read 'euc-japan)) + (insert-file-contents (expand-file-name filename))) (re-search-forward "^[^;]") (while (re-search-forward ";[^\n/]*/" nil t) (replace-match "/"))) From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: 41250@debbugs.gnu.org, Glenn Morris , Lars Ingebrigtsen , Arthur Miller , Juri Linkov Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16019909141785 (code B ref 41250); Tue, 06 Oct 2020 13:29:02 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 13:28:34 +0000 Received: from localhost ([127.0.0.1]:51992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPn18-0000Sj-EF for submit@debbugs.gnu.org; Tue, 06 Oct 2020 09:28:34 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:39383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPn14-0000SW-Ic for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 09:28:32 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C5JFT0J0Yz1qs3Y; Tue, 6 Oct 2020 15:28:28 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C5JFS5R78z1qvJP; Tue, 6 Oct 2020 15:28:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id dPez_F_Ic2F7; Tue, 6 Oct 2020 15:28:27 +0200 (CEST) X-Auth-Info: DkrJbtXlSMYD7Jikl9DkQhkKcuy6xJvpO5ZrTJyYHXn/rc6u/ZpkqeHiN/RDxUlP Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 15:28:27 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 570762C287E; Tue, 6 Oct 2020 15:28:27 +0200 (CEST) From: Andreas Schwab References: <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> <87y2klixr5.fsf@mail.linkov.net> <87blhgv3ct.fsf@mail.linkov.net> <87mu10s6kn.fsf@igel.home> X-Yow: Did you move a lot of KOREAN STEAK KNIVES this trip, Dingy? Date: Tue, 06 Oct 2020 15:28:27 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 06 Oct 2020 09:08:40 -0400") Message-ID: <87wo03jxfo.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 06 2020, Stefan Monnier wrote: >>> So the question is why loading mule-util.el produces this error? >> Because skkdic-convert binds coding-system-for-read to euc-japan. >> >> $ ../src/bootstrap-emacs -batch --eval "(let ((coding-system-for-read >> 'euc-japan)) (require 'mule-util))" >> Invalid read syntax: "?" > > Does the patch below address the issue? It is the right way to use coding-system-for-read in any case. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: master build failure (invalid read syntax ?) Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: 41250@debbugs.gnu.org, Philippe Vaucher , Emacs developers Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160199795223230 (code B ref 41250); Tue, 06 Oct 2020 15:26:01 +0000 Received: (at 41250) by debbugs.gnu.org; 6 Oct 2020 15:25:52 +0000 Received: from localhost ([127.0.0.1]:53909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPoqe-00062c-K9 for submit@debbugs.gnu.org; Tue, 06 Oct 2020 11:25:52 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:41570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPoqb-00062S-Fs for 41250@debbugs.gnu.org; Tue, 06 Oct 2020 11:25:51 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C5Lrq3CcRz1sQD2; Tue, 6 Oct 2020 17:25:47 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C5Lrq0KDKz1qwTV; Tue, 6 Oct 2020 17:25:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id j6WcaLzZpltg; Tue, 6 Oct 2020 17:25:46 +0200 (CEST) X-Auth-Info: mn0FBo1Ro2r+xBBqyxYfxBaJRf/wgamRMG7u2pvimd1J/USFU9Tjrd+siL7P7cm3 Received: from igel.home (ppp-46-244-166-80.dynamic.mnet-online.de [46.244.166.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 6 Oct 2020 17:25:46 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id D787B2C28F3; Tue, 6 Oct 2020 17:25:45 +0200 (CEST) From: Andreas Schwab References: X-Yow: Boys, you have ALL been selected to LEAVE th' PLANET in 15 minutes!! Date: Tue, 06 Oct 2020 17:25:45 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 06 Oct 2020 11:14:59 -0400") Message-ID: <87o8lfjs06.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Okt 06 2020, Stefan Monnier wrote: > I don't know how to reproduce the original proble The problem only happens if you start with a pristine checkout of the sources, or run make extraclean (which also deletes lisp/leim/ja-dic, unlike make bootstrap), and you are lucky enough that lisp/leim/ja-dic happens to be recreated before lisp/international/mule-util.elc. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: master build failure (invalid read syntax ?) Resent-From: Philippe Vaucher Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Andreas Schwab Cc: 41250@debbugs.gnu.org, Stefan Monnier , Emacs developers Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160205608018131 (code B ref 41250); Wed, 07 Oct 2020 07:35:02 +0000 Received: (at 41250) by debbugs.gnu.org; 7 Oct 2020 07:34:40 +0000 Received: from localhost ([127.0.0.1]:55015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ3yB-0004iM-On for submit@debbugs.gnu.org; Wed, 07 Oct 2020 03:34:39 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:35517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ3y9-0004i6-AG for 41250@debbugs.gnu.org; Wed, 07 Oct 2020 03:34:38 -0400 Received: by mail-lj1-f171.google.com with SMTP id a15so973504ljk.2 for <41250@debbugs.gnu.org>; Wed, 07 Oct 2020 00:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+fHGXd22FC9MIQT2jet/vjsAOYInAmB6mVXop6WBsbE=; b=ACqdBDXjpAaExhBwfnrsxC3KpM3JHjOT/WjGUeSnSonc5Jg2eJOZovVOxaW6tybQt7 QNpaq+dOZn8WnGZem9kDL10OsyFMcgmhIMqKcFLIVmh9Wv0zSymCQP/tZg9gSQ0jqA3h S9jt8oXqWf0n+I8jUC40vngifh/7/Mx0Gtq2EidpfyY3J4lZEXpWz+C3DXEifTMdA/+H pvtOoYFDs9lH1DVyIeOgst3V7xMjSMl7wetlUvAxCPJ7+Yq7mf+tH348JPaym/LZRCQJ N7p6XSEyKjksJP3FeS6ft9RPd1ZE8iFhQHK5oLLux0EfupFin85nfGqL8U30EVOgcIBU qu5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+fHGXd22FC9MIQT2jet/vjsAOYInAmB6mVXop6WBsbE=; b=ekaLV3T7gl+pz85nX69QiNxhktmvwRs+frbsQLr+1OkENqBd789tRPeDJWNkmzLDVx xpNvUu/zDQLCaqZOvlZOXUn/bV6xyAXFg8O0jnw1Eo0epYTA7yVAPMHyDnVm35Fdek5T +fC0f1o1FQ+X91Ngjy41BDmCE1VS8CLrpz59/NcmamawOCdLgfNlKy+qVGKGtiPYLc+i 1GVCfawI3HSJeWNt4UQFfo8nrTA/DF4YjB+TjrDv12hrN88iWUrZ1KXiZqxbMzKCmCGO uGXY/coJ5IB1EWiTEjh6l3eDI5ORUcoiQ87XAw4/fL3E8lE7Zgn1Nu3s9LZ2hiEOBkFu Szsw== X-Gm-Message-State: AOAM5333MjyVsLshpIMhyTPAMYAgc5qJdMOkdh67eZrwM4ZRaFFK15Gk 0v1In8eQIR6X4bf6IKh6kzR8rgJfbZvwR2fzE9E= X-Google-Smtp-Source: ABdhPJxpD5TnbyjC4MFyQzz2L6l1gOPa2bPGWoYQ3GIYQ4+EgVNHsC1yiNs6J8nY581ASSeparDwUAwRSi3QxQe4fZw= X-Received: by 2002:a2e:80d0:: with SMTP id r16mr694206ljg.161.1602056071258; Wed, 07 Oct 2020 00:34:31 -0700 (PDT) MIME-Version: 1.0 References: <87o8lfjs06.fsf@igel.home> In-Reply-To: <87o8lfjs06.fsf@igel.home> From: Philippe Vaucher Date: Wed, 7 Oct 2020 09:34:06 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000009a48d05b10fbf36" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000009a48d05b10fbf36 Content-Type: text/plain; charset="UTF-8" > > > I don't know how to reproduce the original proble > > The problem only happens if you start with a pristine checkout of the > sources, or run make extraclean (which also deletes lisp/leim/ja-dic, > unlike make bootstrap), and you are lucky enough that lisp/leim/ja-dic > happens to be recreated before lisp/international/mule-util.elc. > This is exactly how I build master: checkout the repo then autogen && configure && make. Thanks, I'll watch #41250 then. Philippe --00000000000009a48d05b10fbf36 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> I don't know how to reproduce the original prob= le

The problem only happens if you start with a pristine checkout of the
sources, or run make extraclean (which also deletes lisp/leim/ja-dic,
unlike make bootstrap), and you are lucky enough that lisp/leim/ja-dic
happens to be recreated before lisp/international/mule-util.elc.

This is exactly how I build master: checkout the = repo then autogen && configure && make.

Thanks, I'll watch #41250 then.
Philippe
--00000000000009a48d05b10fbf36-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: master build failure (invalid read syntax ?) Resent-From: Philippe Vaucher Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 07:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: 41250@debbugs.gnu.org Cc: Emacs developers Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160205621518353 (code B ref 41250); Wed, 07 Oct 2020 07:37:01 +0000 Received: (at 41250) by debbugs.gnu.org; 7 Oct 2020 07:36:55 +0000 Received: from localhost ([127.0.0.1]:55020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ40N-0004lx-54 for submit@debbugs.gnu.org; Wed, 07 Oct 2020 03:36:55 -0400 Received: from mail-lj1-f175.google.com ([209.85.208.175]:42530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ40G-0004ld-Pu for 41250@debbugs.gnu.org; Wed, 07 Oct 2020 03:36:53 -0400 Received: by mail-lj1-f175.google.com with SMTP id h20so952481lji.9 for <41250@debbugs.gnu.org>; Wed, 07 Oct 2020 00:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i76Nq+YJfciu//u0x+Ful+B0wJk3xuj/o78HOsTMLzA=; b=BkaH3ZyTWzPgaeHpHhMq1ovLtV1GAA88yMfjcNTiqq4ycWu5S88bmYnAELzdnHH78h kFJKl2NJAaAPOB+oNog2BTPzOpZ8P5HJRIQ+hDN1O2J2XIgsAM0NA2fVsYOZy2/uuPJO VfAmZ1SxSdC8N35cCx2Dp9RLESdj2ywq8GrO97cnOBzHAsdjRRhUTO0+l1C3eUri/eRz qJxA/IJxMDG8+YR3YdJhav66U+Uoc2zzsikxZsO/0Gp+CvSeKMnAOJAfe0yLRA5V+ZVJ hn1+dBrf8ZAUEybGvC9lQ+52KHP+wy8IIB6VZXK8lx0UKA+RdN/ELuk/Yy4VYbf7ZAzc PK9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i76Nq+YJfciu//u0x+Ful+B0wJk3xuj/o78HOsTMLzA=; b=X9WwPLAdtWYK/gWiqr6qycI1sfH9uoahYP7vqwQHmZo/kZrjzA2xPdPz51KrItKzNG OjuTqfdpH2pTPCSxGo9IA3is2+o8M/xJIIOq2CjWe/c9EwiWaiEEwD/rb6FpQPHJSB5h Q/BHUVQjc6f1xrHSoIKsiWNhScP77HMsItVXron3JFO4QlvtyOmFn2br8IbdVTBPx4um gc2DhvgPIDp4g3Or5XL03MNCjqTa9H5H9iSc7SsC57p+Zn97Ux2Xlw8SMY2BUgmj9HF+ 3g/xfE/wOm+K9TaNXigwVBCAMR5XUNLvrPJpUq0A4MQg5X8bx4RWVOPyHlk7Yi1E4zy4 f/OQ== X-Gm-Message-State: AOAM533J5FGscnPPGaw2s+Tx0Xh9lENTeqmK5Mgbe06wkUeTts19a+oI lRmr4ux4tWO6grh9X1VRGcjszRAvE+nAteQQdtJnSweS1ak= X-Google-Smtp-Source: ABdhPJzzuayPvIRKLF1tPiYZMslTETPdYkV4WoeqY08nnJBDe3IYAdn0uMGmpfBEg71aFcKv3jSLMrj+QMu5RM4r03U= X-Received: by 2002:a2e:8645:: with SMTP id i5mr631951ljj.209.1602056202859; Wed, 07 Oct 2020 00:36:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Philippe Vaucher Date: Wed, 7 Oct 2020 09:36:17 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000e1b73405b10fc607" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000e1b73405b10fc607 Content-Type: text/plain; charset="UTF-8" > > This has recently been addressed in `emacs` with a series of 3 commits > each trying to fix it slightly differently. > I don't know how to reproduce the original proble, so if it affects you, > can you try the most recent `master` and see if it still affects you? > The recent changes has fixed the problem for me ( https://gitlab.com/Silex777/docker-emacs/-/pipelines/198745106) Thanks, Philippe --000000000000e1b73405b10fc607 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This has recently been addressed in `emacs` with a serie= s of 3 commits
each trying to fix it slightly differently.
I don't know how to reproduce the original proble, so if it affects you= ,
can you try the most recent `master` and see if it still affects you?

The recent changes has fixed the problem for= me (https://gitlab.com/Silex777/docker-emacs/-/pipelines= /198745106)

Thanks,
Philippe
--000000000000e1b73405b10fc607-- From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: master build failure (invalid read syntax ?) Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Philippe Vaucher Cc: 41250@debbugs.gnu.org, Emacs developers Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.16020759871565 (code B ref 41250); Wed, 07 Oct 2020 13:07:02 +0000 Received: (at 41250) by debbugs.gnu.org; 7 Oct 2020 13:06:27 +0000 Received: from localhost ([127.0.0.1]:55577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ99H-0000PB-8L for submit@debbugs.gnu.org; Wed, 07 Oct 2020 09:06:27 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:22688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ99E-0000Ox-5P for 41250@debbugs.gnu.org; Wed, 07 Oct 2020 09:06:25 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9AD9C4414F8; Wed, 7 Oct 2020 09:06:18 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 369954414FB; Wed, 7 Oct 2020 09:06:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1602075977; bh=tmmc3mJtkk67B44A3+YlaA/KLoCawlzuvfaxilUW7Cc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Hriq/8CRdupI1gFXHkLHoUjh/7MEnKu6SP4YGqSSKPsHZ57/sUsboba0qQJfCPzzH ZebKjZbj/NyZJe90/0YCuV6x+L5K7CJM5VRj/oC9vrI0Hl1PkZZX8pMyiRm0wY6ZwM 1IrxBEL5Pe434/57RqeR9m2Bt3La8XZKbdXCkFnxu6RG5yLHZXKDvN5w4WM9XnRC0k vgj9iQ3yQo8lCxCrzi9ksStbj77h5VVS2Wtj86UUpmUnFDpMfOAWBhNzMEmrPWK/Qo F0fd+pYpW0QNKjSSjfIgNo53Loib2gq433K2Q5WRrQmzOq9YDzYaIWdzx789T/TG1F iciacIYn5Au/w== Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9827B120118; Wed, 7 Oct 2020 09:06:16 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Wed, 07 Oct 2020 09:06:15 -0400 In-Reply-To: (Philippe Vaucher's message of "Wed, 7 Oct 2020 09:36:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.034 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> This has recently been addressed in `emacs` with a series of 3 commits >> each trying to fix it slightly differently. >> I don't know how to reproduce the original proble, so if it affects you, >> can you try the most recent `master` and see if it still affects you? > The recent changes has fixed the problem for me ( > https://gitlab.com/Silex777/docker-emacs/-/pipelines/198745106) Good to hear, thank you, Stefan From unknown Tue Aug 19 21:02:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41250: master build failure (invalid read syntax ?) Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 15:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed To: Stefan Monnier Cc: 41250@debbugs.gnu.org, Philippe Vaucher , Emacs developers Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160208612727893 (code B ref 41250); Wed, 07 Oct 2020 15:56:01 +0000 Received: (at 41250) by debbugs.gnu.org; 7 Oct 2020 15:55:27 +0000 Received: from localhost ([127.0.0.1]:57781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQBmp-0007Fp-8D for submit@debbugs.gnu.org; Wed, 07 Oct 2020 11:55:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQBmm-0007FZ-Hg for 41250@debbugs.gnu.org; Wed, 07 Oct 2020 11:55:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46980) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQBmg-0008Oy-Qi; Wed, 07 Oct 2020 11:55:18 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:37053) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kQBme-0001z3-CO; Wed, 07 Oct 2020 11:55:18 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id DDD4627C0054; Wed, 7 Oct 2020 11:55:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 07 Oct 2020 11:55:15 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeeigdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpeefhf dvheegudejffeuhedtueeukedvvdeiffefkeeiffevueehkeeiueegffeufeenucffohhm rghinhepghhithhlrggsrdgtohhmnecukfhppeelfedrvdefiedrudefiedruddvieenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhn odhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhe dvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p5dec887e.dip0.t-ipconnect.de [93.236.136.126]) by mail.messagingengine.com (Postfix) with ESMTPA id AD0F3328006A; Wed, 7 Oct 2020 11:55:14 -0400 (EDT) From: Tassilo Horn References: Mail-Followup-To: Stefan Monnier , Philippe Vaucher , 41250@debbugs.gnu.org, Emacs developers Date: Wed, 07 Oct 2020 17:55:12 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 06 Oct 2020 11:14:59 -0400") Message-ID: <87pn5uuj33.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> Since ~2 days the branch master refuses to build in my docker images, >> is this known/normal? >> >> #38 435.6 Loading macroexp.elc... >> #38 435.6 Invalid read syntax: "?" >> >> https://gitlab.com/Silex777/docker-emacs/-/jobs/774443194 > > This has recently been addressed in `emacs` with a series of 3 commits > each trying to fix it slightly differently. > I don't know how to reproduce the original proble, so if it affects you, > can you try the most recent `master` and see if it still affects you? I had a similar "Invalid read syntax" error when doing `eval-buffer' while AUCTeX' texmathp.el was opened (but didn't have time to report it). With the current master, it works again. Bye, Tassilo