emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-clojure f7b6a8e 296/313: Don't try to select a dead bu


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure f7b6a8e 296/313: Don't try to select a dead buffer
Date: Wed, 11 Aug 2021 10:00:37 -0400 (EDT)

branch: elpa/inf-clojure
commit f7b6a8e14ea83775b07cc64366b2ffd0fd921b28
Author: dan sutton <dan@dpsutton.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>

    Don't try to select a dead buffer
---
 inf-clojure.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/inf-clojure.el b/inf-clojure.el
index ac7951e..062f925 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -277,7 +277,8 @@ mode.  Default is whitespace followed by 0 or 1 
single-letter colon-keyword
 (defun inf-clojure--modeline-info ()
   "Return modeline info.
 Either \"not connected\" or \"repl-type: buffer-name\""
-  (if (bufferp inf-clojure-buffer)
+  (if (and (bufferp inf-clojure-buffer)
+           (buffer-live-p inf-clojure-buffer))
       (with-current-buffer inf-clojure-buffer
         (format "%s: %s" inf-clojure-repl-type (buffer-name (current-buffer))))
     "not connected"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]