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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 992 in the body.
You can then email your comments to 992 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#992; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Francesco Potorti` <pot <at> gnu.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

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.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#992; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Francesco Potorti` <pot <at> gnu.org>
Cc: 992 <at> debbugs.gnu.org
Subject: Re: coding system for next command not honoured with C-u 0 C-x s
Date: Tue, 30 Sep 2008 17:32:29 -0400
Does this patch DTRT?

*** trunk/lisp/international/mule-cmds.el.~1.339.~	2008-09-02 11:15:20.000000000 -0400
--- trunk/lisp/international/mule-cmds.el	2008-09-30 17:31:03.000000000 -0400
***************
*** 287,293 ****
  	 (cmd (key-binding keyseq))
  	 prefix)
  
!     (when (eq cmd 'universal-argument)
        (call-interactively cmd)
  
        ;; Process keys bound in `universal-argument-map'.
--- 287,293 ----
  	 (cmd (key-binding keyseq))
  	 prefix)
  
!     (when (memq cmd '(universal-argument digit-argument))
        (call-interactively cmd)
  
        ;; Process keys bound in `universal-argument-map'.

Diff finished.  Tue Sep 30 17:31:41 2008




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Francesco Potorti` <pot <at> gnu.org>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #15 received at 992-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: 992-done <at> debbugs.gnu.org
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.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Mon, 03 Nov 2008 15:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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