1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

35 Commits

Author SHA1 Message Date
Miles Bader
a20878b6d8 Rename system-process-attributes' to process-attributes'
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1553
2009-02-23 05:06:36 +00:00
Roland Winkler
016151bb4c (proced-after-send-signal-hook): Use defcustom.
(proced-header-line): Handle header lines that are shorter than
window-hscroll.
(proced-send-signal): Rebind split-width-threshold analogous to
dired-pop-to-buffer.
2009-02-07 17:07:56 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Roland Winkler
3ac09bb4f7 (proced-grammar-alist): Refiner can be a list (function help-echo)
instead of a cons pair.
(proced-post-display-hook): New variable.
(proced-tree-depth): Renamed from proced-tree-indent.
(proced-mode): Derive mode from special-mode.
(proced-mode-map): Changed accordingly.
(proced, proced-update): Run proced-post-display-hook.
(proced-do-mark-all): Count processes for which mark has been
updated.
(proced-format): Check for ppid attribute.
(proced-process-attributes): Take time and ctime attribute from
system-process-attributes.
(proced-send-signal): Doc fix.  Collect properly the info on
marked processes.  Use fit-window-to-buffer instead of
dired-pop-to-buffer.
2009-01-03 12:19:56 +00:00
Juanma Barranquero
744c85fbed * proced.el (proced-tree-flag): Fix typo in docstring. 2008-12-30 01:52:14 +00:00
Roland Winkler
48152a7052 (proced-temp-alist): Renamed from variable proced-children-alist.
(proced-process-tree, proced-toggle-tree): Fix docstring.
(proced-tree): Fix docstring.  Simplify.  Use proced-temp-alist.
(proced-temp-internal): Use proced-temp-alist.
2008-12-29 06:13:36 +00:00
Juri Linkov
5adfa483c2 (proced-mode-map): Bind " " to next-line instead of the
command `proced-next-line' removed on 2008-09-06.
2008-12-29 00:12:12 +00:00
Roland Winkler
f1d2765346 (proced-grammar-alist): Allow predicate nil. New attribute tree.
(proced-format-alist): Use attribute tree.
(proced-tree-flag, proced-tree-indent): New variables.
(proced-children-alist): Renamed from proced-process-tree.  PPID
must refer to a process in process-alist.  Ignore PPIDs that equal
PID.  Children alist inherits sorting order from process-alist.
(proced-process-tree): New variable.  New function.
(proced-process-tree-internal, proced-toggle-tree)
(proced-tree, proced-tree-insert, proced-format-tree): New
functions.
(proced-mark-process-alist): Add docstring.
(proced-filter-parents): PPID must refer to a process in
process-alist.  Ignore PPIDs that equal PID.
(proced-sort): Throw error if attribute is not sortable.
(proced-sort-interactive): Restrict completion to sortable
attributes.
(proced-format): Include tree in standard attributes if
proced-tree-flag is non-nil.  Make header clickable only if
corresponding predicate is non-nil.
(proced-update): Use proced-tree.
2008-12-28 13:58:10 +00:00
Juanma Barranquero
d0482e4e9a * proced.el (proced-grammar-alist): Doc fix.
(proced-marker-char, proced-mark, proced-help-string, proced-mode-map)
  (proced-filter-parents, proced-sort-header, proced-update, proced-help)
  (proced-undo): Fix typos in docstrings.
2008-12-19 21:53:25 +00:00
Roland Winkler
4ed46aefb2 (proced-sort-interactive, proced-sort-pcpu)
(proced-sort-pmem, proced-sort-start, proced-sort-time)
(proced-sort-user, proced-sort-header): Prefix arg
determines sorting order. Suggested by Dan Nicolaescu.
(proced-revert): Doc fix.
2008-12-14 23:16:09 +00:00
Roland Winkler
b4f671ce54 (proced-grammar-alist): Allow refiner elements that
are cons pairs (function . help-echo) or nil.
(proced-refine): Use them.
(proced-format-alist): Allow alternatives.
(proced-descend): New variable.
(proced-sort): New arg descend.
(proced-sort-interactive): Repeated calls toggle sort order.
(proced-format): Accomodate changes of proced-format-alist.
Undefined attributes are displayed as "?".
(proced-process-attributes): New optional arg pid-list.
Ignore processes with empty attribute list.
2008-12-14 17:41:29 +00:00
Roland Winkler
413e65fe7e (proced-auto-update-interval): Renamed from proced-timer-interval.
(proced-auto-update-flag): Renamed from proced-timer-flag.
(proced-auto-update-timer): Renamed from proced-timer.
(proced-toggle-auto-update): Renamed from proced-toggle-timer-flag.
(proced-available): Initialize appropriately.
2008-12-14 17:31:34 +00:00
Glenn Morris
216d81a1e6 (proced-available): New variable.
(proced-process-attributes): Move availability check from previous
change from here...
(proced): ... to here.
2008-11-20 02:43:29 +00:00
Glenn Morris
667df88c0d (proced, proced-format-time): Doc fixes.
(proced-process-attributes): Signal an error if unsupported.  (Bug#1314)
2008-11-19 08:09:22 +00:00
Roland Winkler
204ebc5b24 (proced-grammar-alist, proced-custom-attributes)
(proced-format-alist, proced-format, proced-filter-alist)
(proced-filter, proced-sort): Use defcustom.
(proced-mode): Fix docstring.
(proced-process-attributes): Handle return value nil of functions
in proced-custom-attributes.
2008-09-20 03:03:07 +00:00
Roland Winkler
aa5fecb537 (proced-mark-face, proced-marked-face)
(proced-sort-header-face): Removed.
(proced-font-lock-keywords): Simplified.
(proced-format): Use face proced-sort-header.
(proced-format-interactive, proced-sort-interactive)
(proced-filter-interactive): Only call proced-update if the scheme
has changed.
(proced-sort-header): Use posn-actual-col-row.
2008-09-14 16:44:44 +00:00
Roland Winkler
da64319085 (proced-sort-header): New face.
(proced-sort-header-face): New variable.
(proced-format): Allow format value nil.  Use
proced-sort-header-face for header of sort column.
(proced-format-args): New function.
(proced-grammar-alist, proced-timer-flag, proced-process-alist)
(proced-header-help-echo, proced-field-help-echo, proced-timer)
(proced-toggle-timer-flag, proced, proced-mode): Doc fix.
(proced-refine): Renamed from proced-filter-attribute.  Doc fix.
(proced-sort-header): Bind also to mouse-1.
(proced-move-to-goal-column): Return position of point.
(proced-filter-interactive): Always revert listing.
(proced-format-ttname): Simplify.
(proced-update): Do not keep undo information.  Put point at
beginning of buffer if we generate the first listing.
2008-09-12 16:59:57 +00:00
Roland Winkler
d74d0c4266 Require time-date.
(proced-command-alist, proced-command, proced-goal-header-re)
(proced-sorting-schemes-alist, proced-sorting-scheme)
(proced-header-alist, proced-sorting-schemes-re)
(proced-skip-regexp, proced-next-line, proced-previous-line)
(proced-listing-type, proced-sorting-scheme-p): Removed.
(proced-grammar-alist, proced-custom-attributes)
(proced-format-alist, proced-format, proced-filter-alist)
(proced-filter, proced-sort, proced-goal-attribute)
(proced-timer-interval, proced-timer-flag, proced-timer)
(proced-process-alist, proced-sort-internal, proced-process-tree)
(proced-header-help-echo, proced-field-help-echo): New variables.
(proced-pid-at-point, proced-timer, proced-mark-process-alist)
(proced-omit-process, proced-filter, proced-process-tree)
(proced-filter-children, proced-children-pids)
(proced-filter-parents, proced-<, proced-string-lessp)
(proced-time-lessp, proced-xor, proced-sort-p)
(proced-format-time, proced-format-start, proced-format-ttname)
(proced-format, proced-process-attributes): New functions.
(proced-toggle-timer-flag, proced-mark-children)
(proced-mark-parents, proced-filter-interactive)
(proced-filter-attribute, proced-sort-interactive)
(proced-sort-header, proced-format-interactive): New commands.
(proced-move-to-goal-column): Use goal-column.
(proced-mode): Use proced-timer.
(proced-do-mark-all): Display process count.  Use use-region-p.
Simplify.
(proced-omit-processes): Use use-region-p.
(proced-sort-pcpu, proced-sort-pmem, proced-sort-pid)
(proced-sort-start, proced-sort-time, proced-sort-user): Use
proced-sort-interactive.
(proced-sort): Make it a function that performs the actual sort.
(proced-update): New arg revert.  Use proced-process-alist,
proced-filter, proced-sort, proced-format, and
proced-grammar-alist.  Preserve position of point based on fields.
Make header line and fields clickable.
(proced-send-signal): Use proced-pid-at-point and
proced-process-alist.
(proced-why): Use save-selected-window.
(proced-log): Use buffer-read-only.
2008-09-06 23:05:49 +00:00
Roland Winkler
91181f91a6 proced.el (proced-send-signal): Use beginning-of-line. 2008-08-18 01:01:59 +00:00
Roland Winkler
9f583d141f (proced-signal-list): Add POSIX 1003.1-2001 signals.
(proced-mode-map): Add tooltips for menus.  Use radio buttons for
listing types.
(proced-log-buffer): New variable.
(proced-mark-all, proced-unmark-all, proced-do-mark-al): Operate
on region if transient-mark-mode is turned on and the region is
active.
(proced-omit-processes): Renamed from proced-hide-processes to
avoid key clash with describe-mode (bound to h).  Search for
marked processes starting from point-min.
(proced-header-space): Removed.
(proced-send-signal): Handle errors.  Operate on current process
if no process is marked.
(proced-why): New command.
(proced-log, proced-log-summary): New functions.
(proced-help): Use proced-why.
2008-08-18 00:47:12 +00:00
Dan Nicolaescu
58589150ae (proced-menu): Bind the correct function to for toggling. 2008-08-06 03:53:09 +00:00
Juri Linkov
008c22f2dc (proced-mode, proced): Add \\<proced-mode-map> to docstrings. 2008-07-19 23:57:12 +00:00
John Paul Wallington
27ab83abf9 (proced-next-line, proced-previous-line): Avoid calling `next-line'
and `previous-line' from Lisp code.
2008-05-25 22:13:53 +00:00
Stefan Monnier
82305b1a29 (proced-header-line): Use the :align-to 0 feature
rather than computing the corresponding position manually.
(proced-update): Don't hardcode point-min==1.
2008-05-24 20:41:55 +00:00
Roland Winkler
b9df596973 (proced-header-line): New variable and new function.
(proced-mode): Set header-line-format.
(proced-update): Set proced-header-line.
(proced-send-signal): Use proced-header-line.
2008-05-21 08:00:05 +00:00
Roland Winkler
92d9ce488f (proced-goal-header-re): Renamed from proced-procname-column-regexp.
(proced-goal-column): Renamed from proced-procname-column.
(proced-move-to-goal-column): Renamed from
proced-move-to-procname.
(proced-header-face, proced-header-regexp): Removed.
(proced-font-lock-keywords): Remove proced-header-face.
(proced-header-alist, proced-sorting-schemes-re): New variables.
(proced): Rename Proced buffer to *Proced*.
(proced-next-line, proced-previous-line): New commands.
(proced-do-mark, proced-do-mark-all, proced-toggle-marks)
(proced-hide-processes): Do not treat first line as special.
(proced-header-space): New function.
(proced-update): Use header-line-format.  Initialize
proced-header-alist and proced-sorting-schemes-re.  Set
proced-goal-column.  Include proced-command in mode-name.
(proced-send-signal): Use header-line-format for *Marked
Processes* buffer.
(proced-sort): Restrict minibuffer completion to applicable
sorting schemes.
(proced-sorting-scheme-p): Use proced-sorting-schemes-re.
2008-05-20 10:17:15 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Roland Winkler
615482527d (proced-command-alist): Fix system-type values. Fix defcustom.
(proced-sorting-schemes-alist, proced-sorting-scheme): New variables.
(proced-sort-pcpu, proced-sort-pmem, proced-sort-pid)
(proced-sort-start, proced-sort, proced-sort-time): New commands.
(proced-update): Use proced-sorting-scheme.  Update modeline.
(proced-send-signal): Use nreverse.
(proced-sorting-scheme-p): New function.
2008-05-05 02:38:20 +00:00
Stefan Monnier
f5b0081187 (proced-command-alist): Add support for darwin. 2008-04-16 03:09:58 +00:00
Stefan Monnier
079ba9b790 (proced-mode): Redefine as just the major-mode.
(proced): Separate it from proced-mode.
2008-04-16 03:07:49 +00:00
Roland Winkler
52434c810e (proced-send-signal): Fix error recognition. 2008-04-14 02:42:11 +00:00
Roland Winkler
e6854b3fef (proced-command-alist): Remove sort column.
(proced-command, proced-procname-column): Use
make-variable-buffer-local.
(proced-signal-function): Renamed from proced-kill-program.  Allow
for elisp symbols and string values representing system calls.
(proced-marker-regexp, proced-success-message): New functions.
(proced): Use defalias.  Add autoload cookie.
(proced-unmark-backward, proced-toggle-marks)
(proced-hide-processes): New commands.
(proced-do-mark): Simplify code.
(proced-insert-mark): Use optional arg BACKWARD instead of line number.
(proced-update): Remove sorting.
(proced-send-signal): Display number of processes to operate on.
Allow for system calls or elisp functions to send signals.  Check
if signal was send successfully.
2008-04-14 01:35:56 +00:00
Roland Winkler
dfab9988c5 Add arch-tag. 2008-03-26 15:01:44 +00:00
Roland Winkler
1ba1a8b972 Update copyright. 2008-03-26 02:29:43 +00:00
Roland Winkler
37e4d8ed4f proced.el: New file. 2008-03-26 02:15:28 +00:00