GNU bug report logs - #35796
26.1; tabulated-list-sort user-friendliness

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Sun, 19 May 2019 05:18:02 UTC

Severity: wishlist

Tags: notabug

Found in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35796 in the body.
You can then email your comments to 35796 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35796; Package emacs. (Sun, 19 May 2019 05:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Boruch Baum <boruch_baum <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 May 2019 05:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs Bug Reporting <bug-gnu-emacs <at> gnu.org>
Subject: 26.1; tabulated-list-sort user-friendliness
Date: Sun, 19 May 2019 01:09:34 -0400
This is a feature request for function `tabulated-list-sort' to make it
more user-friendly.

When the function is called interactively without a prefix-argument, it
should prompt the user (using `completing-read'?) for which column to
sort by (taken from the car of each element of `tabulated-list-format').
When called with a prefix argument, that would be redundant since the
prefix argument *is* the sort column.

The mode should also have a means to directly and explicitly ask for the
direction of sort. Here are a few implementation ideas for that, but any
better one that you can come up would be fine by me:

1) Create explicit functions `tabulated-list-sort-ascending' and
   `tabulated-list-sort-descending'. Allow the user to bind them as 'S'/'s'
   or 'O'/'o' or whatever other binding that desire. ('S' and 'o' are
   currently used by default by the mode).

2) Add code in the existing function to allow for negative prefix
   arguments. Then interpret positive numbers as a request for an
   ascending sort and negative numbers as a request for a descending
   sort.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35796; Package emacs. (Tue, 09 Jul 2019 02:36:01 GMT) Full text and rfc822 format available.

Message #8 received at 35796 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 35796 <at> debbugs.gnu.org
Subject: Re: bug#35796: 26.1; tabulated-list-sort user-friendliness
Date: Tue, 09 Jul 2019 04:35:43 +0200
Boruch Baum <boruch_baum <at> gmx.com> writes:

> This is a feature request for function `tabulated-list-sort' to make it
> more user-friendly.
>
> When the function is called interactively without a prefix-argument, it
> should prompt the user (using `completing-read'?) for which column to
> sort by (taken from the car of each element of `tabulated-list-format').
> When called with a prefix argument, that would be redundant since the
> prefix argument *is* the sort column.

It sorts based on the current column (I just tried it in a C-x C-b
buffer), and it seems to work fine for me.

> The mode should also have a means to directly and explicitly ask for the
> direction of sort. Here are a few implementation ideas for that, but any
> better one that you can come up would be fine by me:

It reverses the direction when you hit it twice, which seems logical to
me.  So I think this works as it should.
-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 02:36:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 35796 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 02:36:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Aug 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 264 days ago.

Previous Next


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