From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#25522: 26.0.50; (hl-line-maybe-unhighlight): (error "Selecting deleted buffer") Date: Thu, 26 Jan 2017 20:45:11 +0100 Message-ID: <87mvedip14.fsf@gmx.net> References: <8737g8jaz4.fsf@web.de> <87inp4xc1q.fsf@web.de> <87pojbcp2a.fsf@gmx.net> <87fuk6wrjo.fsf@web.de> <87bmuuwr8m.fsf@web.de> <8737g6inew.fsf@web.de> <8737g6jgd4.fsf@gmx.net> <8760l29lfn.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485460007 21775 195.159.176.226 (26 Jan 2017 19:46:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 19:46:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25522@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 20:46:36 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpzu-0003LI-Pi for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 20:46:18 +0100 Original-Received: from localhost ([::1]:40806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpzy-0000Pq-J6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 14:46:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpzk-0000Nz-0h for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:46:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWpzf-0002i9-5f for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:46:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWpzf-0002i5-1W for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWpze-0006Bl-Rg for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:46:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <8737g8jaz4.fsf@web.de> Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2017 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25522 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25522-submit@debbugs.gnu.org id=B25522.148545996023764 (code B ref 25522); Thu, 26 Jan 2017 19:46:02 +0000 Original-Received: (at 25522) by debbugs.gnu.org; 26 Jan 2017 19:46:00 +0000 Original-Received: from localhost ([127.0.0.1]:46073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpzc-0006BE-L4 for submit@debbugs.gnu.org; Thu, 26 Jan 2017 14:46:00 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:55885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpzZ-0006Aw-Rr for 25522@debbugs.gnu.org; Thu, 26 Jan 2017 14:45:59 -0500 Original-Received: from rosalinde ([62.214.224.125]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LrevR-1cNKLP2Pu9-013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MOLbbQqPs+BHVVbzCAutZZATK/CiaPjPkMGRBwWxHt2fDTgW8Oc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128590 Archived-At: On Thu, 26 Jan 2017 11:15:24 +0100 Michael Heerdegen wrote: > Stephen Berman writes: > >> > I just got the same error message after hitting U x in M-x >> > list-packages. >> >> Is this after removing the above sexp? > > No, still with hl-line-sticky-flag -> nil. > > >> 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) > > Yes, that's exactly what I use - sorry for my terseness. > > >> - (when (and (not hl-line-sticky-flag) >> + (when (and (buffer-live-p hlob) >> + (not hl-line-sticky-flag) > > Yeah, that seems to fix the problem (I had already tried that ;-)). I > still wonder why you don't see it...but I'm not sure if it's worth to > investigate (because this will probably take hours). 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? 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. Steve Berman