all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jussi Piitulainen <jpiitula@venus.ling.helsinki.fi>
Subject: Re: Alt as meta, except for certain keys, how?
Date: 13 Aug 2003 08:14:28 +0300	[thread overview]
Message-ID: <qotsmo6nnpn.fsf@venus.ling.helsinki.fi> (raw)
In-Reply-To: 3F392069.1010103@yahoo.com

Kevin Rodgers writes:

> Sorry, I was trying to show a general form via ellipses.  A concrete
> example would be
> 
> (define-key key-translation-map [?\M-7] "|")

Ah. That works all right, but when 7 is replaced with a letter outside
ASCII, it does not work.

> I don't know why those wouldn't work [] unless there are
> keyboard/buffer/file coding issues. You might want to use the octal
> encoding instead:
> 
> [?\M-\241] ; meta inverted exclamation point

That's again an interesting suggestion. I notice that ?\M-{inv excl}
and ?\M-\241 have different values, and C-x = shows an {inv excl} in
the buffer as octal 4241, not just 241. A coding issue, then, maybe,
and yes, the following indeed seems to do the trick:

          (define-key key-translation-map [?\M-\366] "*")

Octal 366 is Latin-1 for one of the letters I have a key for, the
letters shows as octal 4366 in the buffer, ?\M-{letter itself} does
not identify it for binding purposes, but ?\M-\366 seems to work.

Thank you.

> I don't understand Emacs' encoding scheme at all, nor do I want to.

Heh.

>> I think I'll use the numbers for these few keys.
> 
> The "Character Type" node of the Emacs Lisp manual strongly
> discourages that:

Of course, and I agree, but I was failing to find any other way to
make it work. That octal syntax seems to do it, and all in standard
Latin-1, too, so I will change to use that instead.
-- 
Jussi 

  reply	other threads:[~2003-08-13  5:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-07 17:33 Alt as meta, except for certain keys, how? Jussi Piitulainen
2003-08-07 18:38 ` Kevin Rodgers
2003-08-08  7:05   ` Ehud Karni
     [not found]   ` <mailman.222.1060326618.29551.help-gnu-emacs@gnu.org>
2003-08-08 18:51     ` Kevin Rodgers
2003-08-08 21:26       ` Ehud Karni
     [not found]       ` <mailman.235.1060378027.29551.help-gnu-emacs@gnu.org>
2003-08-11 18:10         ` Jussi Piitulainen
2003-08-11 20:29           ` Kevin Rodgers
2003-08-12  8:26             ` Jussi Piitulainen
2003-08-12 17:14               ` Kevin Rodgers
2003-08-13  5:14                 ` Jussi Piitulainen [this message]
2003-08-15 13:05             ` Kai Großjohann
2003-08-11 19:54         ` Kevin Rodgers
2003-08-12 11:13           ` Ehud Karni
     [not found]           ` <mailman.336.1060687053.29551.help-gnu-emacs@gnu.org>
2003-08-12 18:16             ` Jussi Piitulainen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qotsmo6nnpn.fsf@venus.ling.helsinki.fi \
    --to=jpiitula@venus.ling.helsinki.fi \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.