Commit graph

23 commits

Author SHA1 Message Date
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