GNU bug report logs - #23846
24.5; Sort package list by column

Previous Next

Package: emacs;

Reported by: Francesco Turco <fturco <at> fastmail.fm>

Date: Sat, 25 Jun 2016 17:09:02 UTC

Severity: wishlist

Found in version 24.5

Done: Stefan Kangas <stefan <at> marxist.se>

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 23846 in the body.
You can then email your comments to 23846 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#23846; Package emacs. (Sat, 25 Jun 2016 17:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Francesco Turco <fturco <at> fastmail.fm>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 25 Jun 2016 17:09:02 GMT) Full text and rfc822 format available.

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

From: Francesco Turco <fturco <at> fastmail.fm>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; Sort package list by column
Date: Sat, 25 Jun 2016 17:04:08 +0200
[Message part 1 (text/plain, inline)]
This is a feature request concerning the package list one can obtain
with M-x package-list-packages or M-x package-list-packages-no-fetch.

It would be good to sort packages by column, for example according to
package name (first column) or according to status (third column),
depending on where the point is.

At the moment you can actually accomplish that by pressing M-: and
running something like: (tabulated-list--sort-by-column-name "Status")

It would be more intuitive instead to just press key "s" (for "sort"),
which is undefined now. If I remember correctly something similar is
implemented in ERC, one of emacs IRC clients, for sorting IRC channels.

Is that a good idea? What do you think?

--

In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6)
 of 2016-06-04 on juergen
Windowing system distributor `The X.Org Foundation', version 11.0.11803000
Configured using:
 `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
 -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Important settings:
  value of $LC_TIME: en_DK.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Package Menu

Minor modes in effect:
  diff-auto-refine-mode: t
  tracking-mode: t
  shell-dirtrack-mode: t
  rcirc-track-minor-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
scroll-up-command: End of buffer [8 times]
nil
scroll-down-command: Beginning of buffer [14 times]
nil
Mark set
nil
Mark set
scroll-down-command: Beginning of buffer
nil [2 times]
Mark set
scroll-up-command: End of buffer [11 times]

Load-path shadows:
None found.

Features:
(shadow mail-extr emacsbug sendmail debug mm-archive message idna rfc822
mml mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies
mm-encode mail-utils gnutls network-stream starttls url-http mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap url-handlers url-parse auth-source eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core mm-util
mail-prsvr password-cache url-vars circe advice help-fns diff-mode
lui-irc-colors irc make-tls-process tls lcs lui-format lui tracking
shorten rx paren flyspell ispell circe-compat sort lisp-mnt finder-inf
org-colview diary-lib diary-loaddefs cal-iso org-agenda misearch
multi-isearch browse-url org-clock calc-map calc-stat calc-vec calc-misc
calc-arith calc-ext calc-menu calc-aent calc calc-loaddefs calc-macs
thingatpt tabify org-table mule-util cal-move parse-time help-mode
org-rmail org-mhe org-irc org-info org-gnus gnus-util org-docview
doc-view jka-compr image-mode dired cl-loaddefs cl-lib org-bibtex bibtex
org-bbdb org-w3m epa-file epa derived epg package epg-config ox-latex
ox-icalendar ox-html ox-ascii ox-publish ox org-element org org-macro
org-footnote org-pcomplete org-list org-faces org-entities noutline
outline easy-mmode org-version ob-sh shell pcomplete ob ob-tangle ob-ref
ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color
ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu
easymenu calendar cal-loaddefs format-spec rcirc ring cus-start cus-load
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:
((conses 16 889379 73802)
 (symbols 48 40921 0)
 (miscs 40 705 1622)
 (strings 32 115723 41943)
 (string-bytes 1 3066503)
 (vectors 16 41923)
 (vector-slots 8 1473961 117316)
 (floats 8 176 1168)
 (intervals 56 96548 1318)
 (buffers 960 31)
 (heap 1024 75331 9314))

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

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23846; Package emacs. (Sat, 25 Jun 2016 17:42:01 GMT) Full text and rfc822 format available.

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

From: Francesco Turco <fturco <at> fastmail.fm>
To: 23846 <at> debbugs.gnu.org
Subject: Bug 23846
Date: Sat, 25 Jun 2016 19:40:53 +0200
[Message part 1 (text/plain, inline)]
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

[signature.asc (application/pgp-signature, attachment)]

Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 13 Oct 2019 23:11:02 GMT) Full text and rfc822 format available.

Notification sent to Francesco Turco <fturco <at> fastmail.fm>:
bug acknowledged by developer. (Sun, 13 Oct 2019 23:11:02 GMT) Full text and rfc822 format available.

Message #13 received at 23846-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Francesco Turco <fturco <at> fastmail.fm>
Cc: 23846-done <at> debbugs.gnu.org
Subject: Re: bug#23846: 24.5; Sort package list by column
Date: Mon, 14 Oct 2019 01:09:43 +0200
Francesco Turco <fturco <at> fastmail.fm> writes:

> It would be good to sort packages by column, for example according to
> package name (first column) or according to status (third column),
> depending on where the point is.

This can now be done using "S" in the "*Packages*" buffer.  I'm
therefore closing this bug report.

Best regards,
Stefan Kangas




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

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

Previous Next


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