[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tab advance for tabulated-list-mode [CODE ATTACHED]

From: Stefan Monnier
Subject: Re: Tab advance for tabulated-list-mode [CODE ATTACHED]
Date: Sun, 17 Jan 2021 10:20:26 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> Tabulated-list-mode provides for sorting by column at POINT, but not for
>> navigating by column to quickly get to the column one wishes to sort.
>> The following code provides that feature.
> [...]
>> (define-key tabulated-list-mode-map "\t"              
>> 'tabulated-list-tab-forward)
>> (define-key tabulated-list-mode-map (kbd "<backtab>") 
>> 'tabulated-list-tab-backward)
> How would this work when the tabulated list has one or more buttons?

Presumably the major mode will be derived from `tabulated-list-mode` and
the keymap will have `tabulated-list-mode-map` as its parent, so any
specific local bindings (or local buttons) should take precedence, so
the above patch shouldn't cause a regression.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]