From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Date: Thu, 01 Oct 2020 21:59:13 +0200 Message-ID: <877ds91zvy.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24308"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41250@debbugs.gnu.org, Arthur Miller To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 01 22:00:28 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO4ke-0006Ck-6B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 22:00:28 +0200 Original-Received: from localhost ([::1]:56260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kO4kc-0008At-Og for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 16:00:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kO4kE-0008Ad-Ko for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 16:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kO4kE-0006US-9J for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 16:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kO4kE-0005xS-91 for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 16:00:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160158236922838 (code B ref 41250); Thu, 01 Oct 2020 20:00:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 1 Oct 2020 19:59:29 +0000 Original-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 Original-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=; Original-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 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" In-Reply-To: <874knd7mow.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 01 Oct 2020 22:37:43 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189582 Archived-At: 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