From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Li Zhai Newsgroups: gmane.emacs.bugs Subject: bug#6290: Emacs command `quoted-insert' don't discard RET Date: Fri, 28 May 2010 10:15:31 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6407afedbc3be04879e1481 X-Trace: dough.gmane.org 1275020551 20599 80.91.229.12 (28 May 2010 04:22:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 May 2010 04:22:31 +0000 (UTC) To: 6290@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 28 06:22:29 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHr5Y-0002P5-Sg for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 May 2010 06:22:29 +0200 Original-Received: from localhost ([127.0.0.1]:44229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHr5Y-0001HN-8Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 May 2010 00:22:28 -0400 Original-Received: from [140.186.70.92] (port=34868 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHqEK-0000kO-Nm for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 23:27:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHqEJ-0001cC-BC for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 23:27:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37264) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHqEJ-0001c5-81 for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 23:27:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OHq78-0001mf-SQ; Thu, 27 May 2010 23:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Li Zhai Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 May 2010 03:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6290 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12750167446832 (code B ref -1); Fri, 28 May 2010 03:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 May 2010 03:19:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHq6B-0001m9-Q3 for submit@debbugs.gnu.org; Thu, 27 May 2010 23:19:04 -0400 Original-Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHp6l-0001Mu-7d for submit@debbugs.gnu.org; Thu, 27 May 2010 22:15:35 -0400 Original-Received: by gwj19 with SMTP id 19so512451gwj.3 for ; Thu, 27 May 2010 19:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=iX+GHdpOqhLCtdRgFPdCTiE0lX6FxKvNGEDDVgpki9g=; b=slNfrZGtqFQZHtHF3bBPHuGbiG2+6n2N13nMq96XVvFfdlMhCTzyRRi4xn0bDTjBpR k6TsOxoPJZiBfliN5G77RP/tLW3RQ4yCv7DLFsYvt8lOv0kk076eM2mhuA+2GYY1Rgij TsiWuQGrKMHJaf+/9JFVinE9eThlF+MJ2cxrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DiKfqwnEUyIaH3ywGEFzO1pvh5neBa0LFg9iozni5x15x3sWdlIIuJ0JmA/XO0BNUo oq20AJzLHDFjdL8Hq5PuLLVwfgIbO5AFkyt0nEozlaJUvsVUwOTpCE4CApgmNht+fZ2Z A9jn2jFo3cMqscQz78TrfkAmYlIU0D4nTSOgw= Original-Received: by 10.91.161.22 with SMTP id n22mr409215ago.91.1275012931371; Thu, 27 May 2010 19:15:31 -0700 (PDT) Original-Received: by 10.90.63.16 with HTTP; Thu, 27 May 2010 19:15:31 -0700 (PDT) X-Mailman-Approved-At: Thu, 27 May 2010 23:19:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 May 2010 23:20:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 28 May 2010 00:22:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37354 Archived-At: --0016e6407afedbc3be04879e1481 Content-Type: text/plain; charset=ISO-8859-1 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 --0016e6407afedbc3be04879e1481 Content-Type: text/html; charset=ISO-8859-1
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

--0016e6407afedbc3be04879e1481--