GNU bug report logs -
#6290
Emacs command `quoted-insert' don't discard RET
Previous Next
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.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
This bug report was last modified 15 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.