emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master d12e1dd: hl-line.el: Don't try to operate on a kill


From: Stephen Berman
Subject: [Emacs-diffs] master d12e1dd: hl-line.el: Don't try to operate on a killed buffer
Date: Sat, 28 Jan 2017 19:49:33 +0000 (UTC)

branch: master
commit d12e1ddf42cddcac56f98c5b3a65f5219d2d5968
Author: Stephen Berman <address@hidden>
Commit: Stephen Berman <address@hidden>

    hl-line.el: Don't try to operate on a killed buffer
    
    * lisp/hl-line.el (hl-line-maybe-unhighlight): Examine only
    live buffers (bug#25522).
---
 lisp/hl-line.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/hl-line.el b/lisp/hl-line.el
index 4cf0573..38fe683 100644
--- a/lisp/hl-line.el
+++ b/lisp/hl-line.el
@@ -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



reply via email to

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