1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00

Bail out from list-processes if async subprocesses aren't available.

lisp/simple.el (list-processes): If async subprocesses are not
 available, error out with a clear error message.
This commit is contained in:
Eli Zaretskii 2011-04-08 20:08:17 +03:00
parent 87302331c2
commit 3726838a9c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-04-08 Eli Zaretskii <eliz@gnu.org>
* simple.el (list-processes): If async subprocesses are not
available, error out with a clear error message.
2011-04-08 Chong Yidong <cyd@stupidchicken.com>
* help.el (help-form-show): New function, to be called from C.

View File

@ -2769,6 +2769,8 @@ Optional argument BUFFER specifies a buffer to use, instead of
\"*Process List\".
The return value is always nil."
(interactive)
(or (fboundp 'process-list)
(error "Asynchronous subprocesses are not supported on this system"))
(unless (bufferp buffer)
(setq buffer (get-buffer-create "*Process List*")))
(with-current-buffer buffer