GNU bug report logs - #44711
[PATCH] Add movement commands `tabulated-list-next-column' and `tabulated-list-previous-column'

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; Reported by: "Peter Feigl" <peter.feigl@HIDDEN>; Keywords: patch; dated Tue, 17 Nov 2020 17:53:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 44711) by debbugs.gnu.org; 24 Nov 2020 08:08:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 24 03:08:53 2020
Received: from localhost ([127.0.0.1]:57369 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1khTNd-0007yL-Lh
	for submit <at> debbugs.gnu.org; Tue, 24 Nov 2020 03:08:53 -0500
Received: from quimby.gnus.org ([95.216.78.240]:50730)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1khTNb-0007y8-Vz
 for 44711 <at> debbugs.gnu.org; Tue, 24 Nov 2020 03:08:52 -0500
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=oIRyE/F+9VYOJb488kka+XtXP99UmniDW0Cw+MrzzRs=; b=AQ7tX1Pqc09/jJbLfNgB92TNUI
 ndTFFY4w1b8V5HGD9iBllQXBC0/eLPKxwRfR8qbDRX+AR4vNxPhMz5R9X9Ka65nRtJ8sC23ZHFqbU
 7GFd3ca91cGJjnlrCvj+LqeSxGSMrmMHYijpY/NFSMX4aAVzI/IVRnexv/8iwuXTqbyg=;
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 1khTNT-00017L-7N; Tue, 24 Nov 2020 09:08:45 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: "Peter Feigl" <peter.feigl@HIDDEN>
Subject: Re: bug#44711: [PATCH] Add movement commands
 `tabulated-list-next-column' and `tabulated-list-previous-column'
References: <87wnyj6fc8.fsf@HIDDEN>
X-Now-Playing: Fad Gadget's _Fireside Favourites_: "Insecticide"
Date: Tue, 24 Nov 2020 09:08:41 +0100
In-Reply-To: <87wnyj6fc8.fsf@HIDDEN> (Peter Feigl's message of "Tue, 17 Nov
 2020 18:52:23 +0100")
Message-ID: <87lfer6ut2.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: "Peter Feigl" <peter.feigl@HIDDEN> writes: > I'd be happy
 to try to get my employer to sign the papers, please send > me the forms
 (in German, if that is relevant). > > If possible, feel free to use this patch
 without papers signed. 
 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: 44711
Cc: 44711 <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 (-)

"Peter Feigl" <peter.feigl@HIDDEN> writes:

> I'd be happy to try to get my employer to sign the papers, please send
> me the forms (in German, if that is relevant).
>
> If possible, feel free to use this patch without papers signed.

This looks useful, but the patch is indeed to big to apply without
paperwork.

Here's the form to get started:

-------

Please email the following information to assign@HIDDEN, and we
will send you the assignment form for your past and future changes.

Please use your full legal name (in ASCII characters) as the subject
line of the message.
----------------------------------------------------------------------
REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES

[What is the name of the program or package you're contributing to?]
Emacs

[Did you copy any files or text written by someone else in these changes?
Even if that material is free software, we need to know about it.]

[Do you have an employer who might have a basis to claim to own
your changes?  Do you attend a school which might make such a claim?]

[For the copyright registration, what country are you a citizen of?]

[What year were you born?]

[Please write your email address here.]

[Please write your postal address here.]

[Which files have you changed so far, and which new files have you written
so far?]




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44711; Package emacs. Full text available.

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


Received: (at 44711) by debbugs.gnu.org; 17 Nov 2020 19:50:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 17 14:50:28 2020
Received: from localhost ([127.0.0.1]:32999 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kf6zk-0004R8-2D
	for submit <at> debbugs.gnu.org; Tue, 17 Nov 2020 14:50:28 -0500
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33101)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1kf6zh-0004Qu-6f
 for 44711 <at> debbugs.gnu.org; Tue, 17 Nov 2020 14:50:27 -0500
X-Originating-IP: 91.129.97.46
Received: from mail.gandi.net (m91-129-97-46.cust.tele2.ee [91.129.97.46])
 (Authenticated sender: juri@HIDDEN)
 by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 9947CFF802;
 Tue, 17 Nov 2020 19:50:17 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: "Peter Feigl" <peter.feigl@HIDDEN>
Subject: Re: bug#44711: [PATCH] Add movement commands
 `tabulated-list-next-column' and `tabulated-list-previous-column'
Organization: LINKOV.NET
References: <87wnyj6fc8.fsf@HIDDEN>
Date: Tue, 17 Nov 2020 21:48:37 +0200
In-Reply-To: <87wnyj6fc8.fsf@HIDDEN> (Peter Feigl's message of "Tue, 17 Nov
 2020 18:52:23 +0100")
Message-ID: <87wnyjydbe.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 44711
Cc: 44711 <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 (-)

> The attached patch adds two movement commands,
> `tabulated-list-next-column' and `tabulated-list-previous-column', by
> default bound to "f" and "b" in `tabulated-list-mode'. They move to the
> next/previous column respectively, and honour a numeric prefix argument.

Many packages such as 'ses' and 'org-table' for moving to the next/previous
column use keys TAB and S-TAB.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44711; Package emacs. Full text available.

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


Received: (at 44711) by debbugs.gnu.org; 17 Nov 2020 18:36:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 17 13:36:04 2020
Received: from localhost ([127.0.0.1]:32913 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kf5pk-0002dG-8D
	for submit <at> debbugs.gnu.org; Tue, 17 Nov 2020 13:36:04 -0500
Received: from mail-wr1-f47.google.com ([209.85.221.47]:40608)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1kf5pg-0002ce-8r
 for 44711 <at> debbugs.gnu.org; Tue, 17 Nov 2020 13:36:03 -0500
Received: by mail-wr1-f47.google.com with SMTP id m6so7013523wrg.7
 for <44711 <at> debbugs.gnu.org>; Tue, 17 Nov 2020 10:36:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=SP+Fxt9QMyirLtD1pV4x4KTc3LR+Z76WTXmvPTGYSpM=;
 b=znqDJlWrh2E0qgntGGGSkzZFQfCkvWT5t6+4L8ZcMRL77/cL/3AaD+ae5rU+3rroT6
 dw9t2m1A8ilhOJbzNpQL/385Aoc1dlPWe/AsbOcdEBSoDYJCJ2jUXJ7osH2lT+9nAnuU
 GWtZVXMxe0l9Sow0pqNgGVIlGBo+hKShEquKPalGxaV7fmX0Wp2NBYqtNI/M663DOi8L
 KWq/zJvRLcXuinStJNRZ7clAbST783va3LfVWF209ARtqHvRag0vuH9zYaEWBYuvyDne
 5WN7ODmPffC38qmz63dZ0XYrmgt6MjdpTjlIIhjMoaD0VWdFZaXEwFr7Ac+h3G9yt7uZ
 TmXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=SP+Fxt9QMyirLtD1pV4x4KTc3LR+Z76WTXmvPTGYSpM=;
 b=ooZGL9Bu0Ee8NJc+TVt/B1QvVRL8fsIWkvczvqMGBmZeXKBRVztjm0qO6oCUqVdpjN
 DdteoKpvt1Mv1Y4/Q2qsvh6yIwRYLp9v3WULBHDXOau6PtcWc5N6sTWpLDk3NX4o1a9N
 XxG1e/vbz80jkJ5mZYpmyYcgERqrMyQl2U3oDfk+l6RXbrYPhMUBtOhwc55Itf0K0VQI
 U5vObJj2II07Jm3usyfG41FlsEwFSEYEC+M5CEIjSKjFmnnzJyZz9SSOagnfzvriSPpT
 9d1Ob81FB+h0k6VGneizkbhrDL8nrQjtF+/DlLsCTXK3mMxhduVCgiMf5+UWWm01M0DG
 gntg==
X-Gm-Message-State: AOAM533HqJMkRugUN/0KpdJW7JApaZJdpzUXrDmpMQYsAkx0tZ9nR6Qa
 8aSgCfStq76SJdIwanCCKRvWNg==
X-Google-Smtp-Source: ABdhPJzhhGBzCQEAsP+ge1VE55xEIYltITjxoKIYYqpNuQz7aCsG0m/InTqTx550xmx+tRz05D0Q1g==
X-Received: by 2002:a5d:51c2:: with SMTP id n2mr947492wrv.326.1605638154341;
 Tue, 17 Nov 2020 10:35:54 -0800 (PST)
Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2])
 by smtp.gmail.com with ESMTPSA id u16sm28528366wrn.55.2020.11.17.10.35.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 17 Nov 2020 10:35:53 -0800 (PST)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: "Peter Feigl" <peter.feigl@HIDDEN>
Subject: Re: bug#44711: [PATCH] Add movement commands
 `tabulated-list-next-column' and `tabulated-list-previous-column'
References: <87wnyj6fc8.fsf@HIDDEN>
Date: Tue, 17 Nov 2020 18:35:52 +0000
In-Reply-To: <87wnyj6fc8.fsf@HIDDEN> (Peter Feigl's message of "Tue, 17 Nov
 2020 18:52:23 +0100")
Message-ID: <873617al13.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-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44711
Cc: 44711 <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 (-)

"Peter Feigl" <peter.feigl@HIDDEN> writes:

> The attached patch adds two movement commands,

Thanks, just some minor comments from me.

> +(defun tabulated-list-next-column (&optional arg)
> +  "Go to the start of the next column after point on the current line.
> +If ARG is provided, move that many columns."
> +  (interactive "p")
> +  (dotimes (c (or arg 1))
               ^
The names of unused lexical variables should start with (or consist only
of) an underscore, e.g. '_' or '_c'.  (The byte-compiler should
otherwise complain.)

> +    (let ((next (or (next-single-property-change (point) 'tabulated-list-column-name) (point-max))))

This line is a bit long; suggest breaking the function call across two
lines.  More importantly, why scan all the way to the end of the buffer
if we're only interested in the current line?

> +      (unless (>= next (line-end-position))
> +        (goto-char next)))))

Given my suggestion to limit the search to the current line, this could
be modified along the following lines:

  (dotimes (_ (or arg 1))
    (let* ((eol (line-end-position))
           (next (next-single-property-change
                  (point) 'tabulated-list-column-name nil (1+ eol))))
      (when (< next eol)
        (goto-char next))))

But there's a subtle issue here: some tabulated lists
(e.g. list-buffers) can have an empty final column (e.g. with
non-file-visiting buffers such as *scratch*), but the (< next eol) guard
will not allow point to reach this final empty column, because that
position is at the end of the line.

So I suggest either augmenting the guard to check whether the current
(last) column is empty, or unconditionally allowing point to reach the
end of the line, even if point was already originally in the final
column.

> +(defun tabulated-list-previous-column (&optional arg)

Ditto.

-- 
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44711; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 17 Nov 2020 17:52:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 17 12:52:34 2020
Received: from localhost ([127.0.0.1]:32852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kf59e-0001Xf-8x
	for submit <at> debbugs.gnu.org; Tue, 17 Nov 2020 12:52:34 -0500
Received: from lists.gnu.org ([209.51.188.17]:60026)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <peter.feigl@HIDDEN>) id 1kf59b-0001XW-J5
 for submit <at> debbugs.gnu.org; Tue, 17 Nov 2020 12:52:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38094)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <peter.feigl@HIDDEN>)
 id 1kf59b-0003wE-0z
 for bug-gnu-emacs@HIDDEN; Tue, 17 Nov 2020 12:52:31 -0500
Received: from www.nexoid.at ([178.79.130.240]:40324 helo=nexoid.at)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <peter.feigl@HIDDEN>)
 id 1kf59Y-0003yX-Fp
 for bug-gnu-emacs@HIDDEN; Tue, 17 Nov 2020 12:52:30 -0500
From: "Peter Feigl" <peter.feigl@HIDDEN>
DKIM-Filter: OpenDKIM Filter v2.10.3 nexoid.at 9CE75BC81
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexoid.at; s=mail;
 t=1605635544; bh=3XIafbJJ2HvT1o3qltHWf1wQsDjGv4AShdwBbyhjN54=;
 h=From:To:Subject:Date:From;
 b=n/xbMZuAFny00vHwLolxBTI6SmI07See1hY26HNzkaNlaz7ZkifhukNaMpkbI9285
 tPuescoNuSnXYtiy+ijr0Wh7xfkHvsU64mSiRs6oTO9lai0xQqtSq7J/3NNAJWc0tf
 ocbsOxHccTgRXuPE69ynZRhmVblpls4fzAr+7+Ez8dW8XoJ9SQ/5TijiATC1NJqAMO
 oq19+COByKldGysI8jDHTCIYU/P9xuXm6XB31jMF1bH5O85u+vVhP19L/dENHUDtwc
 +O0biXZWmMK96F5qzyJXFgXTPwFnjp6tiXH9XSeO0hSM6UTc+7SpYfogrCikOvrY0U
 BVpg3RnvMBRHQ==
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Add movement commands `tabulated-list-next-column' and
 `tabulated-list-previous-column'
Date: Tue, 17 Nov 2020 18:52:23 +0100
Message-ID: <87wnyj6fc8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=178.79.130.240;
 envelope-from=peter.feigl@HIDDEN; helo=nexoid.at
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 12:52:25
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
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.4 (--)

--=-=-=
Content-Type: text/plain

The attached patch adds two movement commands,
`tabulated-list-next-column' and `tabulated-list-previous-column', by
default bound to "f" and "b" in `tabulated-list-mode'. They move to the
next/previous column respectively, and honour a numeric prefix argument.

I'd be happy to try to get my employer to sign the papers, please send
me the forms (in German, if that is relevant).

If possible, feel free to use this patch without papers signed.

Thanks and greetings,

Peter

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Add-commands-to-move-to-next-previous-column-in-tabu.patch

From 92cdba70401663f3765571472af3623db8c7c304 Mon Sep 17 00:00:00 2001
From: Peter Feigl <peter.feigl@HIDDEN>
Date: Tue, 17 Nov 2020 18:42:03 +0100
Subject: [PATCH] Add commands to move to next/previous column in
 tabulated-list-mode.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Add
keybindings "b" and "f"
(tabulated-list-previous-column tabulated-list-next-column): Implement
commands.
---
 lisp/emacs-lisp/tabulated-list.el | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index 30577679f2..a19ab00838 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -212,6 +212,8 @@ If ADVANCE is non-nil, move forward by one line afterwards."
                             special-mode-map))
     (define-key map "n" 'next-line)
     (define-key map "p" 'previous-line)
+    (define-key map "b" 'tabulated-list-previous-column)
+    (define-key map "f" 'tabulated-list-next-column)
     (define-key map "S" 'tabulated-list-sort)
     (define-key map "}" 'tabulated-list-widen-current-column)
     (define-key map "{" 'tabulated-list-narrow-current-column)
@@ -726,6 +728,24 @@ Interactively, N is the prefix numeric argument, and defaults to
           (setq-local tabulated-list--current-lnum-width lnum-width)
           (tabulated-list-init-header)))))
 
+(defun tabulated-list-next-column (&optional arg)
+  "Go to the start of the next column after point on the current line.
+If ARG is provided, move that many columns."
+  (interactive "p")
+  (dotimes (c (or arg 1))
+    (let ((next (or (next-single-property-change (point) 'tabulated-list-column-name) (point-max))))
+      (unless (>= next (line-end-position))
+        (goto-char next)))))
+
+(defun tabulated-list-previous-column (&optional arg)
+  "Go to the start of the column point is in on the current line.
+If ARG is provided, move that many columns."
+  (interactive "p")
+  (dotimes (c (or arg 1))
+    (let ((prev (or (previous-single-property-change (point) 'tabulated-list-column-name) 1)))
+      (unless (< prev (line-beginning-position))
+        (goto-char prev)))))
+
 ;;; The mode definition:
 
 (define-derived-mode tabulated-list-mode special-mode "Tabulated"
-- 
2.28.0


--=-=-=--




Acknowledgement sent to "Peter Feigl" <peter.feigl@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#44711; 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, 24 Nov 2020 08:15:02 UTC

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