From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Changing of line format and undo Date: Wed, 21 Jun 2006 17:14:35 +0200 Message-ID: <85mzc6y204.fsf@lola.goethe.zz> References: <44987375.2010000@student.lu.se> <449961F6.6020001@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150902946 30357 80.91.229.2 (21 Jun 2006 15:15:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2006 15:15:46 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 21 17:15:43 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ft4QM-0001pC-AQ for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2006 17:15:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ft4QL-0001mm-LR for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2006 11:15:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ft4QA-0001mC-Uz for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:15:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ft4QA-0001ll-H8 for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:15:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ft4QA-0001le-E4 for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:15:10 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ft4aw-0007Kk-Bs for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:26:18 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Ft4Q9-00008q-KN; Wed, 21 Jun 2006 11:15:09 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id AA5971C4D3B5; Wed, 21 Jun 2006 17:14:35 +0200 (CEST) Original-To: Lennart Borgman In-Reply-To: <449961F6.6020001@student.lu.se> (Lennart Borgman's message of "Wed, 21 Jun 2006 17:12:54 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56054 Archived-At: Lennart Borgman writes: > Eli Zaretskii wrote: >>> Date: Wed, 21 Jun 2006 00:15:17 +0200 >>> From: Lennart Borgman >>> >>> If you change line endings this change is not saved to undo. Is >>> this the expected behaviour? >>> >> >> If you mean "C-x RET f", then it doesn't really change anything. It >> just sets a buffer-local variable to some value. So there's nothing >> to undo. >> > That is an internal Emacs perpective. From a users point of view there > is truly a change. If you for example change the line endings the file > will be saved with this new line endings. > > BTW should not changes of this kind also set the buffer to modified? What makes you think they don't? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum