PATCH 21.5
Invoking shell-command with a buffer name or object and an asynchronous
command (i.e., one ending with "&") does NOT put the shell output into
the requested buffer like it did in 21.4. This patch fixes the
regression.
lisp/ChangeLog addition:
2006-06-30 Jerry James <james(a)xemacs.org>
* process.el (shell-command): If a specific output buffer was
requested, use it.
xemacs-21.5 source patch:
Diff command: cvs -q diff -uN
Files affected: lisp/process.el
Index: lisp/process.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/process.el,v
retrieving revision 1.19
diff -d -u -r1.19 process.el
--- lisp/process.el 2005/01/09 09:44:44 1.19
+++ lisp/process.el 2006/06/30 20:49:29
@@ -359,8 +359,8 @@
;; Command ending with ampersand means asynchronous.
(progn
(if-fboundp 'background
- (background (substring command 0
- (match-beginning 0)))
+ (background (substring command 0 (match-beginning 0))
+ output-buffer)
(error
'unimplemented
"backgrounding a shell command requires package `background'")))
--
Jerry James, Assistant Professor james(a)xemacs.org
Computer Science Department
http://www.cs.usu.edu/~jerry/
Utah State University