From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernardo Bacic Newsgroups: gmane.emacs.help Subject: Re: On Edit GNU Emacs 22.2.1 Eats My Blank Characters At The End Of Lines Date: Thu, 11 Sep 2008 21:00:42 +1000 Message-ID: <48C8FA5A.7030605@pobox.com> References: Reply-To: bernardo.bacic@pobox.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221131397 20665 80.91.229.12 (11 Sep 2008 11:09:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 11:09:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 13:10:52 2008 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 1Kdk4Z-0003Jw-Vf for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 13:10:52 +0200 Original-Received: from localhost ([127.0.0.1]:49441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdk3Z-0004gK-Sf for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 07:09:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdjyh-00088t-FM for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:04:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdjye-000863-5L for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:04:46 -0400 Original-Received: from [199.232.76.173] (port=57111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdjyd-00085i-Td for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:04:44 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:63835 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kdjyd-000380-GX for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:04:43 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 8C1575FBA6 for ; Thu, 11 Sep 2008 07:04:16 -0400 (EDT) Original-Received: from [192.168.1.10] (202.7.251.96.dynamic.rev.aanet.com.au [202.7.251.96]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id EAD335FBA5 for ; Thu, 11 Sep 2008 07:04:15 -0400 (EDT) User-Agent: Thunderbird 2.0.0.16 (X11/20080707) In-Reply-To: X-Pobox-Relay-ID: 6002A7AA-7FF1-11DD-A6F3-D0CFFE4BC1C1-14340206!a-sasl-fastnet.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:57418 Archived-At: it was a dark and stormy night when ChristopherL said, > Hello, > > When I overwrite a character in a file containing blank characters > at the end my lines, Emacs takes them away on save! What can I do to > prevent the loss of the blank characters? > 'delete-trailing-whitespace' function has the effect you describe; check if it's being hooked into something like 'before-save-hook in your .emacs file