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 10:54:47 +0100 Message-ID: <8737g6jgd4.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485425043 25854 195.159.176.226 (26 Jan 2017 10:04:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 10:04:03 +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 11:03:59 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 1cWguC-0005UH-3V for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 11:03:48 +0100 Original-Received: from localhost ([::1]:37189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWguH-0002CT-Hr for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 05:03:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWgll-0003A9-20 for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 04:55:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWgli-0004ip-1d for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 04:55:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWglh-0004il-VP for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 04:55:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWglh-00071s-PJ for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 04:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Jan 2017 09:55:01 +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.148542449627007 (code B ref 25522); Thu, 26 Jan 2017 09:55:01 +0000 Original-Received: (at 25522) by debbugs.gnu.org; 26 Jan 2017 09:54:56 +0000 Original-Received: from localhost ([127.0.0.1]:44170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWglc-00071W-Hs for submit@debbugs.gnu.org; Thu, 26 Jan 2017 04:54:56 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:52054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWgla-00071H-MB for 25522@debbugs.gnu.org; Thu, 26 Jan 2017 04:54:55 -0500 Original-Received: from rosalinde ([62.214.224.125]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MDV5t-1ciZG909Gv-00Gp9W; Thu, 26 Jan 2017 10:54:48 +0100 In-Reply-To: <8737g6inew.fsf@web.de> (Michael Heerdegen's message of "Thu, 26 Jan 2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cAUe+1TbzN5e1yO2kZSxu8SzJHJ/n6+d7B9B5l 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:128537 Archived-At: On Thu, 26 Jan 2017 03:07:51 +0100 Michael Heerdegen wrote: > Michael Heerdegen writes: > >> Michael Heerdegen 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