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#44078: 26.3; `tabulated-list-mode': Use it in any mode and for part of a buffer Date: Tue, 20 Oct 2020 13:35:12 +0200 Message-ID: <87pn5dgmfj.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="764"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44078@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 20 13:36:28 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 1kUpwG-000AY6-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Oct 2020 13:36:28 +0200 Original-Received: from localhost ([::1]:41902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUpwG-0003pU-04 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Oct 2020 07:36:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUpvu-0003mn-EL for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2020 07:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUpvu-0002iX-3p for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2020 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUpvu-0002Lp-1l for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2020 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Oct 2020 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44078 X-GNU-PR-Package: emacs Original-Received: via spool by 44078-submit@debbugs.gnu.org id=B44078.16031937258971 (code B ref 44078); Tue, 20 Oct 2020 11:36:02 +0000 Original-Received: (at 44078) by debbugs.gnu.org; 20 Oct 2020 11:35:25 +0000 Original-Received: from localhost ([127.0.0.1]:43784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUpvJ-0002Kd-0j for submit@debbugs.gnu.org; Tue, 20 Oct 2020 07:35:25 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUpvH-0002KM-1Q for 44078@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=; Original-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 ) id 1kUpv7-0007If-QS; Tue, 20 Oct 2020 13:35:16 +0200 X-Now-Playing: Christoph de Babalon's _Hectic Shakes_: "Raw Mind" In-Reply-To: (Drew Adams's message of "Mon, 19 Oct 2020 09:03:24 -0700 (PDT)") 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:191080 Archived-At: Drew Adams 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