From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: terminal Date: Sun, 26 Mar 2006 18:54:10 +0200 Organization: Informatimago Message-ID: <87psk9f8p9.fsf@thalassa.informatimago.com> References: <1143373355.569148.162370@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143499531 32475 80.91.229.2 (27 Mar 2006 22:45:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2006 22:45:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 28 00:45:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FO0Sk-0000bE-4e for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Mar 2006 00:45:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FO0Sj-0001bB-Ln for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Mar 2006 17:45:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-X-Trace: individual.net JeF8o6HiWT/q30HYxxMkXAI3y055qhLXSsn6H/+4XnWFS8uz8D Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2f6j2HzdFOZHbhBIs44p33+q19k= Original-Xref: shelby.stanford.edu gnu.emacs.help:138391 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34033 Archived-At: "gaetanoortisi@yahoo.it" writes: > I have emacs on slackware 10.2 and I need support for iso 8859 1 chars > like accented e. > On xterm these characters appear normally, but in emacs when I type > accented e is like > I type C-p. I check the FAQ, and try the set-terminal-coding-system and > set-language-environment > commands, but it seems not work. What I have to do? emacs use the meta key intensively. There is no ASCII code corresponding to this key. So there are two way to send a meta key to emacs, from a terminal: 1- send ESC followed by the meta-chord characters. 2- send the meta-chord characters with the high bit set. This should be configurable in your terminal emulator. Accented characters in ISO-8859-1 have this high bit set, so emacs takes them as meta chords. In emacs, meta-prefix-char specifies the character used for meta (ESC by default, but it could be another). You probably want to leave it as it is. What you need to set in emacs, to match your iso-8859-1 terminal, is the keyboard-coding-system. Put this in your ~/.emacs: (when (null window-system) (setq keyboard-coding-system 'iso-8859-1)) and set your terminal to send ESC for meta. -- __Pascal Bourguignon__ http://www.informatimago.com/ There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him. -- Robert Heinlein