+2013-11-23 Glenn Morris <rgm@gnu.org>
+
+ * process.c (get_process): Explicit error for dead buffers.
+
2013-11-23 Andreas Schwab <schwab@linux-m68k.org>
* process.c (get_process): Check that OBJ is a live buffer. (Bug#15923)
/* Asynchronous subprocess control for GNU Emacs.
-Copyright (C) 1985-1988, 1993-1996, 1998-1999, 2001-2013 Free Software
-Foundation, Inc.
+Copyright (C) 1985-1988, 1993-1996, 1998-1999, 2001-2013
+ Free Software Foundation, Inc.
This file is part of GNU Emacs.
else
obj = name;
- /* Now obj should be either a (live) buffer object or a process object. */
- if (BUFFERP (obj) && !NILP (BVAR (XBUFFER (obj), name)))
+ /* Now obj should be either a buffer object or a process object. */
+ if (BUFFERP (obj))
{
+ if (NILP (BVAR (XBUFFER (obj), name)))
+ error ("Attempt to get process for a dead buffer");
proc = Fget_buffer_process (obj);
if (NILP (proc))
- error ("Buffer %s has no process", SDATA (BVAR (XBUFFER (obj), name)));
+ error ("Buffer %s has no process", SDATA (BVAR (XBUFFER (obj), name)));
}
else
{