From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: tabulated-list: extend truncation into next align-right col Date: Tue, 1 Nov 2016 22:25:29 +0900 (JST) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1478006853 29363 195.159.176.226 (1 Nov 2016 13:27:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2016 13:27:33 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: Emacs developers , Tino Calancha To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 01 14:27:30 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1Z5y-0005u6-MJ for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2016 14:27:18 +0100 Original-Received: from localhost ([::1]:47957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1Z61-0002bo-F1 for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2016 09:27:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1Z4M-0001nG-Ib for emacs-devel@gnu.org; Tue, 01 Nov 2016 09:25:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1Z4I-0005id-LY for emacs-devel@gnu.org; Tue, 01 Nov 2016 09:25:38 -0400 Original-Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:33885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1Z4I-0005iC-G2 for emacs-devel@gnu.org; Tue, 01 Nov 2016 09:25:34 -0400 Original-Received: by mail-pf0-x229.google.com with SMTP id n85so95345915pfi.1 for ; Tue, 01 Nov 2016 06:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=mhzczMlLe+GPAf6Qgl9zcHAD4cyrE1JbVc5+fuAqjBw=; b=sWt0AT187YsMVR5OgDavcfmbu+UsShORckUBQ03uoDjPRFA+Y6DgkJeHEFlADbhIR4 C3tUq2JwiDvIFezOVMxx7Y1e3t5H0nCji5HYjG9Xm2WycPQYOjHU0vN/fz5joYSaPfcD 9Nj+RCWNlDTCDPAX8rKFETDMPcCNuYMrQ3sAXFNnlF1MOuNP0OYX56kZqQwezIwlu7HT C2t0iInSAvk0FaBmEPHfbGY5emaaQF8em6tmkLUW06H5KtnfVliLHf2oefHsXBLRieiF +00h6TChn/YiTqAk54PitzGXen7sbM/a+Xnoma0JZRH7zmiocQKK6mCnzcawJSQpwVkI NWOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=mhzczMlLe+GPAf6Qgl9zcHAD4cyrE1JbVc5+fuAqjBw=; b=k5WY1LFDwMRh36DnaSB9Z5n4XXlxer+CckFGJDjTjkbv2QTd0M2dJNMoXjDhsT70LR tQz4piC/r3VyW1jdKEyIzfVNqxWlUshNHsrMGrEeQq4uk+FUF3Lr1NGpDFk8lm5MhYtv hpurqxhfH9R4AflNXA1uFtFaIGKBEK/Bn0MibDVS8Ia8+c2uVa6n+k5k22GrJ3iSVPSR WG86CsaCb90ESQnx23lXA9wj4Jpm1/aiXv3dqvD8IpdJQ4Gsd27mXfJs8KFTHtM4X8VM iCEGuJspMpwTmZqcj/siqh3VEZ3VLkRJQE42mX4oXmBidZ5ScSmM97IUikTJSOrPDb6Q XSMQ== X-Gm-Message-State: ABUngvfIh7bPeYsI5qcn/jY3e5HprLmdd7xMJ6lMJskkw4kTKqVzx13gcI5ccGGXyZ+hww== X-Received: by 10.98.159.70 with SMTP id g67mr59557404pfe.62.1478006733493; Tue, 01 Nov 2016 06:25:33 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id 123sm29258870pfe.41.2016.11.01.06.25.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Nov 2016 06:25:33 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209058 Archived-At: On Tue, 1 Nov 2016, Stefan Monnier wrote: >> ;; Without computing maximum widths: >> C1 C2 Numbers >> abc **************************************... 123456 >> abc *******************************************... 1 >> abc ************************************ 123 > > That's exactly what used to happen in *Buffer List* (and the source for > this TODO item). It wasn't that bad (I can't remember any user > complaints about it). For *Buffer List* maybe was OK that old way. My concern is that `tabulated-list' is still a young lib (2011) in an Emacs scale and a general tool; that funny truncations might look uglier in future applications using this lib. > Admittedly, we could do better: compute the max > width not of the whole column but of the current line, and the two > surrounding ones. This way we'd avoid > > abc **************************************... 123456 > abc *****************************************... 123 > abc ************************************ 456 > > yet we'd allow > > abc **************************************... 123456 > abc **************************************... 123 > abc *****************************************... 1 Thanks for this suggestion. This might be good: we get generally longer truncations. I am not sure how it looks in big tables, but i can test it. I will prepare a patch for this alternative truncation. Tino