unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: 23740@debbugs.gnu.org
Subject: bug#23740: 24.5; whitespace-report: mistakenly reports empty lines
Date: Sun, 28 Jul 2019 14:00:36 +0200	[thread overview]
Message-ID: <874l36cqsb.fsf@mouse.gnus.org> (raw)
In-Reply-To: <20160610160311.GA19375@gmail.com> (Pierre Neidhardt's message of "Fri, 10 Jun 2016 18:03:11 +0200")

Pierre Neidhardt <ambrevar@gmail.com> writes:

> --text follows this line--
>
> `whitespace-report' will mistakenly always report "empty lines at beginning and
> end of buffer" as long as there is at least one empty line in the file.
>
> `whitespace-cleanup' works properly however.
>
> Running `emacs -Q`:
>
> 	1
> 	RET
> 	RET
> 	2
> 	M-x whitespace-report
>
> This will make the issue apparent.

(I'm going through old Emacs bug reports that haven't received any
response.)

I get the following report in Emacs 27 in the test case, which says that
there's no empty spaces at the start or end of the buffer.  So I'm
guessing this has been fixed in the intervening years, and am closing
this bug report.  If you're still seeing this, please reopen.

 Whitespace Report

 Current Setting                       Whitespace Problem

 empty                    [X]     [ ]  empty lines at beginning of buffer
 empty                    [X]     [ ]  empty lines at end of buffer
 trailing                 [X]     [ ]  SPACEs or TABs at end of line
 indentation              [X]     [ ]  >= `tab-width' SPACEs at beginning of line
 indentation::tab         [ ]     [ ]  >= `tab-width' SPACEs at beginning of line
 indentation::space       [ ]     [ ]  TABs at beginning of line
 space-before-tab         [X]     [ ]  SPACEs before TAB
 space-before-tab::tab    [ ]     [ ]  SPACEs before TAB: SPACEs
 space-before-tab::space  [ ]     [ ]  SPACEs before TAB: TABs
 space-after-tab          [X]     [ ]  >= `tab-width' SPACEs after TAB
 space-after-tab::tab     [ ]     [ ]  >= `tab-width' SPACEs after TAB: SPACEs
 space-after-tab::space   [ ]     [ ]  >= `tab-width' SPACEs after TAB: TABs


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2019-07-28 12:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 16:03 bug#23740: 24.5; whitespace-report: mistakenly reports empty lines Pierre Neidhardt
2019-07-28 12:00 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874l36cqsb.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=23740@debbugs.gnu.org \
    --cc=ambrevar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).