* bug#6290: Emacs command `quoted-insert' don't discard RET
@ 2010-05-28 2:15 Li Zhai
2010-06-17 3:38 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Li Zhai @ 2010-05-28 2:15 UTC (permalink / raw)
To: 6290
[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1156 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#6290: Emacs command `quoted-insert' don't discard RET
2010-05-28 2:15 bug#6290: Emacs command `quoted-insert' don't discard RET Li Zhai
@ 2010-06-17 3:38 ` Stefan Monnier
2010-07-16 7:12 ` Li Zhai
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2010-06-17 3:38 UTC (permalink / raw)
To: Li Zhai; +Cc: 6290
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#6290: Emacs command `quoted-insert' don't discard RET
2010-06-17 3:38 ` Stefan Monnier
@ 2010-07-16 7:12 ` Li Zhai
0 siblings, 0 replies; 3+ messages in thread
From: Li Zhai @ 2010-07-16 7:12 UTC (permalink / raw)
To: 6290
Bug is fixed in Emacs trunk.
On Thu, Jun 17, 2010 at 11:38 AM, Stefan Monnier
<monnier@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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-16 7:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 2:15 bug#6290: Emacs command `quoted-insert' don't discard RET Li Zhai
2010-06-17 3:38 ` Stefan Monnier
2010-07-16 7:12 ` Li Zhai
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.