unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org, Roland.Winkler@physik.uni-erlangen.de,
	Mathias Dahl <mathias.dahl@gmail.com>
Subject: Re: proced.el -- operate on processes like dired
Date: Mon, 31 Mar 2008 01:34:52 +0300	[thread overview]
Message-ID: <87r6dsq9mi.fsf@jurta.org> (raw)
In-Reply-To: <E1Jee3w-0007nM-Gl@fencepost.gnu.org> (Richard Stallman's message of "Wed, 26 Mar 2008 18:25:40 -0400")

>     I use a nice extension to Dired that lets me resort the
>     listing on different fields. I type `s t' to sort on time, , `s s' to
>     sort on size, etc.
>
> It would be nice to add that to Dired as well as to Proced.

This is easy to put in .emacs something like this:

;; Add different directory sorting keys
(mapc (lambda (elt)
        (define-key dired-mode-map (car elt)
          `(lambda ()
            (interactive)
            (dired-sort-other (concat dired-listing-switches ,(cadr elt))))))
      '(([(control f3)]       ""     "by name")
        ([(control f4)]       " -X"  "by extension")
        ([(control f5)]       " -t"  "by date")
        ([(control f6)]       " -S"  "by size")
        ([(control shift f3)] " -r"  "by reverse name")
        ([(control shift f4)] " -rX" "by reverse extension")
        ([(control shift f5)] " -rt" "by reverse date")
        ([(control shift f6)] " -rS" "by reverse size")))

However, we should find more convenient key bindings.

But Proced uses different sorting fields, so it should provide different
sorting methods maybe like those in `top'.

BTW, I noticed one inconsistency between Proced and Dired: in Proced
`DEL' doesn't remove the mark from the previous line, unlike Dired.

I also think that for `proced' to be useful it should be autoloaded like

;;;###autoload (autoload 'proced "proced" nil t)
(fset 'proced 'proced-mode)

-- 
Juri Linkov
http://www.jurta.org/emacs/




  parent reply	other threads:[~2008-03-30 22:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3skyeu90i.fsf@tfkp07.physik.uni-erlangen.de>
2008-03-25 21:00 ` proced.el -- operate on processes like dired Richard Stallman
2008-03-25 22:57   ` Roland Winkler
2008-03-26  1:09     ` Mathias Dahl
2008-03-26  2:51       ` Roland Winkler
2008-03-26  9:06         ` Mathias Dahl
2008-03-26 22:25       ` Richard Stallman
2008-03-26 22:40         ` Drew Adams
2008-03-30 22:34         ` Juri Linkov [this message]
2008-03-31  7:40           ` Mathias Dahl
2008-04-04  1:19           ` Roland Winkler
2008-05-10 23:57             ` Juri Linkov
2008-05-11  4:54               ` Roland Winkler
2008-05-11  5:01                 ` dhruva
2008-03-29 22:17       ` Roland Winkler
2008-03-30  1:01         ` Mathias Dahl
2008-03-30  2:53           ` Roland Winkler
2008-03-31 18:38             ` Chad Brown
2008-03-26  2:02     ` Stefan Monnier
2008-03-26  2:40       ` Roland Winkler
2008-03-26  7:42         ` Glenn Morris
2008-03-26 15:08           ` Roland Winkler
2008-03-26 22:25     ` Richard Stallman
2008-03-30  3:25   ` T. V. Raman
2008-05-11 13:54 Roland Winkler
2008-05-11 17:47 ` Óscar Fuentes
2008-05-13  2:48   ` Roland Winkler

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=87r6dsq9mi.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=Roland.Winkler@physik.uni-erlangen.de \
    --cc=emacs-devel@gnu.org \
    --cc=mathias.dahl@gmail.com \
    --cc=rms@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).