From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mounir AITTAHAR Newsgroups: gmane.emacs.help Subject: Non-ASCII characters Key binding (emacs 21.4) Date: Sun, 16 Oct 2005 23:54:55 +0200 Organization: 9Telecom Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1129499783 14795 80.91.229.2 (16 Oct 2005 21:56:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2005 21:56:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 16 23:56:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERGTQ-0008CP-96 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Oct 2005 23:55:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERGTP-0007QY-Os for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Oct 2005 17:55:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!proxad.net!usenet-fr.net!gaoland.net!grec.isp.9tel.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 31.13.101-84.rev.gaoland.net Original-X-Trace: apollon.grec.isp.9tel.net 1129499765 6358 84.101.13.31 (16 Oct 2005 21:56:05 GMT) Original-X-Complaints-To: abuse@9online.fr Original-NNTP-Posting-Date: Sun, 16 Oct 2005 21:56:05 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:134677 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:30259 Archived-At: Hi, On emacs 20.7 (yes), i wrote some lisp functions in order to subsitute local characters (like é, ô) with sgml values (like é, ô) or LaTeX corresponding sequences (like \'e,\^o). Theses functions looked like : (local-set-key (vector 233) ; (lambda()(interactive)(sgml-name-char 233))) Or, (local-set-key (vector 233) (lambda()(interactive) (insert "è"))) On emacs 20.7, it worked. On emacs 21.4, it doesn't work more. I've tried to found why trough Google search, tried several way likee but nothing. 233 is the value of "grave e" character. I'm using a vector because it is told on the description of local-set-key , and to prevent the problem of multibytes characters (GNU Emacs manual : http://www.gnu.org/software/emacs/elisp-manual/html_node/elisp_333.html). What have i done wrong ? Is this a known problem ? Thanks and regards, -- Mounir AITTAHAR PS : this mail is in iso-latin-1. I hope it will be readable by all.