GNU bug report logs - #992
coding system for next command not honoured with C-u 0 C-x s

Previous Next

Package: emacs;

Reported by: Francesco Potorti` <pot <at> gnu.org>

Date: Wed, 17 Sep 2008 16:45:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Francesco Potorti` <pot <at> gnu.org>
To: GNU emacs bug list <bug-gnu-emacs <at> gnu.org>
Subject: coding system for next command not honoured with C-u 0 C-x s
Date: Wed, 17 Sep 2008 18:39:09 +0200
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.





This bug report was last modified 16 years and 292 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.