Buffer-menu-no-header: Detect a fake header
authorTino Calancha <tino.calancha@gmail.com>
Tue, 22 Nov 2016 06:51:57 +0000 (15:51 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Tue, 22 Nov 2016 06:51:57 +0000 (15:51 +0900)
* lisp/buff-menu.el (Buffer-menu-no-header): Use
'tabulated-list-header-overlay-p' (Bug#24855).

lisp/buff-menu.el

index f34c814feab77ea017408e32997fe4e0298cd376..e2aa2da0388926f6db55c1b3638a601f8f8765e7 100644 (file)
@@ -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)