From unknown Tue Jun 17 01:43:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23740: 24.5; whitespace-report: mistakenly reports empty lines Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jun 2016 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23740 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 23740@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146557457916572 (code B ref -1); Fri, 10 Jun 2016 16:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jun 2016 16:02:59 +0000 Received: from localhost ([127.0.0.1]:36164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBOtf-0004JD-0c for submit@debbugs.gnu.org; Fri, 10 Jun 2016 12:02:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bBOtd-0004J0-Jp for submit@debbugs.gnu.org; Fri, 10 Jun 2016 12:02:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBOtU-00016r-GX for submit@debbugs.gnu.org; Fri, 10 Jun 2016 12:02:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBOtU-00016j-DF for submit@debbugs.gnu.org; Fri, 10 Jun 2016 12:02:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBOtR-0004f8-OL for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 12:02:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBOtN-00015J-Ee for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 12:02:44 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:35325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBOtN-00014u-6d for bug-gnu-emacs@gnu.org; Fri, 10 Jun 2016 12:02:41 -0400 Received: by mail-wm0-x233.google.com with SMTP id v199so154735389wmv.0 for ; Fri, 10 Jun 2016 09:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=EfVzdV7kh95daEjBFJ7WrElxgBjrPbv3ZWXfSfs0nQA=; b=OfmeRFGY11IcfPrp0JRxXLIuydvMqAr1QAYMTWds+omz8MrD9L0WBjddDtJcUr00FC hjUIcuE+IXvYhKHgMxlR4uTogSfk/sBeJ+xxQX3DG/bcshgZwkg+zVzYNHnClhAdDrJH xPbs24FUcuv7SOF4oFtU0wMgyNYb9XQ9FgEH3Z5yIknUJt/Bviw1IQn92j/pDJBKle7h Mvzf2jw/r3RwbwlL+1Mt0/cLhgwqzy1687cMTk2VFeh0p/Jb0Vyb3sy32lqmwT4fq4X8 GZqANzJUZYE6A+o01mc2+3wiqbp0D/bmJL4A3GTqsDkWX2JepflFoeLQ9m2spFf2W1z2 D8nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=EfVzdV7kh95daEjBFJ7WrElxgBjrPbv3ZWXfSfs0nQA=; b=ew3ZNTGkip8R8YfXpy9kVQJPYT5koXeNlkkiRKBbz7qMjSiBOpXTAJ8Bra8vobA5MJ 0n6fC3Wyz09ulnjHzrX+l02wu03l2tErhDoYS1WJqH5lMU9Sx+SER2CSU2yUHGWEjCs+ muQuRLZzseQJgw6wNhVM5fPx/WJnwZCfI2bBfkaxigmczezaXWZxA3TLeVU3EUCr8+8S SHdQLXN759m/4GY2lllDUWNlHl8dO151/oaufbHOjyMxOPjEXD03jnXMQz+efg/0rjst NPoRlNyGgGWO1o9Pi6Z2cqubPBbXCccQZLcD05VjGnZtZrW5nqs5QKalc7GsptpnnFoN L+uQ== X-Gm-Message-State: ALyK8tJvo2RHNAxInmAlzaziE596UEFNT5jLi7yXoKlrg4fAgkTyz2M6R40QBkaSqH/J+Q== X-Received: by 10.194.114.72 with SMTP id je8mr2813489wjb.88.1465574560123; Fri, 10 Jun 2016 09:02:40 -0700 (PDT) Received: from gmail.com (ANantes-651-1-53-70.w2-0.abo.wanadoo.fr. [2.0.4.70]) by smtp.gmail.com with ESMTPSA id v70sm6229230wmf.18.2016.06.10.09.02.39 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2016 09:02:39 -0700 (PDT) Date: Fri, 10 Jun 2016 18:03:11 +0200 From: Pierre Neidhardt Message-ID: <20160610160311.GA19375@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Info: Simplicity is the ultimate sophistication. User-Agent: Mutt/1.5.24 (2015-08-30) 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --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. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6) of 2016-06-04 on juergen Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 72514 4769) (symbols 48 17869 0) (miscs 40 37 113) (strings 32 9538 4257) (string-bytes 1 256167) (vectors 16 9025) (vector-slots 8 386199 15246) (floats 8 63 82) (intervals 56 189 4) (buffers 960 12) (heap 1024 35192 1101)) -- Pierre Neidhardt From unknown Tue Jun 17 01:43:49 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23740: 24.5; whitespace-report: mistakenly reports empty lines Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2019 12:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23740 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pierre Neidhardt Cc: 23740@debbugs.gnu.org Received: via spool by 23740-submit@debbugs.gnu.org id=B23740.156431524423983 (code B ref 23740); Sun, 28 Jul 2019 12:01:02 +0000 Received: (at 23740) by debbugs.gnu.org; 28 Jul 2019 12:00:44 +0000 Received: from localhost ([127.0.0.1]:45856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrhr1-0006El-RP for submit@debbugs.gnu.org; Sun, 28 Jul 2019 08:00:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrhqz-0006Ea-HK for 23740@debbugs.gnu.org; Sun, 28 Jul 2019 08:00:42 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrhqv-0003jc-Bc; Sun, 28 Jul 2019 14:00:39 +0200 From: Lars Ingebrigtsen References: <20160610160311.GA19375@gmail.com> Date: Sun, 28 Jul 2019 14:00:36 +0200 In-Reply-To: <20160610160311.GA19375@gmail.com> (Pierre Neidhardt's message of "Fri, 10 Jun 2016 18:03:11 +0200") Message-ID: <874l36cqsb.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Pierre Neidhardt 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. > > `whitespa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pierre Neidhardt 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 28 08:00:48 2019 Received: (at control) by debbugs.gnu.org; 28 Jul 2019 12:00:48 +0000 Received: from localhost ([127.0.0.1]:45859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrhr6-0006F5-2o for submit@debbugs.gnu.org; Sun, 28 Jul 2019 08:00:48 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrhr4-0006Ev-M2 for control@debbugs.gnu.org; Sun, 28 Jul 2019 08:00:46 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrhr2-0003jj-2m for control@debbugs.gnu.org; Sun, 28 Jul 2019 14:00:46 +0200 Date: Sun, 28 Jul 2019 14:00:43 +0200 Message-Id: <8736iqcqs4.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #23740 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 23740 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 23740 quit