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: Fri, 02 Oct 2020 16:14:31 +0200 Message-ID: <87sgawww8o.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> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.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="9375"; 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 Fri Oct 02 16:15:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOLq2-0002Jd-9V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 16:15:10 +0200 Original-Received: from localhost ([::1]:36428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOLq1-0004K6-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 10:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOLpu-0004J1-8i for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 10:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOLpt-00018a-Vm for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 10:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOLpt-0002cc-Qu for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 10:15:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160164808710041 (code B ref 41250); Fri, 02 Oct 2020 14:15:01 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 14:14:47 +0000 Original-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 Original-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=; 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 1kOLpQ-0004Ha-AO; Fri, 02 Oct 2020 16:14:36 +0200 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" In-Reply-To: <87lfgpm82u.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 02 Oct 2020 09:54:17 +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:189648 Archived-At: 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