* process.c (get_process): Check that OBJ is a live buffer.
+2013-11-18 Andreas Schwab <schwab@linux-m68k.org>
+
+ * process.c (get_process): Check that OBJ is a live buffer.
+ (Bug#15923)
+
2013-07-15 Glenn Morris <rgm@gnu.org>
* image.c (Fimage_flush): Fix doc typo.
else
obj = name;
- /* Now obj should be either a buffer object or a process object.
- */
- if (BUFFERP (obj))
+ /* Now obj should be either a (live) buffer object or a process object. */
+ if (BUFFERP (obj) && !NILP (BVAR (XBUFFER (obj), name)))
{
proc = Fget_buffer_process (obj);
if (NILP (proc))