From: Li Zhai <mrzhaili@gmail.com>
To: 6290@debbugs.gnu.org
Subject: bug#6290: Emacs command `quoted-insert' don't discard RET
Date: Fri, 28 May 2010 10:15:31 +0800 [thread overview]
Message-ID: <AANLkTik5bKBJHhJeuYLkywV-4krr801yS03BDotb31rF@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2010-05-28 2:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-28 2:15 Li Zhai [this message]
2010-06-17 3:38 ` bug#6290: Emacs command `quoted-insert' don't discard RET Stefan Monnier
2010-07-16 7:12 ` Li Zhai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTik5bKBJHhJeuYLkywV-4krr801yS03BDotb31rF@mail.gmail.com \
--to=mrzhaili@gmail.com \
--cc=6290@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).