From 4940e0f9111731d8917bd98f885c34291cea04eb Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Tue, 22 Nov 2016 15:51:57 +0900 Subject: [PATCH] Buffer-menu-no-header: Detect a fake header * lisp/buff-menu.el (Buffer-menu-no-header): Use 'tabulated-list-header-overlay-p' (Bug#24855). --- lisp/buff-menu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index f34c814feab..e2aa2da0388 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el @@ -344,7 +344,7 @@ is nil or omitted, and signal an error otherwise." (defun Buffer-menu-no-header () (beginning-of-line) (if (or Buffer-menu-use-header-line - (not (eq (char-after) ?C))) + (not (tabulated-list-header-overlay-p (point)))) t (ding) (forward-line 1) -- 2.39.5