From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: displaying 8bit characters octal sequences Date: Tue, 12 Oct 2004 16:38:27 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200410120738.QAA06600@etlken.m17n.org> References: <16745.47326.410973.405187@tfkp07.physik.uni-erlangen.de> <16745.49453.600094.942187@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1097566770 31767 80.91.229.6 (12 Oct 2004 07:39:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2004 07:39:30 +0000 (UTC) Cc: roland.winkler@physik.uni-erlangen.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 12 09:39:16 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CHHFc-0000gb-00 for ; Tue, 12 Oct 2004 09:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CHHMb-0007q7-8K for ged-emacs-devel@m.gmane.org; Tue, 12 Oct 2004 03:46:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CHHMC-0007nV-0S for emacs-devel@gnu.org; Tue, 12 Oct 2004 03:46:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CHHM9-0007mf-PZ for emacs-devel@gnu.org; Tue, 12 Oct 2004 03:46:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CHHM9-0007mP-Iy for emacs-devel@gnu.org; Tue, 12 Oct 2004 03:46:01 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CHHF4-0001qN-9d for emacs-devel@gnu.org; Tue, 12 Oct 2004 03:38:42 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id i9C7cT9d022692; Tue, 12 Oct 2004 16:38:30 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id i9C7cSF17204; Tue, 12 Oct 2004 16:38:29 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id QAA06600; Tue, 12 Oct 2004 16:38:27 +0900 (JST) Original-To: storm@cua.dk In-reply-to: (storm@cua.dk) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28275 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28275 In article , storm@cua.dk (Kim F. Storm) writes: > Stefan writes: >> ..... yes, now I remember ..... someone changed the default display of >> eight-bit-graphic chars: in multibyte buffers it's as before >> (i.e. octal sequences), but in unibyte buffers they're displayed as >> you're seeing them (i.e. as which ever glyph your default font chose for >> those non-ascii chars). >> >> Kim did you do this change? > Not on purpose. > I think Handa did it: > 2002-08-27 Kenichi Handa > * xdisp.c (get_next_display_element): In unibyte case, don't use > octal form for such eight-bit characters that can be converted to > multibyte char. I don't remember well :-(, but it seems that the change is to make unibyte-display-via-language-environment work without setting up standard-display-table. I've just installed the attached patch. Now M-: (standard-display-default 128 255) RET should work. --- Ken'ichi HANDA handa@m17n.org 2004-10-12 Kenichi Handa * xdisp.c (get_next_display_element): If unibyte_display_via_language_environment is zero, display 8-bit chars in octal in unibyte buffer. *** xdisp.c 30 Sep 2004 10:23:04 +0900 1.911 --- xdisp.c 12 Oct 2004 16:11:49 +0900 *************** *** 4895,4901 **** && it->len == 1) || !CHAR_PRINTABLE_P (it->c)) : (it->c >= 127 ! && it->c == unibyte_char_to_multibyte (it->c)))) { /* IT->c is a control character which must be displayed either as '\003' or as `^C' where the '\\' and '^' --- 4895,4902 ---- && it->len == 1) || !CHAR_PRINTABLE_P (it->c)) : (it->c >= 127 ! && (!unibyte_display_via_language_environment ! || it->c == unibyte_char_to_multibyte (it->c))))) { /* IT->c is a control character which must be displayed either as '\003' or as `^C' where the '\\' and '^'