Commit graph

56 commits

Author SHA1 Message Date
Juri Linkov
f22f4808a0 More uses of error' and warning' faces.
* lisp/battery.el (battery-update): Use the face `error' instead of
`font-lock-warning-face'.

* lisp/ibuffer.el (ibuffer-marked-face): Change default face from
`font-lock-warning-face' to `warning'.
(ibuffer-deletion-face): Change default face from
`font-lock-type-face' to `error'.

* lisp/proced.el (proced-marked): Inherit from `error' instead of
`font-lock-warning-face'.

Fixes: debbugs:6117
2011-08-24 21:09:18 +03:00
Lars Magne Ingebrigtsen
8ca422621c (proced-update): Revert yesterday's bug#1779 patch, which apparently didn't work. 2011-07-20 11:53:51 +02:00
Roland Winkler
5db2afd2fb lisp/proced.el (proced-send-signal): small fix 2011-07-19 20:09:31 -05:00
Stephen Berman
92e15d10a6 (proced-format): Make header lines align with the text 2011-07-19 23:31:26 +02:00
Juanma Barranquero
74f5369749 Simplify unloading functions after 2011-06-25T17:42:18Z!lekktu@gmail.com.
* allout.el (allout-unload-function): Pass -1 to `allout-mode'.

* proced.el (proced-unload-function):
* progmodes/cperl-mode.el (cperl-mode-unload-function): Remove.

* ses.el (ses-unload-function):
* emacs-lisp/re-builder.el (re-builder-unload-function): Simplify.
2011-06-25 20:08:41 +02:00
Stefan Monnier
2403c841a8 Silence various byte-compiler warnings.
* lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument
`access-type' and new obsolescence format.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
new format.
(byte-compile-check-variable): New `access-type' argument.
Only warn if the access-type is obsolete.
(byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
(byte-compile-variable-set): Adjust callers.
* lisp/help-fns.el (describe-variable): Adjust to new obsolescence format.
* lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
setting it as obsolete.
* lisp/simple.el (minibuffer-completing-symbol):
* lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
access as obsolete.
* lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it
obsolete yet.
* lisp/international/quail.el (quail-mouse-choose-completion): Remove unused
code referring to obsolete var.
(quail-choose-completion-string): Remove.
* lisp/server.el (server-clients-with, server-kill-buffer-query-function)
(server-kill-emacs-query-function): Silence "unused `proc'" warnings.
* lisp/proced.el (proced-send-signal):
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
Replace completion-annotate-function with completion-extra-properties.
2011-06-01 16:32:04 -03:00
Juanma Barranquero
06b605171f lisp/*.el: Lexical-binding cleanup. 2011-04-19 15:44:55 +02:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Stefan Monnier
1e05f3876f Update email of Roland Winkler <winkler@gnu.org> 2010-09-02 13:47:15 +02:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Juri Linkov
8b78760bf5 (proced): Call `(proced-update t)' to update process
information instead of only running proced-post-display-hook.
(proced-send-signal): Add a leading space to the buffer name
" *Marked Processes*" to make this buffer ephemeral.
2009-12-04 21:47:08 +00:00
Roland Winkler
0d4dc44285 (proced-filter-alist): Use regexp-quote. 2009-12-03 14:34:04 +00:00
Juanma Barranquero
7422a4bb97 * proced.el (proced-unload-function): New function. 2009-10-12 04:59:04 +00:00
Glenn Morris
d6549da4bd (proced-mark-alt): Remove alias.
(proced-mode-map): Remove proced-mark-alt.
2009-09-12 02:42:22 +00:00
Stefan Monnier
2efb64a86a (proced-mode-map): Prefer "m" for proced-mark. 2009-09-11 18:54:55 +00:00
Glenn Morris
8f09a02fc8 (proced-mode-map): Bind "d" to proced-mark-alt.
(proced-mark-alt): New alias, to control the advertised key.  (Bug#4362)
2009-09-07 02:35:29 +00:00
Eli Zaretskii
943c8b75ed (proced-mode): Doc fix. 2009-09-06 20:09:01 +00:00
Stefan Monnier
9a9af856bc (proced-signal-list): Make it an alist.
(proced-grammar-alist): Capitalize names.
(proced-send-signal): Use a non-hidden buffer (since it's displayed).
Disable undo manually and make it read-only.
Use completion-annotate-function.
2009-08-30 03:46:18 +00:00
Roland Winkler
f67cf06438 (proced-sort): Declare it buffer-local.
(proced-send-signal): Handle non-nil signals.
2009-04-20 20:42:45 +00:00
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