GNU bug report logs - #6290
Emacs command `quoted-insert' don't discard RET

Previous Next

Package: emacs;

Reported by: Li Zhai <mrzhaili <at> gmail.com>

Date: Fri, 28 May 2010 03:20:02 UTC

Severity: normal

Merged with 6456

Found in versions 24.0.50, 24.0.50.1

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 6290 in the body.
You can then email your comments to 6290 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6290; Package emacs. (Fri, 28 May 2010 03:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Li Zhai <mrzhaili <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 28 May 2010 03:20:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Li Zhai <mrzhaili <at> gmail.com>
To: submit <at> debbugs.gnu.org
Subject: Emacs command `quoted-insert' don't discard RET
Date: Fri, 28 May 2010 10:15:31 +0800
[Message part 1 (text/plain, inline)]
Package: Emacs
Version: 24.0.50.1

When I invoke the command `C-q' to insert some char with character
code (C-q 6 0 RET).
The documents said the last RET will be discarded, but it doesn't. The last RET
inserted to the buffers. I tried to do the same thing in Emacs 23.2,
there is no problem.
I debugged the function `read-quoted-char' and I found these

      (let ((translation (lookup-key local-function-key-map (vector char))))
	(if (arrayp translation)
	    (setq translated (aref translation 0))))
      (setq translated
	    (if (integerp char)
		(char-resolve-modifiers char)
	      char))

two sexps are transposed in the Emacs 24.

In the Emacs 23.2, is

       (setq translated
	    (if (integerp char)
		(char-resolve-modifiers char)
	      char))
      (let ((translation (lookup-key local-function-key-map (vector char))))
	(if (arrayp translation)
	    (setq translated (aref translation 0))))

When I transposed these two sexps to make the code same as the
Emacs23.2, the problem is gone.


Bye,

Li Zhai
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6290; Package emacs. (Thu, 17 Jun 2010 03:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 6290 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Li Zhai <mrzhaili <at> gmail.com>
Cc: 6290 <at> debbugs.gnu.org
Subject: Re: bug#6290: Emacs command `quoted-insert' don't discard RET
Date: Wed, 16 Jun 2010 23:38:02 -0400
> When I invoke the command `C-q' to insert some char with character
> code (C-q 6 0 RET).  The documents said the last RET will be
> discarded, but it doesn't. The last RET inserted to the
> buffers. I tried to do the same thing in Emacs 23.2, there is
> no problem.

I've installed a fix in the emacs-23 branch, which should make its way
to the trunk soonish.  Please confirm when you see it's fixed.


        Stefan




Forcibly Merged 6290 6456. Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Fri, 18 Jun 2010 18:27:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6290; Package emacs. (Fri, 16 Jul 2010 07:13:02 GMT) Full text and rfc822 format available.

Message #13 received at 6290 <at> debbugs.gnu.org (full text, mbox):

From: Li Zhai <mrzhaili <at> gmail.com>
To: 6290 <at> debbugs.gnu.org
Subject: Re: bug#6290: Emacs command `quoted-insert' don't discard RET
Date: Fri, 16 Jul 2010 15:12:35 +0800
Bug is fixed in Emacs trunk.

On Thu, Jun 17, 2010 at 11:38 AM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> When I invoke the command `C-q' to insert some char with character
>> code (C-q 6 0 RET).  The documents said the last RET will be
>> discarded, but it doesn't. The last RET inserted to the
>> buffers. I tried to do the same thing in Emacs 23.2, there is
>> no problem.
>
> I've installed a fix in the emacs-23 branch, which should make its way
> to the trunk soonish.  Please confirm when you see it's fixed.
>
>
>        Stefan
>




bug closed, send any further explanations to Li Zhai <mrzhaili <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Fri, 16 Jul 2010 15:58:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Aug 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 6 days ago.

Previous Next


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