From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Arsenault Newsgroups: gmane.emacs.bugs Subject: bug#11879: 24.1.50; delete-trailing-whitespace now removes empty lines at end of file Date: Sun, 8 Jul 2012 00:35:52 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341764342 16933 80.91.229.3 (8 Jul 2012 16:19:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 16:19:02 +0000 (UTC) To: 11879@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 18:19:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SnuCJ-00047M-UB for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 18:19:00 +0200 Original-Received: from localhost ([::1]:49002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnuCI-0007lX-Tc for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 12:18:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnuCE-0007Yb-5s for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:18:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnuCC-0004fH-8Q for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:18:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnuCC-0004fB-2q for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:18:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SnuHB-0004vS-Pd for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Arsenault Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jul 2012 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11879 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.134176459918878 (code B ref -1); Sun, 08 Jul 2012 16:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 16:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:56889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnuGV-0004uR-0C for submit@debbugs.gnu.org; Sun, 08 Jul 2012 12:23:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59954) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Snm7F-0006gn-OP for submit@debbugs.gnu.org; Sun, 08 Jul 2012 03:41:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Snm2F-0007pG-Ol for submit@debbugs.gnu.org; Sun, 08 Jul 2012 03:36:05 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:42000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snm2F-0007pC-In for submit@debbugs.gnu.org; Sun, 08 Jul 2012 03:36:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snm2D-0002KC-Lq for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 03:36:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Snm2B-0007ob-5Z for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 03:36:01 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:57466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snm2A-0007nt-Q2 for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 03:35:59 -0400 Original-Received: by pbbrp2 with SMTP id rp2so19564159pbb.0 for ; Sun, 08 Jul 2012 00:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject:date :message-id:to:mime-version:x-mailer; bh=JGK9JlvzbJATuU7IMzjujFh9rH+L64IA/9cJAMPTFQk=; b=TrkprPCGUUPq3VwkkIoQy19JtJBHYaUfbAt9hLHbZCt28hLcn14dFA1NL22oiAq8R3 dNfgA/3zpfEf2uZnMTw6+mIgmliLsPfNZAc80WZmMkN6Q2JUEyJFw8DtRIeJXFPGLavy q8+C4cYqGmEorQWYihV/ejOyX9YD7LMPnQ8jNYqXrUjSlwvWVyUc3pDGg7bN7k+o6amK 5bNGwMRUXE5gLnES2l5LYJfIn6DFM1pdF2eezyLiNhPAf2tmdmstbaC4Gtybct7+I04p O5umpx0/Vm4/zlMQDyHMYLBqwwk8VvtDAOKFEXniegs7Z79cU/XoYqUe4Pg45cdVIzYs FzFw== Original-Received: by 10.68.136.229 with SMTP id qd5mr50597155pbb.2.1341732954331; Sun, 08 Jul 2012 00:35:54 -0700 (PDT) Original-Received: from [192.168.1.13] (c-76-102-117-203.hsd1.ca.comcast.net. [76.102.117.203]) by mx.google.com with ESMTPS id ms1sm25287009pbb.63.2012.07.08.00.35.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jul 2012 00:35:53 -0700 (PDT) X-Mailer: Apple Mail (2.1278) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 08 Jul 2012 12:23:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61726 Archived-At: This is a regression from emacs 23. In emacs 24, delete-trailing-whitespace remove blank lines at the end of = a buffer. Previously this function would remove trailing whitespace on a = line, but not change the number of lines. Steps to reproduce:=20 1. Open a new buffer 2. Enter a few lines of text 3. Enter a few blank lines after the text 4. Run M-x delete-trailing-whitespace Expected behavior:=20 Number of lines to be unchanged. Blank lines at end of text should be = there which was the behavior in emacs 23 and previous versions. Observed behavior: Blank lines after the text are removed. If the buffer is only blank = lines, the first one survives the delete-trailing-whitespace. The report may appear in public locations. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Aquamacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 24.1.50.3 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2012-07-07 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--with-ns' '--without-x' 'CFLAGS=3D-arch i386 -g -O0 ' 'LDFLAGS=3D-arch i386 -g -O0 '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t global-linum-mode: t linum-mode: t savehist-mode: t smart-frame-positioning-mode: t aquamacs-autoface-mode: t recentf-mode: t osx-key-mode: t tabbar-mwheel-mode: t tabbar-mode: t show-paren-mode: t cua-mode: t tooltip-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader dired-aux cua-rect rect help-mode novice js json moz imenu dired etags multi-isearch desktop vc-git network-stream starttls url-http tls url-auth mail-parse rfc2231 url-gw url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio gnus-util password-cache url-vars mailcap windmove protobuf-mode cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cmake-mode flymake camelCase gtk2hs haskell-ghci inf-haskell haskell-mode derived pp compile shell pcomplete comint ring goto-last-change cc-styles cc-align cc-engine cc-vars cc-defs edmacro kmacro ansi-color linum auto-complete-clang load-emacs-plugins aquamacs-mode-defaults auctex-config server preview-latex tex-site auto-loads aquamacs-aux savehist mouse-sel one-buffer-one-frame smart-frame-positioning drews_init color-theme-autoloads view saveplace visual-line aquamacs-bug aquamacs-autoface-mode aquamacs-editing sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils recentf tree-widget cus-edit osxkeys emulate-mac-keyboard-mode frame-cmds strings misc-fns thingatpt+ thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cus-start cus-load tabbar warnings load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility matlab-load smart-dnd revive filladapt aquamacs-redo check-for-updates aquamacs-menu osx_defaults aquamacs aquamacs-tool-bar time-date mac-extra-functions aquamacs-tools aquamacs-macros parse-time timezone paren delsel cua-base wid-edit advice advice-preload byte-opt bytecomp byte-compile debug help-fns macroexp cconv image-file disp-table easymenu easy-mmode tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)