unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: roland.winkler@physik.uni-erlangen.de, monnier@iro.umontreal.ca,
	emacs-devel@gnu.org
Subject: Re: displaying 8bit characters octal sequences
Date: Tue, 12 Oct 2004 16:38:27 +0900 (JST)	[thread overview]
Message-ID: <200410120738.QAA06600@etlken.m17n.org> (raw)
In-Reply-To: <m3u0t1uwx5.fsf@kfs-l.imdomain.dk> (storm@cua.dk)

In article <m3u0t1uwx5.fsf@kfs-l.imdomain.dk>, storm@cua.dk (Kim F. Storm) writes:

> Stefan <monnier@iro.umontreal.ca> 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  <handa@etl.go.jp>

> 	* 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  <handa@m17n.org>

	* 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 '^'

  reply	other threads:[~2004-10-12  7:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-10 22:34 displaying 8bit characters octal sequences Roland Winkler
2004-10-10 22:51 ` Stefan
2004-10-10 23:09   ` Roland Winkler
2004-10-11 14:12     ` Stefan
2004-10-11 14:28       ` Roland Winkler
2004-10-11 14:45         ` Stefan
2004-10-11 17:58           ` Roland Winkler
2004-10-11 19:41             ` Stefan Monnier
2004-10-11 20:02               ` Roland Winkler
2004-10-12 14:30                 ` Stefan Monnier
2004-10-11 19:45             ` Stefan Monnier
2004-10-11 14:55       ` Kim F. Storm
2004-10-12  7:38         ` Kenichi Handa [this message]
2004-10-13 13:44           ` Roland Winkler
2004-10-12  8:57       ` Richard Stallman

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=200410120738.QAA06600@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=roland.winkler@physik.uni-erlangen.de \
    /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).