Mercurial > hg > xemacs-beta
comparison lisp/process.el @ 776:79940b592197
[xemacs-hg @ 2002-03-15 07:43:14 by ben]
.cvsignore: ignore .tmp files that are getting auto-created by VC.
Makefile.in.in: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
alloc.c, emacs.c, lisp.h: add new -no-packages. make sure list of args for sorting is
actually correct. clean up arg parsing code.
xemacs.mak: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
Makefile: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
mule\chinese.el, mule\japan-util.el: fix warnings.
behavior-defs.el: fix errors with require.
bytecomp-runtime.el: add new funs {when,and}-{f}boundp, clean up docs.
cus-edit.el: pretty-print values.
dump-paths.el, find-paths.el, startup.el, setup-paths.el: fix problems/inconsistencies parsing options. support new
-no-packages option. merge code duplication in dump-paths and
startup.
lisp-mode.el: indent macrolet and labels correctly. update comments about
lisp-indent-function. flet already handled in cl.
apropos.el, auto-save.el, buff-menu.el, cl-extra.el, dragdrop.el, faces.el, files.el, fill.el, font-lock.el, font.el, gtk-faces.el, gui.el, help.el, hyper-apropos.el, info.el, isearch-mode.el, keymap.el, lisp-mnt.el, mouse.el, package-admin.el, package-get.el, printer.el, process.el, resize-minibuffer.el, simple.el, toolbar-items.el, wid-edit.el, win32-native.el: fix warnings.
very-early-lisp.el: update docs.
mule\chinese.el, mule\japan-util.el: fix warnings.
mule\chinese.el, mule\japan-util.el: fix warnings.
behavior-defs.el: fix errors with require.
bytecomp-runtime.el: add new funs {when,and}-{f}boundp, clean up docs.
cus-edit.el: pretty-print values.
dump-paths.el, find-paths.el, startup.el, setup-paths.el: fix problems/inconsistencies parsing options. support new
-no-packages option. merge code duplication in dump-paths and
startup.
lisp-mode.el: indent macrolet and labels correctly. update comments about
lisp-indent-function. flet already handled in cl.
apropos.el, auto-save.el, buff-menu.el, cl-extra.el, dragdrop.el, faces.el, files.el, fill.el, font-lock.el, font.el, gtk-faces.el, gui.el, help.el, hyper-apropos.el, info.el, isearch-mode.el, keymap.el, lisp-mnt.el, mouse.el, package-admin.el, package-get.el, printer.el, process.el, resize-minibuffer.el, simple.el, toolbar-items.el, wid-edit.el, win32-native.el: fix warnings.
very-early-lisp.el: update docs.
mule\chinese.el, mule\japan-util.el: fix warnings.
Makefile.in.in: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
Makefile.in.in: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
author | ben |
---|---|
date | Fri, 15 Mar 2002 07:43:43 +0000 |
parents | 943eaba38521 |
children | a634e3b7acc8 |
comparison
equal
deleted
inserted
replaced
775:7d972c3de90a | 776:79940b592197 |
---|---|
272 ;; Preserve the match data in case called from a program. | 272 ;; Preserve the match data in case called from a program. |
273 (save-match-data | 273 (save-match-data |
274 (if (string-match "[ \t]*&[ \t]*$" command) | 274 (if (string-match "[ \t]*&[ \t]*$" command) |
275 ;; Command ending with ampersand means asynchronous. | 275 ;; Command ending with ampersand means asynchronous. |
276 (progn | 276 (progn |
277 (background (substring command 0 (match-beginning 0)))) | 277 (if-fboundp 'background |
278 (background (substring command 0 | |
279 (match-beginning 0))) | |
280 (error | |
281 'unimplemented | |
282 "backgrounding a shell command requires package `background'"))) | |
283 | |
278 (shell-command-on-region (point) (point) command output-buffer))))) | 284 (shell-command-on-region (point) (point) command output-buffer))))) |
279 | 285 |
280 ;; We have a sentinel to prevent insertion of a termination message | 286 ;; We have a sentinel to prevent insertion of a termination message |
281 ;; in the buffer itself. | 287 ;; in the buffer itself. |
282 (defun shell-command-sentinel (process signal) | 288 (defun shell-command-sentinel (process signal) |
445 ;; need to protect against both the shell's and the program's | 451 ;; need to protect against both the shell's and the program's |
446 ;; quoting conventions (and our own conventions in | 452 ;; quoting conventions (and our own conventions in |
447 ;; mswindows-construct-process-command-line!). Putting quotes | 453 ;; mswindows-construct-process-command-line!). Putting quotes |
448 ;; around shell metachars gets through the last two, and applying | 454 ;; around shell metachars gets through the last two, and applying |
449 ;; the normal VC runtime quoting works with practically all apps. | 455 ;; the normal VC runtime quoting works with practically all apps. |
450 (mswindows-quote-one-vc-runtime-arg argument t) | 456 (declare-fboundp (mswindows-quote-one-vc-runtime-arg argument t)) |
451 (if (equal argument "") | 457 (if (equal argument "") |
452 "\"\"" | 458 "\"\"" |
453 ;; Quote everything except POSIX filename characters. | 459 ;; Quote everything except POSIX filename characters. |
454 ;; This should be safe enough even for really weird shells. | 460 ;; This should be safe enough even for really weird shells. |
455 (let ((result "") (start 0) end) | 461 (let ((result "") (start 0) end) |