GNU bug report logs - #44078
26.3; `tabulated-list-mode': Use it in any mode and for part of a buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Mon, 19 Oct 2020 16:04:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 44078 <at> debbugs.gnu.org:


Received: (at 44078) by debbugs.gnu.org; 20 Oct 2020 11:35:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 20 07:35:25 2020
Received: from localhost ([127.0.0.1]:43784 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kUpvJ-0002Kd-0j
	for submit <at> debbugs.gnu.org; Tue, 20 Oct 2020 07:35:25 -0400
Received: from quimby.gnus.org ([95.216.78.240]:45466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kUpvH-0002KM-1Q
 for 44078 <at> debbugs.gnu.org; Tue, 20 Oct 2020 07:35:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 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=pdMybkYK54cn6eA+zag6cy4QKUWzWMKvZKf4G0m/eeo=; b=lkL3A69D2KPqtxTlzuUkT+odKo
 eLaWPWlDslDjO5AK7lpMhRYzaZObRAztqd/1tfvdX4HLgsN/VWHd4lpkRKh8lN65EpI1uNU6ugosQ
 kOGIb+4q3wK+sNPKjDk2QibRPKtMpgJrSXmjEF8V7i6eWD1uh7LNOs6gWS5L02z7g7AI=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kUpv7-0007If-QS; Tue, 20 Oct 2020 13:35:16 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#44078: 26.3; `tabulated-list-mode': Use it in any mode and
 for part of a buffer
References: <bcb23108-8e7d-4157-8eaa-7a77ed66f4e1@default>
X-Now-Playing: Christoph de Babalon's _Hectic Shakes_: "Raw Mind"
Date: Tue, 20 Oct 2020 13:35:12 +0200
In-Reply-To: <bcb23108-8e7d-4157-8eaa-7a77ed66f4e1@default> (Drew Adams's
 message of "Mon, 19 Oct 2020 09:03:24 -0700 (PDT)")
Message-ID: <87pn5dgmfj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Drew Adams <drew.adams@HIDDEN> writes: > But for
 `tabulated-list-mode'
 I think we need more than just to add a > minor-mode version. We really need
 a way to confine its effect to a > part of a buffer. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44078
Cc: 44078 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Drew Adams <drew.adams@HIDDEN> writes:

> But for `tabulated-list-mode' I think we need more than just to add a
> minor-mode version.  We really need a way to confine its effect to a
> part of a buffer.

Whenever I've done some work on tabulated-list-mode, I've been kinda
frustrated by its design.  You'd ideally just be able to have a
functional interface where you just call a function with all the data
(and some commands to apply to the data), and then everything would
work.  But instead it's a strange mixture of functional, buffer-local
data and updating functions.

A side effect of this is that the table isn't an "object" you can do
operations on -- there can only be one table per buffer, and it wants to
control the entire buffer.

So I'd welcome a more functional rewrite of tabulated-list-mode that
would constrain all actions to the area of the buffer where the table
is, and leave the rest of the buffer alone.  And stash the table data in
the table instead of using the buffer-local variables.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44078; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Oct 2020 16:03:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 19 12:03:35 2020
Received: from localhost ([127.0.0.1]:42091 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kUXdG-0005hA-Sr
	for submit <at> debbugs.gnu.org; Mon, 19 Oct 2020 12:03:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:55742)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1kUXdF-0005h0-9c
 for submit <at> debbugs.gnu.org; Mon, 19 Oct 2020 12:03:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54346)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1kUXdE-0000e9-Tx
 for bug-gnu-emacs@HIDDEN; Mon, 19 Oct 2020 12:03:33 -0400
Received: from userp2120.oracle.com ([156.151.31.85]:55298)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>)
 id 1kUXdA-0001Ma-Q2
 for bug-gnu-emacs@HIDDEN; Mon, 19 Oct 2020 12:03:32 -0400
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 09JG0511117193
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Oct 2020 16:03:27 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : subject : content-type :
 content-transfer-encoding; s=corp-2020-01-29;
 bh=VlDbZyb26rRcjZeSJKqiBKh7fo6PrAo/EUKNqGvZDAw=;
 b=pVLnTK3IobwGHPpsZlyE3AK5gcCSTmVtY1DLkETI4ZtyHBTflfeXFI3iUTX/TQJlHb5x
 1ShoJ2Kdofpug5/5KJ45y4lByNAPEYG/ryCg9/O+hDnFTRiVqjlxwUkPb0xaVHrNJDsN
 1W1Nwvnql7QFig3OnPE9Ntv+ZBt2g2HmX7jF3ll8IOqQ/IFo4cfvK2/H/gcZu5Kp444N
 CKre3HpBwpH5yI1FZ2huSsVaVHlTKJwlaHUrNp/SZvOmxcYlCEpje/reMUI6klbYeUjo
 JekKT60yWdlFKsJcYTnco5nlV56lZsEoA7PeaYAwUhU6N+R0uPNbbRwnJn+8S8QqCYmJ mw== 
Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79])
 by userp2120.oracle.com with ESMTP id 347s8mpae5-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Oct 2020 16:03:26 +0000
Received: from pps.filterd (userp3020.oracle.com [127.0.0.1])
 by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09JFxpAg147881
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Oct 2020 16:03:26 GMT
Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75])
 by userp3020.oracle.com with ESMTP id 348acpn63h-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Oct 2020 16:03:26 +0000
Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26])
 by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 09JG3P0C002328
 for <bug-gnu-emacs@HIDDEN>; Mon, 19 Oct 2020 16:03:26 GMT
MIME-Version: 1.0
Message-ID: <bcb23108-8e7d-4157-8eaa-7a77ed66f4e1@default>
Date: Mon, 19 Oct 2020 09:03:24 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.3; `tabulated-list-mode': Use it in any mode and for part of a
 buffer
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.5056.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9778
 signatures=668682
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0
 bulkscore=0 adultscore=0
 mlxscore=0 malwarescore=0 suspectscore=1 spamscore=0 mlxlogscore=999
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000
 definitions=main-2010190110
X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9778
 signatures=668682
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0
 suspectscore=1
 lowpriorityscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0
 phishscore=0 clxscore=1015 bulkscore=0 impostorscore=0 adultscore=0
 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2009150000 definitions=main-2010190110
Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@HIDDEN;
 helo=userp2120.oracle.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/19 12:03:27
X-ACL-Warn: Detected OS   = Linux 3.1-3.10 [fuzzy]
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,
 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Feature request:

I'd like to see `tabulated-list-mode' be usable for only part of a
buffer.  How?  Dunno.  Text property maybe, analogous to property
`keymap'?

One of its greatest weaknesses is that it's (only) a major mode.  It's
buffer-wide, which means you can't do anything else in the buffer.  You
can't use `tabulated-list-mode' for just some table(s) (tabulated info)
within a buffer.  This greatly limits its usefulness, IMO.

In the beginning, IIRC, there was only the major mode `outline-mode'.
Later we added `outline-minor-mode'.  That at least took care of the
problem of not being able to use it with another major mode.

But for `tabulated-list-mode' I think we need more than just to add a
minor-mode version.  We really need a way to confine its effect to a
part of a buffer.

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.18362
Configured using:
 `configure --without-dbus --host=3Dx86_64-w64-mingw32
 --without-compress-install 'CFLAGS=3D-O2 -static -g3''




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#44078; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Oct 2020 11:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.