From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Karpov Newsgroups: gmane.emacs.bugs Subject: bug#25157: 26.0.50; whitespace-cleanup does not remove single trailing empty line anymore Date: Sat, 10 Dec 2016 17:41:52 +0300 Message-ID: <8760mr26dr.fsf@openmailbox.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481380994 25342 195.159.176.226 (10 Dec 2016 14:43:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2016 14:43:14 +0000 (UTC) To: 25157@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 15:43:10 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 1cFirl-0005lg-IX for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 15:43:09 +0100 Original-Received: from localhost ([::1]:51977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFirp-00017w-NB for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 09:43:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFirj-00017r-K1 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:43:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFire-0007qb-PS for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:43:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFire-0007qU-M9 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cFire-0006ZF-GQ for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark Karpov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25157 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.148138093725173 (code B ref -1); Sat, 10 Dec 2016 14:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Dec 2016 14:42:17 +0000 Original-Received: from localhost ([127.0.0.1]:36679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiqv-0006Xx-0H for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:42:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFiqs-0006Xg-Ct for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:42:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFiqm-0007cq-14 for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:42:09 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59140) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cFiql-0007cm-U4 for submit@debbugs.gnu.org; Sat, 10 Dec 2016 09:42:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFiqk-00016R-7o for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:42:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFiqf-0007Xx-P2 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:42:06 -0500 Original-Received: from mail2.openmailbox.org ([62.4.1.33]:60612) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFiqf-0007XH-Ay for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 09:42:01 -0500 Original-Received: by mail2.openmailbox.org (Postfix, from userid 1001) id 114B7105A3E; Sat, 10 Dec 2016 15:41:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1481380919; bh=KhSFbTIs4yRqc2yJi9QOlqMnxA6Tn0+r7vfUQ01NU5c=; h=From:To:Subject:Date:From; b=DmjDX1zA/1r54Nhzgr9jAu7QoS8Z84NK+4qfK8ID8ffQCIZszp3KAs0CArP6HD1+6 BnGkcLmbXXacDJaOBkrZJK64Vb3J1VLRkADyQDoUxAC8LaKXDWZewSMFtZ6cBN0bVP FTeuNw0GYkW4rB8tMyfl3T2frp2b0uHcEPuQzCX4= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1481380914; bh=KhSFbTIs4yRqc2yJi9QOlqMnxA6Tn0+r7vfUQ01NU5c=; h=From:To:Subject:Date:From; b=zb9N/39/bh2NfDI+pq2mJmS2L4zlToBaB6WVJUTfuGyhwcYwu7IBYd/4G3/CLRy2d NKo1isxkWRA2rKyeCiAvRwG/sTI2s6SRVZ8h3E3G8t1bAwIGrOjrptCbRenpfKo23V k9YMz91XApXffjGSNndAyOGCZ4vXaY3BMrMid7gE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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" 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:126803 Archived-At: The =E2=80=98whitespace-cleanup=E2=80=99 command does not remove single tra= iling empty line anymore. To reproduce start emacs with -Q flag, open any file and a single empty training line, like this: --- start of file foo --- end of file Then call =E2=80=98whitespace-cleanup=E2=80=99. Expected result: --- start of file foo --- end of file Actual result (nothing happens): --- start of file foo --- end of file This bug does not manifest itself if there are more than one empty line, i.e.: --- start of file foo --- end of file (Executing =E2=80=98whitespace-cleanup=E2=80=99): --- start of file foo --- end of file The result is as expected. In GNU Emacs 26.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.4) of 2016-12-10 built on arch Repository revision: fc0fd24c105bde4c001ebebe4b8b7e1f96cd2871 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 Recent messages: Indentation setup for shell type bash next-line: End of buffer [5 times] Saving file /home/mark/.bash_profile... Wrote /home/mark/.bash_profile Saving file /home/mark/.bash_profile... Wrote /home/mark/.bash_profile Quit nil Saving file /home/mark/.bash_profile... Wrote /home/mark/.bash_profile Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: i=CE=BB Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t aggressive-indent-mode: t rainbow-delimiters-mode: t whitespace-mode: t flycheck-color-mode-line-mode: t yas-global-mode: t yas-minor-mode: t vimish-fold-global-mode: t vimish-fold-mode: t show-paren-mode: t rich-minority-mode: t minibuffer-electric-default-mode: t ivy-mode: t global-auto-revert-mode: t display-time-mode: t delete-selection-mode: t cyphejor-mode: t ace-popup-menu-mode: t smartparens-global-mode: t smartparens-mode: t flyspell-mode: t flyspell-lazy-mode: t mk-highlight-line-mode: t modalka-mode: t hl-todo-mode: t flycheck-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t auto-fill-mode: 1 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug counsel esh-util swiper sh-script smie executable colir haskell-doc inf-haskell haskell-decl-scan imenu shell pcomplete haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-repl haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-collapse haskell-navigate-imports haskell-compile haskell-process haskell-session url-util haskell-hoogle smartparens-haskell haskell-mode haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-compat haskell-complete-module haskell-ghc-support noutline outline flymake etags compile dabbrev haskell-customize vc-git diff-mode bookmark pp aggressive-indent easy-mmode rainbow-delimiters whitespace flycheck-haskell haskell-cabal haskell-utils flycheck-color-mode-line face-remap mk-visual smart-mode-line solarized-dark-theme solarized color mk-texinfo mk-tex mk-shakespeare mk-prolog mk-org mk-mustache mk-mu4e mk-markdown mk-man mk-magit mk-lisp mk-js mk-ibuffer mk-html mk-eshell mk-erc mk-elisp mk-dired mk-clojure kill-or-bury-alive mk-calendar mk-c mk-minor-modes common-lisp-snippets yasnippet whole-line-or-region vimish-fold paren rich-minority minibuf-eldef ivy ivy-overlay ffap autorevert filenotify time delsel cyphejor ace-popup-menu smartparens-config smartparens flyspell ispell flyspell-lazy mk-highlight-line mk-global modalka edmacro kmacro fix-input quail ace-link hl-todo xref project mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context mu4e-view cal-menu calendar cal-loaddefs thingatpt browse-url comint ansi-color mu4e-headers mu4e-compose mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-vars message puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta mk-python mk-haskell mk-utils avy-menu avy ring flycheck json map find-func rx subr-x misc server f dash s ucs-normalize finder-inf tex-site fix-word advice slime-autoloads info package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 470216 19037) (symbols 48 40810 0) (miscs 40 87 365) (strings 32 91124 7084) (string-bytes 1 2627337) (vectors 16 70269) (vector-slots 8 1777314 201698) (floats 8 654 304) (intervals 56 368 0) (buffers 976 16))