From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Tino Calancha <tino.calancha@gmail.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#24855: 26.0.50;
	Buffer-menu-no-header fails if fake header starts with white space
Date: Wed, 2 Nov 2016 14:21:46 +0900 (JST)
Message-ID: <alpine.DEB.2.20.1611021421040.3905@calancha-pc>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=US-ASCII
X-Trace: blaine.gmane.org 1478064204 1715 195.159.176.226 (2 Nov 2016 05:23:24 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 2 Nov 2016 05:23:24 +0000 (UTC)
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
To: 24855@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 06:23:20 2016
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1c1o0y-0006qQ-Ew
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 06:23:08 +0100
Original-Received: from localhost ([::1]:52631 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1c1o11-0004R8-4r
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 01:23:11 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60872)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1c1o0v-0004Qq-Av
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:23:06 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1c1o0s-0002lc-7Y
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:23:05 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:52530)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1c1o0s-0002lI-4W
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:23:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1c1o0r-0006x0-UR
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:23:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Tino Calancha <tino.calancha@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 02 Nov 2016 05:23:01 +0000
Resent-Message-ID: <handler.24855.B.147806412326634@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 24855
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.147806412326634
	(code B ref -1); Wed, 02 Nov 2016 05:23:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 2 Nov 2016 05:22:03 +0000
Original-Received: from localhost ([127.0.0.1]:39696 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1c1nzu-0006vW-Rz
	for submit@debbugs.gnu.org; Wed, 02 Nov 2016 01:22:03 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:41313)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <tino.calancha@gmail.com>) id 1c1nzt-0006uy-4y
	for submit@debbugs.gnu.org; Wed, 02 Nov 2016 01:22:01 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tino.calancha@gmail.com>) id 1c1nzn-0001JY-6w
	for submit@debbugs.gnu.org; Wed, 02 Nov 2016 01:21:56 -0400
Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36119)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <tino.calancha@gmail.com>)
	id 1c1nzn-0001JU-3u
	for submit@debbugs.gnu.org; Wed, 02 Nov 2016 01:21:55 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60502)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tino.calancha@gmail.com>) id 1c1nzm-0004On-4b
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:21:54 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tino.calancha@gmail.com>) id 1c1nzj-0001IA-1d
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:21:54 -0400
Original-Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:33124)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <tino.calancha@gmail.com>)
	id 1c1nzi-0001Hy-RL
	for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 01:21:50 -0400
Original-Received: by mail-pf0-x243.google.com with SMTP id a136so677954pfa.0
	for <bug-gnu-emacs@gnu.org>; Tue, 01 Nov 2016 22:21:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; 
	h=from:date:to:subject:message-id:user-agent:mime-version;
	bh=SWI+/6NWc5CrfS9+DIjr5vG1zb52vro5YjIWm78gO7E=;
	b=pUfZBj6w4y7BeyzqCdiOIJfaEDThALsQz61duH6ZF0vD1xQBLZm1iDFCw4FXbja4Qu
	tVA71qy+EVeZiR7k0fIFtlIjZzj+oJx6NupuT8UjczuNUMKl5VSR0vX2oc92gRA8pOBH
	t/ZzvRc0lBjidSSvavnIiwzUIfe18k9Ih6+zy2/zNwIb8xaTU9MwdJ6K7GWEZk6AaJ9f
	Q+J2N7SRR8nP+oNEgJIXy3rnfpXYwGgREaME6HV8AwiyDSqDqj+XTraZZqFP8HPDJB7s
	BAXippgstfCPedobfVsFgiArcUpgBycgqix0+0YUOoUrBOPeVoN5uiXuORCEcoGwedXD
	EfCg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:from:date:to:subject:message-id:user-agent
	:mime-version;
	bh=SWI+/6NWc5CrfS9+DIjr5vG1zb52vro5YjIWm78gO7E=;
	b=dT1oPWvn9AQXzqPGEnyt8trmZJOcHgz9qnFgpf4vUQBGTaZaJpOtBOzqvDl2TuwMjJ
	NF1cgvU5y5jhg5SMH0yGZ0SUP7M3LQDfQSZV5B8spGawY4YguC3Nxubc79qL5cIUUPtQ
	xV6fGgwlR7AMboy1fhtG51ph+ed2L+gZ7hClGr0Eo8XAKip6JKjYqURvMdj06Y+YLQtI
	GQJ/fs8GakhspeJ/3RNR8ZY3yP9gylYr152mzAz7ddfylEme5kG+gkoXWIMO0DV/CiBe
	h+Dfdw5MYM6z7JsrbDPrpK16etkO4DKHxnS1BuoIAZvdLVChvPPig2NV3WS5H7w46vbc
	t3Yg==
X-Gm-Message-State: ABUngvdsXfyT6rsavGFMwI2VltKVTUcjtAiXQLHnK+FtdafXprUGypJTmY9mlTVxRURSdw==
X-Received: by 10.99.181.10 with SMTP id y10mr2816990pge.161.1478064109625;
	Tue, 01 Nov 2016 22:21:49 -0700 (PDT)
Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57])
	by smtp.gmail.com with ESMTPSA id yp3sm780326pac.22.2016.11.01.22.21.48
	for <bug-gnu-emacs@gnu.org>
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 01 Nov 2016 22:21:49 -0700 (PDT)
X-Google-Original-From: Tino Calancha <calancha@gmail.com>
X-X-Sender: calancha@calancha-pc
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
	<bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:125257
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/125257>


emacs -r -Q -eval "(setq Buffer-menu-use-header-line nil)"
C-x C-b C-x o
M-: (Buffer-menu-no-header) RET
=> t


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>From 7385a0952923cc3ec435fe9097cd5c81da4c59eb Mon Sep 17 00:00:00 2001
From: Tino Calancha <tino.calancha@gmail.com>
Date: Wed, 2 Nov 2016 14:14:58 +0900
Subject: [PATCH] Buffer-menu-no-header: Detect a fake header

* lisp/buff-menu.el (Buffer-menu-no-header): Match fake
headers starting with a white space (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 4742628..41bcfab 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -328,7 +328,7 @@ Buffer-menu-buffer
  (defun Buffer-menu-no-header ()
    (beginning-of-line)
    (if (or Buffer-menu-use-header-line
-	  (not (eq (char-after) ?C)))
+	  (not (looking-at-p "^ ?C")))
        t
      (ding)
      (forward-line 1)
-- 
2.10.1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
In GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.2)
  of 2016-11-02 built on calancha-pc
Repository revision: c3640fcc96ed80368209c73d7ac9a0f0d1833d93