From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56345: 29.0.50; [PATCH] Add column hiding to tabulated-list Date: Sat, 02 Jul 2022 09:06:47 +0300 Message-ID: <83r134cako.fsf@gnu.org> References: <87r134ihdd.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3778"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56345@debbugs.gnu.org To: Thuna Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 02 08:07:18 2022 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 1o7WHm-0000q7-47 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 08:07:18 +0200 Original-Received: from localhost ([::1]:35424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7WHk-0007gT-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 02:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7WHY-0007e0-QZ for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 02:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7WHW-0000HL-9H for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 02:07:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7WHW-0002hc-4K for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 02:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2022 06:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56345-submit@debbugs.gnu.org id=B56345.165674200510363 (code B ref 56345); Sat, 02 Jul 2022 06:07:02 +0000 Original-Received: (at 56345) by debbugs.gnu.org; 2 Jul 2022 06:06:45 +0000 Original-Received: from localhost ([127.0.0.1]:39558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7WHF-0002h5-Hc for submit@debbugs.gnu.org; Sat, 02 Jul 2022 02:06:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7WHD-0002gl-FK for 56345@debbugs.gnu.org; Sat, 02 Jul 2022 02:06:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7WH7-0000Dt-Lu; Sat, 02 Jul 2022 02:06:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=e4TSrENS60TfGp2lxrc227WvhyOQIUJ36pNjpynY+X8=; b=kzNX0w68rGXu FhgPNMfA3Y8YjoDKNVfr7pjs/E5v96+hEyNeh84T08GVri4sCa70vjg6ULyKDz+DFjS7G54ZWTh5n Q7Xk67mxCqFpnpQnbJguHwsXYCwdkno3jJSjGf0EL9p3YEusOkAXF4Cgj5Om3wQ1aLctlwMGpxLQa wSLOCLoS8SMhTQi9+uTH9p+0hEz36f1j+YIcHtMBXOivNgx++B6M2XJCcIu53buu+bFGov6PTaDbB 9MZM1wg5WY/8eRbzx7/msuCsnjZBsEfHjGVbZl9citt86lgLOa3hWnrZcNPHuHSjnL1e4fZEid47M nQ/4h3zPRFjL9wrgXjPyOQ==; Original-Received: from [87.69.77.57] (port=4361 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7WH5-0000qD-3j; Sat, 02 Jul 2022 02:06:37 -0400 In-Reply-To: <87r134ihdd.fsf@gmail.com> (message from Thuna on Sat, 02 Jul 2022 01:43:26 +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:235848 Archived-At: > From: Thuna > Date: Sat, 02 Jul 2022 01:43:26 +0300 > > >From b49d5876afa3d969ce82df0d723a8a8b766009a0 Mon Sep 17 00:00:00 2001 > From: Thuna > Date: Fri, 1 Jul 2022 18:19:52 +0300 > Subject: [PATCH 1/2] Add column hiding to tabulated-list-mode > > Add the keyword `:hidden' to `tabulated-list-format' for controlling > the visibility of a specific column. > > Introduce the commands `tabulated-list-hide-current-column' and > `tabulated-list-make-column-visible' for interactively changing the > `:hidden' property of the column. The commands are bound to "." and > "+" respectively. > > Change calculations involving other columns to account for the > `:hidden' property. > > Make the current column calculation into its own function named > `tabulated-list-get-column'. Make `tabulated-list-widen-current-column' > use that instead. Use the text property `tabulated-list-column-name' > to find the current tabulated-list column instead of `current-column'. Thanks. If we decide to install this, we'd need a NEWS entry for the new feature. I have no comments on the code, but please wait for Lars and others to chime in.