]> git.eshelyaron.com Git - emacs.git/commitdiff
hl-line.el: Don't try to operate on a killed buffer
authorStephen Berman <stephen.berman@gmx.net>
Sat, 28 Jan 2017 19:49:19 +0000 (20:49 +0100)
committerStephen Berman <stephen.berman@gmx.net>
Sat, 28 Jan 2017 19:49:19 +0000 (20:49 +0100)
* lisp/hl-line.el (hl-line-maybe-unhighlight): Examine only
live buffers (bug#25522).

lisp/hl-line.el

index 4cf0573089f72f4b62e115d80a02142b3e35705a..38fe683785ab97173a278f03dfc062a3bd766476 100644 (file)
@@ -189,7 +189,8 @@ Specifically, when `hl-line-sticky-flag' is nil deactivate all
 such overlays in all buffers except the current one."
   (let ((hlob hl-line-overlay-buffer)
         (curbuf (current-buffer)))
-    (when (and (not hl-line-sticky-flag)
+    (when (and (buffer-live-p hlob)
+               (not hl-line-sticky-flag)
                (not (eq curbuf hlob))
                (not (minibufferp)))
       (with-current-buffer hlob