emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#25522: closed (26.0.50; (hl-line-maybe-unhighlight


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#25522: closed (26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted buffer"))
Date: Sat, 28 Jan 2017 20:20:02 +0000

Your message dated Sat, 28 Jan 2017 20:52:56 +0100
with message-id <address@hidden>
and subject line Re: bug#25522: 26.0.50; (hl-line-maybe-unhighlight): (error 
"Selecting deleted buffer")
has caused the debbugs.gnu.org bug report #25522,
regarding 26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted 
buffer")
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
25522: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25522
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted buffer") Date: Wed, 25 Jan 2017 00:26:39 +0100
Hi,

this is on master.  When exiting Gnus, I always get

  Error in post-command-hook (hl-line-maybe-unhighlight): (error "Selecting 
deleted buffer")

Seems that the new definition of `hl-line-maybe-unhighlight' in commit

  16be3e9054 hl-line.el: Fix flickering of highlighted line (bug#23510)

(by Stephen Berman whom I CC'd)

should test whether the `hl-line-overlay-buffer' is alive before trying
to switch to it?

Please tell me if you need a recipe.


Thanks,

Michael.





In GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.6)
 of 2017-01-24 built on drachen
Repository revision: 201dfe311868932d10da146808fcdd681948ba53
Windowing system distributor 'The X.Org Foundation', version 11.0.11900000
System Description:     Debian GNU/Linux 9.0 (stretch)




--- End Message ---
--- Begin Message --- Subject: Re: bug#25522: 26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted buffer") Date: Sat, 28 Jan 2017 20:52:56 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
On Fri, 27 Jan 2017 10:29:07 +0100 Michael Heerdegen <address@hidden> wrote:

> Stephen Berman <address@hidden> writes:
>
>> I think I found out what triggers the error: when you kill a buffer in
>> whose mode hl-line-mode is enabled and the mode of the next (now
>> current) buffer does not have hl-line-mode enabled, and then you change
>> (or Emacs changes) to another buffer in whose mode hl-line-mode is
>> enabled -- that raises the error.  Can you confirm this?
>
> Could be.  In my posted recipes, when I turn off hl-line-mode in the
> buffer I end up in, there is indeed no error.  An experiment with three
> buffers as you described and switching manually to the third also
> confirms your assumption.
>
>> Just out of curiosity, because I think the above fix is good enough
>> and it's simple, so unless someone sees a problem with it, I'll commit
>> it to master.
>
> Yes, it's obvious that it isn't harmful.
>
>
> Thanks,
>
> Michael

Pushed as commit d12e1dd and closing the bug.

Steve Berman


--- End Message ---

reply via email to

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