From: Andreas Schwab Date: Mon, 18 Nov 2013 23:55:05 +0000 (+0100) Subject: Fixes: debbugs:15923 X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~737^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22ed928d06f1bad227fd0a08e5fc3e6243ad820f;p=emacs.git Fixes: debbugs:15923 * process.c (get_process): Check that OBJ is a live buffer. --- diff --git a/src/ChangeLog b/src/ChangeLog index 28899150e96..b550549811b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-11-18 Andreas Schwab + + * process.c (get_process): Check that OBJ is a live buffer. + (Bug#15923) + 2013-07-15 Glenn Morris * image.c (Fimage_flush): Fix doc typo. diff --git a/src/process.c b/src/process.c index 2fb5b16a19f..69ec6bb1b20 100644 --- a/src/process.c +++ b/src/process.c @@ -775,9 +775,8 @@ get_process (register Lisp_Object name) 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))