unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mounir AITTAHAR <mounir.aittahar@fri.fr>
Subject: Non-ASCII characters Key binding (emacs 21.4)
Date: Sun, 16 Oct 2005 23:54:55 +0200	[thread overview]
Message-ID: <diui9l$66m$1@apollon.grec.isp.9tel.net> (raw)

Hi,

On emacs 20.7 (yes), i wrote some lisp functions in order to
subsitute local characters (like é, ô) with sgml values (like &eacute;, 
&ocirc;) 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 "&egrave;")))


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.

             reply	other threads:[~2005-10-16 21:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-16 21:54 Mounir AITTAHAR [this message]
2005-10-17  3:08 ` Non-ASCII characters Key binding (emacs 21.4) Stefan Monnier
2005-10-18 15:58   ` Mounir AITTAHAR
2005-10-18 16:06     ` Mounir AITTAHAR
2005-10-18 16:51     ` Pascal Bourguignon
2005-10-19  8:51       ` Mounir AITTAHAR
2005-10-19 23:11         ` Stefan Monnier
2005-10-17 11:47 ` Mounir AITTAHAR
2005-10-18 12:35   ` Mounir AITTAHAR
2005-10-19  1:47     ` Pascal Bourguignon
2005-10-24 19:23 ` [solved] " Mounir AITTAHAR
2005-10-24 23:52   ` Stefan Monnier
2005-10-25 13:29     ` Mounir AITTAHAR

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='diui9l$66m$1@apollon.grec.isp.9tel.net' \
    --to=mounir.aittahar@fri.fr \
    /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.
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).