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) Received: by life.ai.mit.edu (4.1/AI-4.10) id AA09452; Mon, 11 Sep 89 18:18:00 EDT Return-Path: 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 EDT 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 netnews 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 GMT 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> 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 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: >> I want to use emacs with 8-bit characters, but I cannot find out how to do >>First, the output side. You must modify the function display_string in >>src/xdisp.c to output the 8-bit characters instead of an escaped octal >>number (things like "\234"). It will be clear to any C programmer how >>to do this. 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. >>Second, the input side. Unfortunately for you, when looking up key >>bindings, Emacs converts a character with the 8th bit set to two >>characters: the current value of meta-prefix-char followed by the original >>character with the 8th bit turned off. Since I assume you wish to >>continue using all of the meta commands, you must either access them >>through a different prefix than ESC, or you must change meta-prefix-char >>to deal with 8-bit input separately. Either way, you need to rearrange >>keymaps. My ugly but quick solution was: 1. Modify the tail of function kbd_buffer_get_char () in src/keyboard.c 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') < || ((c == (0200 | Ctl ('g'))) && !MetaFlag)) > if (c == Ctl ('g')) 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) { > ... > read_key_sequence_cmd = Qsome_special_command; > keys_prompt = 0; > Vquit_flag = Qnil; > return 1; > } nextlocal = bf_cur->keymap; XSET (nextglobal, Lisp_Vector, CurrentGlobalMap); 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. 4. Define the function some-special-command as you wish. If you just want to insert 8-bit chars and display it, 3. and 4. is not necessary. >>output symbols are the plain ASCII character set and nothing else. I >>understand that there is a Japanese version of GNU Emacs that corrects >>this weakness for the display of Japanese writing. Maybe something The Japanese version of GNU Emacs is called Nemacs and maintenanced by me. You can ftp it (patch for GNU Emacs 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. =============================================================== I'm sending this mail to all who have contacted me about Nemacs (GNUEmacs-based Japanese editor) or Japanese environment on computer. I think some of you have already installed Nemacs and using it. Aren't there any troubles with using it? I want to discuss in some mailing list on the usage of Nemacs, bug report, release of new version, and Japanese itself as a language. I want to hear from you some opinion about improvement of Nemacs. Although news groups comp.emacs and gnu.emacs may be more suitable for this kind of discussion, current news system out of Japan can not accept Japanese code. I DO want to include Japanese in texts like the next line. $@$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. BUT, there's one problem. I'm in Japan and it's very expensive to have a host of this mailing-list at my site. In addition, communication with European sites is not stable in Japan. 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