_ From:	CRDGW2::CRDGW2::MRGATE::"SMTP::PREP.AI.MIT.EDU::INFO-GNU-EMACS-REQUEST" 11-SEP-1989 22:46  To:	MRGATE::"ARISIA::EVERHART"# Subj:	Nemacs (Re: 8 bit characters)   R Received: by life.ai.mit.edu (4.1/AI-4.10) id AA09452; Mon, 11 Sep 89 18:18:00 EDT5 Return-Path: <info-gnu-emacs-request@prep.ai.mit.edu> n Received: from tut.cis.ohio-state.edu by life.ai.mit.edu (4.1/AI-4.10) id AA09271; Mon, 11 Sep 89 18:02:20 EDT3 Received: by tut.cis.ohio-state.edu (5.61/4.890725) * 	id AA16165; Mon, 11 Sep 89 17:48:39 -0400< Received: from USENET by tut.cis.ohio-state.edu with netnewsD 	for info-gnu-emacs@prep.ai.mit.edu (info-gnu-emacs@prep.ai.mit.edu)> 	(contact usenet@tut.cis.ohio-state.edu if you have questions) Date: 11 Sep 89 17:12:09 GMTQ From: milano!bigtex!rena!kogwy!titcca!etlcom!handa@cs.utexas.edu  (Kenichi Handa) ? Organization: Electrotechnical Laboratory, Tsukuba Science City & Subject: Nemacs (Re: 8 bit characters)$ Message-Id: <33172@etlcom.etl.JUNET>B References: <1989Sep10.172226.5865@sssab.se>, <37888@bu-cs.BU.EDU>. Sender: info-gnu-emacs-request@prep.ai.mit.edu" To: info-gnu-emacs@prep.ai.mit.edu  D In article <37888@bu-cs.BU.EDU> jbw@bucsf.bu.edu (Joe Wells) writes:- >>In article <1989Sep10.172226.5865@sssab.se> ' 	pausv@sssab.se (Paul Svensson) writes: O >>   I want to use emacs with 8-bit characters, but I cannot find out how to do I >>First, the output side.  You must modify the function display_string in H >>src/xdisp.c to output the 8-bit characters instead of an escaped octalH >>number (things like "\234").  It will be clear to any C programmer how
 >>to do this.   7 Do not forget to modify the functions current_column(), : Fmove_to_column(), and compute_motion() in src/indent.c so+ that emacs currectly do cursor positioning.   E >>Second, the input side.  Unfortunately for you, when looking up key B >>bindings, Emacs converts a character with the 8th bit set to twoL >>characters: the current value of meta-prefix-char followed by the originalD >>character with the 8th bit turned off.  Since I assume you wish toF >>continue using all of the meta commands, you must either access themJ >>through a different prefix than ESC, or you must change meta-prefix-charI >>to deal with 8-bit input separately.  Either way, you need to rearrange 
 >>keymaps.   My ugly but quick solution was: G 1. Modify the tail of function kbd_buffer_get_char () in src/keyboard.c L <return (c & (MetaFlag ? 0377 : 0177)); /* Clean up if sign was extended. */# >return (c); /* Do not clean up. */   : 2. Modify the head of function kbd_buffer_store_char () in% src/keyborad.c not to quit by Meta-g.  <  if (c == Ctl ('g') 3 <      || ((c == (0200 | Ctl ('g'))) && !MetaFlag))  >  if (c == Ctl ('g'))  6 3. Modify the head of function read_key_sequence () in/ src/keyboard.c to handly 8 bit chars specially.   .   nextc = get_char (nodisplay ? -1 : !prompt); >  if (nextc >= 0x80) {  >	... 3 >    read_key_sequence_cmd = Qsome_special_command;  >    keys_prompt = 0;  >    Vquit_flag = Qnil;  >    return 1; >  }   nextlocal = bf_cur->keymap; 3   XSET (nextglobal, Lisp_Vector, CurrentGlobalMap);   7 This is the ugly part.  If you modify keymap so that it ; handles full 8 bit characters, you may not need to do this. % I had my own reason to do like above.   8 4. Define the function some-special-command as you wish.  9 If you just want to insert 8-bit chars and display it, 3.  and 4. is not necessary.  G >>output symbols are the plain ASCII character set and nothing else.  I H >>understand that there is a Japanese version of GNU Emacs that correctsE >>this weakness for the display of Japanese writing.  Maybe something   6 The Japanese version of GNU Emacs is called Nemacs and8 maintenanced by me.  You can ftp it (patch for GNU Emacs3 18.53) from clover.ucdavis.edu (nemacs-v3.0.tar.Z).   < By now, several people have contacted me for Nemacs.  I have< sent them a mail about starting nemacs-mailing-list.  I want to include the mail here.   ? =============================================================== 8 I'm sending this mail to all who have contacted me about3 Nemacs (GNUEmacs-based Japanese editor) or Japanese  environment on computer.  ; I think some of you have already installed Nemacs and using 8 it.  Aren't there any troubles with using it?  I want to8 discuss in some mailing list on the usage of Nemacs, bug8 report, release of new version, and Japanese itself as a5 language.  I want to hear from you some opinion about  improvement of Nemacs.  4 Although news groups comp.emacs and gnu.emacs may be7 more suitable for this kind of discussion, current news < system out of Japan can not accept Japanese code.  I DO want0 to include Japanese in texts like the next line.1 	$@$3$l$O#J#I#S%3!<%I2=$5$l$?F|K\8l$NJ8>O$G$9!#(J . 	(This is a Japanese sentence encoded in JIS.)  ( So, I want to start nemacs-mailing-list.  . If you want to join this list, please mail me.  5 BUT, there's one problem.  I'm in Japan and it's very 9 expensive to have a host of this mailing-list at my site. < In addition, communication with European sites is not stable	 in Japan.   6 Are there anyone of U.S. sites who can run the host of nemacs-mailing-list?   --  Ken'ichi HANDA  + JUNET:	handa@etl.junet		CSNET:	handa@etl.jp  ARPA:	handa%etl.jp@relay.cs.net # Try also: handa%etl.jp@uunet.uu.net / VOICE:	JAPAN-298-58-5916	FAX:	JAPAN-298-58-5918 ? ADDRESS: Machine Inference Section, ElectroTechnical Laboratory ) 	 Umezono 1-1-4, Tsukuba City, 305, JAPAN 