[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23.0.60; proced.el on OSX
From: |
Markus Triska |
Subject: |
23.0.60; proced.el on OSX |
Date: |
Wed, 16 Apr 2008 04:02:38 +0200 (CEST) |
This change makes "M-x proced" work for me with OSX 10.4.11:
2008-04-16 Markus Triska <address@hidden>
* proced.el (proced-command-alist): Add support for darwin.
(proced): Add autoload cookie.
diff --git a/lisp/proced.el b/lisp/proced.el
index 743978b..9cfabd9 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -62,6 +62,9 @@
("emacs" ("ps" "--pid" ,(number-to-string (emacs-pid))
"--ppid" ,(number-to-string (emacs-pid))
"uwww") 2)))
+ ((memq system-type '(darwin))
+ `(("user" ("ps" "-u" ,(number-to-string (user-uid))) 2)
+ ("all" ("ps" "-Au") 2)))
(t ; standard syntax doesn't allow us to list running processes only
`(("user" ("ps" "-fu" ,(number-to-string (user-uid))) 2)
("all" ("ps" "-ef") 2))))
@@ -227,6 +230,7 @@ Return the position of the beginning of the process name,
or nil if none found."
proced-command-alist)))
"\\s-+\\S-+")))
+;;;###autoload
(defun proced-mode (&optional arg)
"Mode for displaying UNIX system processes and sending signals to them.
Type \\[proced-mark-process] to mark a process for later commands.
- 23.0.60; proced.el on OSX,
Markus Triska <=