From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jgombos Newsgroups: gmane.emacs.help Subject: Preserving trailing spaces Date: Mon, 16 Apr 2007 20:41:47 -0700 (PDT) Message-ID: <10028734.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176801076 4960 80.91.229.12 (17 Apr 2007 09:11:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2007 09:11:16 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 11:11:10 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HdjiQ-0002U8-Aa for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Apr 2007 11:11:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hdjn7-0003xR-MZ for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Apr 2007 05:16:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HdeeP-000120-0z for help-gnu-emacs@gnu.org; Mon, 16 Apr 2007 23:46:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HdeeN-00011O-Nk for Help-gnu-emacs@gnu.org; Mon, 16 Apr 2007 23:46:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HdeeN-00011J-L3 for Help-gnu-emacs@gnu.org; Mon, 16 Apr 2007 23:46:39 -0400 Original-Received: from www.nabble.com ([72.21.53.35] helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HdeZg-00018V-Vh for Help-gnu-emacs@gnu.org; Mon, 16 Apr 2007 23:41:49 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HdeZf-0003D6-Td for Help-gnu-emacs@gnu.org; Mon, 16 Apr 2007 20:41:47 -0700 X-Nabble-From: nabble.forum.jog@spamgourmet.com X-detected-kernel: Linux 2.4-2.6 X-Mailman-Approved-At: Tue, 17 Apr 2007 05:15:49 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42747 Archived-At: I know it's a strange request to want to preserve trailing spaces; most folks want to nuke them. I'm working on a project where trailing spaces actually have meaning (it's how the developer prevents the automated semantecize tool from concatenating a long line of code that's intended to span multiple lines for readability). They have (probably inadvertently) installed Apex Emacs (aka aemacs), which is essentially plain old emacs 20.7.1 with Rational's Apex functionality integrated into the menu. I'm glad they provided it, but I'm the only emacs user on the team, as everyone else is using the Rational's proprietary and very basic editor. So to get to the issue, emacs wipes out the trailing whitespace on every file I make a change to, and the semantizer rearranges code that I didn't touch, adding substantial noise to the diffs - which could frustrate reviewers. How do I prevent emacs from nuking the trailing whitespace? Everything I've read indicates that emacs automatically preserves whitespace, and that it must be proactively configured to delete trailing whitespace. My .emacs file is clean. So somewhere in this aemacs installation, there must be a hook or something that I need to override. How would I discover where that's happening? Is it the lisp code for Ada-mode? -- View this message in context: http://www.nabble.com/Preserving-trailing-spaces-tf3588636.html#a10028734 Sent from the Emacs - Help mailing list archive at Nabble.com.