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#3745: 23.0.95; emacs-23.0.95: unibyte-display-via-language-environment Date: Tue, 07 Jul 2009 15:28:10 +0900 Message-ID: References: <87bpo13ks8.fsf@stupidchicken.com> <87my7h6h81.fsf@stupidchicken.com> Reply-To: Kenichi Handa , 3745@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246948671 17941 80.91.229.12 (7 Jul 2009 06:37:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2009 06:37:51 +0000 (UTC) Cc: 3745@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 07 08:37:43 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 1MO4JD-0002RJ-6k for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2009 08:37:43 +0200 Original-Received: from localhost ([127.0.0.1]:33198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MO4JC-0002qM-MQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2009 02:37:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MO4J5-0002kq-Ja for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 02:37:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MO4Iz-0002Za-Hs for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 02:37:34 -0400 Original-Received: from [199.232.76.173] (port=37949 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MO4Iz-0002ZH-3E for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 02:37:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41820) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MO4Iy-0002tw-Fl for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 02:37:28 -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 n676bQwG017774; Mon, 6 Jul 2009 23:37:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n676Z46B017150; Mon, 6 Jul 2009 23:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 07 Jul 2009 06:35:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3745 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3745-submit@emacsbugs.donarmstrong.com id=B3745.124694809716221 (code B ref 3745); Tue, 07 Jul 2009 06:35:03 +0000 Original-Received: (at 3745) by emacsbugs.donarmstrong.com; 7 Jul 2009 06:28:17 +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 n676SC1Q016216 for <3745@emacsbugs.donarmstrong.com>; Mon, 6 Jul 2009 23:28:14 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n676SAh4027848; Tue, 7 Jul 2009 15:28:11 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n676SAwp021304; Tue, 7 Jul 2009 15:28:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n676SAa6009545; Tue, 7 Jul 2009 15:28:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MO49y-0007M7-Ax; Tue, 07 Jul 2009 15:28:10 +0900 In-Reply-To: <87my7h6h81.fsf@stupidchicken.com> (message from Chong Yidong on Mon, 06 Jul 2009 10:03:58 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 07 Jul 2009 02:37:34 -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:29220 Archived-At: In article <87my7h6h81.fsf@stupidchicken.com>, Chong Yidong writes: > Kenichi Handa writes: > > To minimize the changes, I made the attached patch. It > > doesn't touch unibyte_to_multibyte_table, but introduced > > charset_unibyte_decoder[128]. I confirmed it didn't make > > the display code slow. > > @@ -302,11 +298,11 @@ > > struct charset *charset; > > unsigned c1; > > > > + if (c < 0x80) > > + return c; > > if (CHAR_BYTE8_P (c)) > > return CHAR_TO_BYTE8 (c); > You should also delete the unused `charset' and `c1' variables in this > block. Ah, yes. > Other than that, these changes look good. Thanks very much for making > this patch, and please install on the branch ASAP. > For the trunk, I agree that we should try using use DECODE_CHAR in > x_produce_glyphs. Ok, done. I also installed this change of reset-language-environment for completion. --- mule-cmds.el 8 Apr 2009 18:03:17 -0000 1.360 +++ mule-cmds.el 7 Jul 2009 05:59:18 -0000 1.360.2.1 @@ -1794,6 +1794,11 @@ (coding-system-error 'iso-latin-1)))) (setq default-process-coding-system (cons output-coding input-coding))) + ;; Put the highest priority to the charset iso-8859-1 to prefer the + ;; registry iso8859-1 over iso8859-2 in font selection. It also + ;; makes unibyte-display-via-language-environment to use iso-8859-1 + ;; as the unibyte charset. + (set-charset-priority 'iso-8859-1) ;; Don't alter the terminal and keyboard coding systems here. ;; The terminal still supports the same coding system --- Kenichi Handa handa@m17n.org