From: Juri Linkov <juri@jurta.org>
To: Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
Cc: emacs-devel@gnu.org
Subject: Proced revert (Re: Dired auto-revert)
Date: Fri, 04 Dec 2009 02:11:19 +0200 [thread overview]
Message-ID: <87d42wf01h.fsf_-_@mail.jurta.org> (raw)
In-Reply-To: <87ab0m2dnt.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 23 Sep 2009 12:05:14 +0300")
After typing `M-x proced RET' I see a list of inexistent processes that
were terminated long ago. That's because `M-x proced RET' brings up
to display the old *Proced* buffer with obsolete process information.
I think when someone sometimes wants to get the old *Proced* buffer, the
right command to do this is `C-x b *Proced* RET'. But `M-x proced RET'
should always display up-to-date process information.
BTW, there is also a related problem. Typing `q' exits from Proced
and hides the *Proced* buffer, but switches to *Marked Processes*
where typing `q' has no effect.
In Dired, the *Marked Files* buffer is always hidden because it has
a space character at the beginning of its name " *Marked Files*".
This patch also adds a space to the *Marked Processes* buffer name.
Index: lisp/proced.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/proced.el,v
retrieving revision 1.42
diff -u -r1.42 proced.el
--- lisp/proced.el 12 Oct 2009 04:59:07 -0000 1.42
+++ lisp/proced.el 4 Dec 2009 00:11:12 -0000
@@ -682,9 +682,9 @@
(progn
(display-buffer buffer)
(with-current-buffer buffer
- (run-hooks 'proced-post-display-hook)))
+ (proced-update t)))
(pop-to-buffer buffer)
- (run-hooks 'proced-post-display-hook)
+ (proced-update t)
(message
(substitute-command-keys
"Type \\<proced-mode-map>\\[quit-window] to quit, \\[proced-help] for help")))))
@@ -1711,7 +1711,7 @@
(line-end-position))))))
(unless signal
;; Display marked processes (code taken from `dired-mark-pop-up').
- (let ((bufname "*Marked Processes*")
+ (let ((bufname " *Marked Processes*")
(header-line (substring-no-properties proced-header-line)))
(with-current-buffer (get-buffer-create bufname)
(setq truncate-lines t
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2009-12-04 0:11 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 20:34 Emacs inotify support? joakim
2009-09-11 21:28 ` Lennart Borgman
2009-09-11 22:54 ` Antoine Levitt
2009-09-11 23:00 ` Lennart Borgman
2009-09-12 13:32 ` Eli Zaretskii
2009-09-12 16:36 ` Antoine Levitt
2009-09-12 16:55 ` Eli Zaretskii
2009-09-12 17:26 ` Antoine Levitt
2009-09-12 19:45 ` Eli Zaretskii
2009-09-12 20:04 ` Antoine Levitt
2009-09-12 21:24 ` Giuseppe Scrivano
2009-09-13 16:39 ` Richard Stallman
2009-09-13 17:28 ` joakim
2009-09-13 19:42 ` Eli Zaretskii
2009-09-13 22:28 ` Lennart Borgman
2009-09-14 5:47 ` joakim
2009-09-14 18:08 ` Eli Zaretskii
2009-09-12 16:46 ` Richard Stallman
2009-09-13 2:27 ` Miles Bader
2009-09-13 9:33 ` David Kastrup
2009-09-12 16:46 ` Richard Stallman
2009-09-14 7:39 ` Paul R
2009-09-15 7:17 ` Richard Stallman
2009-09-17 15:12 ` Juri Linkov
2009-09-18 9:49 ` Richard Stallman
2009-09-18 12:10 ` David Kastrup
2009-09-18 17:14 ` Stefan Monnier
2009-09-18 18:38 ` joakim
2009-09-21 21:45 ` Dired auto-revert (was: Emacs inotify support?) Juri Linkov
2009-09-21 22:29 ` Drew Adams
2009-09-23 9:05 ` Dired auto-revert Juri Linkov
2009-12-04 0:11 ` Juri Linkov [this message]
2009-12-04 2:17 ` Proced revert (Re: Dired auto-revert) Stefan Monnier
2009-12-04 22:21 ` Roland Winkler
2009-12-04 0:09 ` Dired auto-revert Juri Linkov
2009-12-04 2:15 ` Stefan Monnier
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=87d42wf01h.fsf_-_@mail.jurta.org \
--to=juri@jurta.org \
--cc=Roland.Winkler@physik.uni-erlangen.de \
--cc=emacs-devel@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).