From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#41860: 27.0.91; Can't use `tabulated-list-(narrow|widen)-current-column' on last column Date: Mon, 15 Jun 2020 07:34:54 -0700 (PDT) Message-ID: <17ec9057-be16-42c6-9c26-8a1e8002c52b@default> References: <> <<83bllk2z9h.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41860@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 15 16:36:12 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 1jkqDa-000XFn-V8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jun 2020 16:36:11 +0200 Original-Received: from localhost ([::1]:48328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkqDZ-0007KM-SS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jun 2020 10:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkqDS-0007KD-M3 for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2020 10:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkqDS-0007XE-D9 for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2020 10:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkqDS-0004EQ-AN for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2020 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jun 2020 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41860 X-GNU-PR-Package: emacs Original-Received: via spool by 41860-submit@debbugs.gnu.org id=B41860.159223170516197 (code B ref 41860); Mon, 15 Jun 2020 14:36:02 +0000 Original-Received: (at 41860) by debbugs.gnu.org; 15 Jun 2020 14:35:05 +0000 Original-Received: from localhost ([127.0.0.1]:46995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkqCX-0004DA-EZ for submit@debbugs.gnu.org; Mon, 15 Jun 2020 10:35:05 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:37728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkqCV-0004Ca-9E for 41860@debbugs.gnu.org; Mon, 15 Jun 2020 10:35:04 -0400 Original-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 05FEXvG4062228; Mon, 15 Jun 2020 14:34:57 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=sY/bhtqg6+YHwBmsch7pHCLhWYvxpeSDH+4vu0nX1/o=; b=Oo3NBWjyMVxaxSINy48t7McZTZQocTbsGDQuqoZQcfaJk0/JUb4iYK6sGKN03cxYbVpO DE89lJ85mZzbhwa3yayPRsBZDgNErNlkwAqncpWevXAo8mahBEn5xYcUfks5NF65FlJ9 xH0c40G71aT983UKSQFQ5LwQaWjvQRHqTbX/ICraAVS5drssJy9l+T27AUJ75iahevdb 040CEGAWpT6FpRNKaqBvrr3fOYgJf1+N/o23wRHQj6Vcn3tcStH0o3ycv34gmzWMV9Iu HITbAI9RWXVIxVjrUFIxCejZuOnioRC02nrMJI+SZlweipEayhJd23chOzV7902y8LmL Wg== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 31p6e5sd67-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 15 Jun 2020 14:34:57 +0000 Original-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 05FEY3B1122222; Mon, 15 Jun 2020 14:34:56 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 31p6s5f2d6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jun 2020 14:34:56 +0000 Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 05FEYtvm004753; Mon, 15 Jun 2020 14:34:55 GMT In-Reply-To: <<83bllk2z9h.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5005.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9652 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006150118 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9652 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 clxscore=1011 suspectscore=0 spamscore=0 bulkscore=0 malwarescore=0 impostorscore=0 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006150118 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:181987 Archived-At: > > Use command `buffer-menu' and then try to narrow or widen the rightmost > > column (the file name). `{' and `}' have no effect (and there isn't > > even any error message or other feedback). >=20 > The last column has infinite width, so I don't see how you could make > it wider or narrower. (I agree that we should consider signaling a > user-error in this case.) If the last column always has infinite width then that's another way of expressing this design bug. Users should be able to narrow its width - truncate it, just as they can narrow the width of the other columns. That's the point. > > This is an important use case, especially with a frame or window whose > > width is made to fit the displayed content. >=20 > This seems to imply that the use case in which this is somehow an > issue includes more than you've reported. Can you add to your > description the minimal configuration that could explain why this > behavior seemed to be a problem? There's no separate requirement. Users should be able to limit the width of the last column, just as they can limit the width of any other column. That's all. I gave an example, and a recipe for it, using buffer-menu. If you want to show the file-name column with only a limited width, then that should be possible. Especially now that we've added the ability to interactively widen and narrow column incrementally. In the buffer list, if you have 10 buffers, and only two of them are file buffers, and you don't care to see the entire file names but instead want to limit the width of that last column, you should be able to do so. Instead, it takes up most of the table, even when you don't need to see all of it. You should be able to expand and contract its width, just as you can for other columns. Saying that this is just the way it is, which is what you seem to be saying, is another way of reiterating the design limitation that this bug report reports. > > This isn't a failing only of > > `tabulated-list-(narrow|widen)-current-column'. It's a failing of the > > current design of `tabulated-list-print-col'. >=20 > Any basis for such general claim? Which design is at fault here? Explained in the bug report: `tabulated-list-print-col' treats the last column specially - it doesn't allow limiting its width, i.e., truncating it. ;; Truncate labels if necessary (except last column). ^^^^^^^^^^^^^^^^^^ This is apparently by design - it's currently a design limitation of t-l-mode, apparently. It's not a bug in implementing that design, but an intentional part of the design. Or so it seems, not only from the code but from that comment. Regardless of my interpretation of where the bug is - code or design, ` tabulated-list-print-col' or not, the current limitation is clear.