Subject: bug#992 closed by Chong Yidong <[email-masked]> (Re: coding system for next command not honoured with C-u 0 C-x s)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#992: coding system for next command not honoured with C-u 0 C-x s

It has been closed by Chong Yidong <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Chong Yidong <[email-masked]> by
replying to this email.

-- 
992: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=992
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Sun Oct  5 12:08:31 2008
From: Chong Yidong <[email-masked]>
To: [email-masked]
Subject: Re: coding system for next command not honoured with C-u 0 C-x s
Date: Sun, 05 Oct 2008 15:09:54 -0400

The patch I provided earlier seems to DTRT, so I've checked it in.

>From [email-masked] Wed Sep 17 09:39:43 2008
Date: Wed, 17 Sep 2008 18:39:09 +0200
From: Francesco Potorti` <[email-masked]>
Subject: coding system for next command not honoured with C-u 0 C-x s
To: GNU emacs bug list <[email-masked]>
Organization: 

To reproduce:

emacs -Q
C-x C-f aaa RET				-- create a file aa
<write anything, with carriage return>  -- write random text
C-x RET c dos RET C-x C-s      		-- save it in Dos mode
C-x k RET     	      			-- kill the buffer
C-x C-f aaa RET				-- reload the file
<write anything>			-- modify it
C-x RET c unix RET M-0 C-x C-s		-- save in Unix mode, no backup

At this point, the buffer should be in Unix mode, but instead it is in
Dos mode.  Accordingly, the file is saved in Dos mode.  The bug only
happens with M-0 C-x C-s, not with plain C-x C-s.