From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#3372: 23.0.94; Wrong input of umlauts in table mode Date: Mon, 25 May 2009 16:45:01 +0900 Message-ID: References: <87octhln0v.fsf@tum.de> Reply-To: Kenichi Handa , 3372@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243239736 28271 80.91.229.12 (25 May 2009 08:22:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 08:22:16 +0000 (UTC) Cc: Takaaki.Ota@am.sony.com To: uwe.siart@tum.de, 3372@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 25 10:22:08 2009 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.50) id 1M8VRf-0000nh-SV for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 10:22:08 +0200 Original-Received: from localhost ([127.0.0.1]:51466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8VRf-0000WN-Ak for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 04:22:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8VPP-0004rh-0X for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 04:19:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8VPK-0004ge-7s for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 04:19:46 -0400 Original-Received: from [199.232.76.173] (port=53254 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8VPK-0004gD-2a for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 04:19:42 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:43575) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8VPJ-0000wR-2i for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 04:19:41 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8VPH-0006wa-Q4 for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 04:19:40 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4P89B88014590; Mon, 25 May 2009 01:09:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4P7o6qC011219; Mon, 25 May 2009 00:50:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 25 May 2009 07:50:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3372 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3372-submit@emacsbugs.donarmstrong.com id=B3372.124323748410436 (code B ref 3372); Mon, 25 May 2009 07:50:06 +0000 Original-Received: (at 3372) by emacsbugs.donarmstrong.com; 25 May 2009 07:44:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4P7idox010424 for <3372@emacsbugs.donarmstrong.com>; Mon, 25 May 2009 00:44:41 -0700 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n4P7ian1029357; Mon, 25 May 2009 16:44:36 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n4P7iZLn014821; Mon, 25 May 2009 16:44:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n4P7iZxS007506; Mon, 25 May 2009 16:44:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1M8Url-0006ev-84; Mon, 25 May 2009 16:45:01 +0900 In-reply-to: <87octhln0v.fsf@tum.de> (message from Uwe Siart on Mon, 25 May 2009 08:22:40 +0200) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n4P89B88014590 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Mon, 25 May 2009 04:19:46 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:28142 Archived-At: In article <87octhln0v.fsf@tum.de>, Uwe Siart writes: > When I try to enter german umlauts (=C3=A4,=C3=B6,=C3=BC) in table mode= I get octal sequences > instead. Typing =C2=BB=C3=A4=C2=AB results in display of =C2=BB\344=C2=AB= etc. Everything is fine when > table mode is off. The attached patch will fix that bug. --- Kenichi Handa handa@m17n.org --- table.el.~1.39.~ 2009-01-09 13:19:13.000000000 +0900 +++ table.el 2009-05-25 16:43:03.000000000 +0900 @@ -3943,7 +3943,7 @@ (defun *table--cell-self-insert-command () "Table cell version of `self-insert-command'." (interactive "*") - (let ((char (table--unibyte-char-to-multibyte last-command-event))) + (let ((char last-command-event)) (if (eq buffer-undo-list t) nil (if (not (eq last-command this-command)) (setq table-cell-self-insert-command-count 0) @@ -4048,7 +4048,7 @@ (defun *table--cell-quoted-insert (arg) "Table cell version of `quoted-insert'." (interactive "*p") - (let ((char (table--unibyte-char-to-multibyte (read-quoted-char)))) + (let ((char (read-quoted-char))) (while (> arg 0) (table--cell-insert-char char nil) (setq arg (1- arg))))) @@ -4349,19 +4349,6 @@ (cdr (symbol-value (cdr prompt-history))))) (car (symbol-value (cdr prompt-history)))) =20 -(defun table--unibyte-char-to-multibyte (char) - "Convert CHAR by `unibyte-char-to-multibyte' when possible and necessa= ry." - ;; This part is take from `quoted-insert'. - ;; Assume character codes 0240 - 0377 stand for characters in some - ;; single-byte character set, and convert them to Emacs - ;; characters. - (if (and enable-multibyte-characters - (fboundp 'unibyte-char-to-multibyte) - (>=3D char ?\240) - (<=3D char ?\377)) - (unibyte-char-to-multibyte char) - char)) - (defun table--buffer-substring-and-trim (beg end) "Extract buffer substring and remove blanks from front and the rear of= it." (save-excursion