From: Stephen Berman <stephen.berman@gmx.net>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 25522@debbugs.gnu.org
Subject: bug#25522: 26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted buffer")
Date: Thu, 26 Jan 2017 10:54:47 +0100 [thread overview]
Message-ID: <8737g6jgd4.fsf@gmx.net> (raw)
In-Reply-To: <8737g6inew.fsf@web.de> (Michael Heerdegen's message of "Thu, 26 Jan 2017 03:07:51 +0100")
On Thu, 26 Jan 2017 03:07:51 +0100 Michael Heerdegen <michael_heerdegen@web.de> wrote:
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
>> Michael Heerdegen <michael_heerdegen@web.de> writes:
>>
>> > (setq-default hl-line-sticky-flag nil)
>>
>> Removing that from my init file seems to fix the issue. Maybe we are
>> lucky and this was already the missing piece.
>
> I just got the same error message after hitting U x in M-x
> list-packages. Here is an excerpt from `interaction-log':
Is this after removing the above sexp? Did you have hl-line-mode
enabled in package-menu-mode, and if so, how? I added this:
(add-hook 'package-menu-mode-hook #'hl-line-mode)
to ~/.emacs and did `I x' in package-menu-mode (I didn't have any
package to update so I just installed a new one), but didn't get the
error (even with the above setq-default). Anyway, your suggestion to
check hl-line-overlay-buffer appears to eliminate the error when exiting
Gnus, so does the following patch also fix the other error you saw?
Steve Berman
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 @@ hl-line-maybe-unhighlight
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
next prev parent reply other threads:[~2017-01-26 9:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 23:26 bug#25522: 26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted buffer") Michael Heerdegen
2017-01-24 23:39 ` Michael Heerdegen
2017-01-25 12:16 ` Stephen Berman
2017-01-26 1:14 ` Michael Heerdegen
2017-01-26 1:21 ` Michael Heerdegen
2017-01-26 2:07 ` Michael Heerdegen
2017-01-26 9:54 ` Stephen Berman [this message]
2017-01-26 10:15 ` Michael Heerdegen
2017-01-26 19:45 ` Stephen Berman
2017-01-27 9:29 ` Michael Heerdegen
2017-01-28 19:52 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737g6jgd4.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=25522@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).