From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#24745: 25.1.50; whitespace.el: fix beginning/end of buffer checks Date: Fri, 21 Oct 2016 15:52:52 +0100 Message-ID: References: <87pomv6w1h.fsf@sc3d.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140298858033e053f6132ed X-Trace: blaine.gmane.org 1477061608 21863 195.159.176.226 (21 Oct 2016 14:53:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2016 14:53:28 +0000 (UTC) Cc: 24745@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 21 16:53:23 2016 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 1bxbC8-0004Ka-Rr for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2016 16:53:17 +0200 Original-Received: from localhost ([::1]:32867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxbCB-0003FL-66 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2016 10:53:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxbBy-0003CJ-4s for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:53:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxbBv-00047c-1u for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:53:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bxbBu-00047C-S7 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bxbBu-0005jO-LR for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2016 10:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2016 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24745 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24745-submit@debbugs.gnu.org id=B24745.147706158022016 (code B ref 24745); Fri, 21 Oct 2016 14:53:02 +0000 Original-Received: (at 24745) by debbugs.gnu.org; 21 Oct 2016 14:53:00 +0000 Original-Received: from localhost ([127.0.0.1]:45021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxbBs-0005j1-Jy for submit@debbugs.gnu.org; Fri, 21 Oct 2016 10:53:00 -0400 Original-Received: from mail-lf0-f42.google.com ([209.85.215.42]:36693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxbBq-0005ip-Hk for 24745@debbugs.gnu.org; Fri, 21 Oct 2016 10:52:59 -0400 Original-Received: by mail-lf0-f42.google.com with SMTP id b75so146834155lfg.3 for <24745@debbugs.gnu.org>; Fri, 21 Oct 2016 07:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=szVUlTUreACZGO6txjYTNyzlSVVOC6SiW+ixbY39U1g=; b=hibFnETgKVOwWKQ8WVWTEV7OXih5KGrKPgwyA/dYOnGnbvboAjTlW1FWF7avx0vjdc 5KIX6k82mvOVC0hswGhsL9ypL0L8V+VzuhtlTCHqbSE0RpstgivTCFwhoQEfW6Me66yJ FfRZEH4ZFmGgdf+yKqu0WES8xRWZfgA1qJkXY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=szVUlTUreACZGO6txjYTNyzlSVVOC6SiW+ixbY39U1g=; b=jLwtxs0AJ6NcIPXivoAsc0zJ5uOfrk3o71n6TQbXd7G3T+uo7Ufz2ABC/kEhSMp0vR 5UIcT93E3vwUqatsYKJH14Ua92mpI8MGeDwRUxQEnO7tgex9COziX6Nq46LUTb2QNqP/ 872Dob8KhUr4APbz6aPBER4tuHKpyLL+awP9tcsAMhhYXvoZdDlKRq29bkdYwqM4yJ0s ijTh3v2opJt0Q8fGN39D9MTl2GNhjZBo6EAW6b2ySaPZcHBtmttGvAbjlXYcTg+wn4+C oHV2zeZmYj0AJ92InEZWmZ/oqcwO2HiG70Ii+ZDuaJZx9X1G5rfn3Ekmv2ei0tklfKE6 tfqQ== X-Gm-Message-State: ABUngvep73NvtM4QHggulFfawqQa1Stcyf65wyDh/NsZlizjxftwYoNRb24tdJZfhXpz1zJnnMtRPU+Vbgpyur4q X-Received: by 10.25.166.145 with SMTP id p139mr871239lfe.132.1477061572550; Fri, 21 Oct 2016 07:52:52 -0700 (PDT) Original-Received: by 10.25.158.206 with HTTP; Fri, 21 Oct 2016 07:52:52 -0700 (PDT) In-Reply-To: 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:124774 Archived-At: --001a1140298858033e053f6132ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 21 October 2016 at 15:45, Dmitry Gutov wrote: > On 21.10.2016 17:42, Reuben Thomas wrote: > > =E2=80=8BThe problem is that whitespace-report-region does not apply the = tests >> whitespace-empty-at-{bob,eob}-regexp specifically to the start and end >> of the buffer. >> > > I get that from the patch, but how do I reproduce this, step by step? I > tried earlier, and failed. > emacs -Q Open a new buffer Type: SPC foo Then, whitespace-report will show an X in the second column (problems detected) for "Empty lines at end of buffer". --=20 http://rrt.sc3d.org --001a1140298858033e053f6132ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On = 21 October 2016 at 15:45, Dmitry Gutov <dgutov@yandex.ru> wro= te:
On 21.10.2016 17:42, Reuben Thomas = wrote:

=E2=80=8BThe problem is that whitespace-report-region does not apply the te= sts
whitespace-empty-at-{bob,eob}-regexp specifically to the start and end=
of the buffer.

I get that from the patch, but how do I reproduce this, step by step? I tri= ed earlier, and failed.

emacs -Q
Open a new bu= ffer

=
Type: SPC foo
<= div class=3D"gmail_default" style=3D"font-size:small">
Then, whitespace-report will s= how an X in the second column (problems detected) for "Empty lines at = end of buffer".

--
--001a1140298858033e053f6132ed--