From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Changing of line format and undo Date: Wed, 21 Jun 2006 17:50:57 +0200 Message-ID: <44996AE1.7020907@student.lu.se> References: <44987375.2010000@student.lu.se> <449961F6.6020001@student.lu.se> <85mzc6y204.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150905102 6234 80.91.229.2 (21 Jun 2006 15:51:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2006 15:51:42 +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:51:39 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 1Ft4zM-0000wh-If for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2006 17:51:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ft4zM-00042X-5f for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2006 11:51:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ft4zB-00042H-2k for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:51:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ft4z9-00041w-1M for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:51:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ft4z8-00041t-Rd for emacs-devel@gnu.org; Wed, 21 Jun 2006 11:51:18 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ft59b-0001r2-2N; Wed, 21 Jun 2006 12:02:07 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.072.1) id 4492E96600132BF9; Wed, 21 Jun 2006 17:50:57 +0200 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: David Kastrup In-Reply-To: <85mzc6y204.fsf@lola.goethe.zz> 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:56055 Archived-At: David Kastrup wrote: > 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? > > Test this for example: (defun test-set-eol() (interactive) (let* ((coding buffer-file-coding-system) (new-coding (coding-system-change-eol-conversion coding 2))) (setq buffer-file-coding-system new-coding)))