From: jjanney@xmission.com (Jim Janney)
Subject: Re: Implementation of (self-insert-command ) ??
Date: Tue, 16 Sep 2003 18:57:39 -0600 [thread overview]
Message-ID: <1g1e6zt.1ikscmrjjgjiuN%jjanney@xmission.com> (raw)
In-Reply-To: 4yad96a2yb.fsf@skjellgran.ii.uib.no
Joakim Hove <hove@bccs.no> wrote:
> Hello,
>
> I am writing some simple functionality to insert the portabel variety
> of Norwegian characters in LaTeX, so that:
>
> Keyboard press Inserted in buffer
> -------------------------------------
> æ {\ae}
> ø {\o}
> å {\aa}
> ...
> -------------------------------------
>
> I have implemented this with something like:
>
> (define-key LaTeX-mode-map keycode 'latex-insert-encoded)
>
> Where the function (latex-insert-encoded) does the actual
> insertion. What I wondered was how to pass the keycode invoking
> (latex-insert-encoded) to the function (latex-insert-encoded)?
>
I think self-insert-command looks at the variable last-command-event.
You can also get the prefix argument with (interactive "P")
--
Jim Janney
prev parent reply other threads:[~2003-09-17 0:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 8:08 Implementation of (self-insert-command ) ?? Joakim Hove
2003-09-15 9:49 ` Reiner Steib
2003-09-15 11:48 ` Implementation of (self-insert-command ) ?? [Solved] Joakim Hove
2003-09-15 15:32 ` Implementation of (self-insert-command ) ?? Stefan Monnier
2003-09-16 14:48 ` Piet van Oostrum
2003-09-16 14:58 ` Stefan Monnier
2003-09-17 0:57 ` Jim Janney [this message]
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=1g1e6zt.1ikscmrjjgjiuN%jjanney@xmission.com \
--to=jjanney@xmission.com \
/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).