Is there a need for a 21.1 version of this patch? What is the
problematic code as far as gcc-2.95.2 is concerned?
- vin
Martin Buchholz <martin(a)xemacs.org> writes:
>>>>> "K" == Katsumi Yamaoka
<yamaoka(a)jpl.org> writes:
K> Hi,
K> I am using latest XEmacs 21.2 CVS. The function `process-status' does
K> not work if the argument is a string. It should return `nil' when the
K> process does not exist.
K> (condition-case err
K> (process-status "XXXXXXXX")
K> (error err))
K> => (error "Process XXXXXXXX does not exist")
My fault.
(martin@lasker) ~cdws/dev $ cvs-diff
Index: src/ChangeLog
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.154.2.735
diff -u -w -U0 -r1.154.2.735 ChangeLog
--- src/ChangeLog 2000/11/06 15:20:39 1.154.2.735
+++ src/ChangeLog 2000/11/07 02:10:42
@@ -0,0 +1,5 @@
+2000-11-07 Martin Buchholz <martin(a)xemacs.org>
+
+ * process.c (Fprocess_status): Revert to previous behavior:
+ (process-status "nosuchprocess") ==> nil
+
Index: src/process.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/process.c,v
retrieving revision 1.39.2.18
diff -u -w -r1.39.2.18 process.c
--- src/process.c 2000/11/06 05:43:18 1.39.2.18
+++ src/process.c 2000/11/07 02:10:48
@@ -1505,6 +1505,9 @@
{
Lisp_Object status_symbol;
+ if (STRINGP (process))
+ process = Fget_process (process);
+ else
process = get_process (process);
if (NILP (process))