unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Francesco Turco <fturco@fastmail.fm>
To: 23846@debbugs.gnu.org
Subject: bug#23846: Bug 23846
Date: Sat, 25 Jun 2016 19:40:53 +0200	[thread overview]
Message-ID: <a5d686e8-1017-7c52-acd4-d43f76b48369@fastmail.fm> (raw)
In-Reply-To: <1c5022b9-eb9f-f3e5-9ac4-f504b4fc2c37@fastmail.fm>


[-- Attachment #1.1: Type: text/plain, Size: 743 bytes --]

On IRC (#emacs-beginners) they suggested me to add this function to
~/.emacs:

(define-key tabulated-list-mode-map (kbd "s") 'tabulated-list-sort)
(defun tabulated-list-sort (column-name)
  (interactive
   (list (completing-read "Column: "
			  (mapcar 'car tabulated-list-format))))
  (tabulated-list--sort-by-column-name column-name))

I haven't learned Emacs Lisp yet so I can't help but this may be a
starting point for implementing this feature.

The previous function seems to work fine for all columns except for
Description and Version, but I don't know if it makes sense to sort
packages according to those columns.

-- 
Website: http://www.fturco.net/
GPG key: 6712 2364 B2FE 30E1 4791 EB82 7BB1 1F53 29DE CD34


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2016-06-25 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-25 15:04 bug#23846: 24.5; Sort package list by column Francesco Turco
2016-06-25 17:40 ` Francesco Turco [this message]
2019-10-13 23:09 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a5d686e8-1017-7c52-acd4-d43f76b48369@fastmail.fm \
    --to=fturco@fastmail.fm \
    --cc=23846@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).