From: Chris Feng <chris.w.feng@gmail.com>
To: Rustom Mody <rustompmody@gmail.com>
Cc: handa@etl.go.jp, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Improving input-methods docs
Date: Fri, 2 Oct 2015 13:23:06 +0800 [thread overview]
Message-ID: <CAP4=87FNU9_GvaquW+oH-LO-OfWK4pynxd1NVW_2oQZ5Hx98jw@mail.gmail.com> (raw)
In-Reply-To: <CAJ+TeofGUdE_XdQy+6XKdTMahrb524gxRAu4rjecYd5i_m+9GQ@mail.gmail.com>
> Stefan Monnier wrote (on gnu.emacs.help list):
>> Rusi Mody wrote:
>> > I see (info "(elisp)input methods")
>> > that in emacs including 25, docs are still at
>> >
>> > | How to define input methods is not yet documented in this manual,
>> > | but here we describe how to use them.
>> >
>> > Is there something I can do (within my capacity!) to move this forward?
>
>> Start to document what you know? Or try to document what you think
>> should be there, and if you don't know what to write because you don't
>> know how it works, then ask on emacs-devel.
AFAIK to define a new input method it only requires one to register it
to `input-method-alist' and feed `input-method-function' a customized
function. But it seems most input methods in Emacs are defined as
Quail packages, so an intro to `quail-define-package' (and perhaps
other parts of Quail) may also be helpful.
> Ok
> First a basic question:
> When I do describe-input-method
> I see a lot of stuff 'described'
> However unlike describe-function|variable etc that links to the relevant stuff
> here there is no such.
>
> Is there any way to get to the input method (source) from an activated
> input-method?
You can find most input methods in 'lisp/leim/leim-list.el' as they're
registered there. For example, there's a form for the 'TeX' input
method indicating that it's actually a Quail package named
'quail/latin-ltx', so its source is in 'lisp/leim/quail/latin-ltx.el'.
> Strangely even describe-key shows (say) self-insert-command for "\" in
> tex-input-method
> which seems strange if not plain wrong.
IIUC input methods do not create new key bindings but translate
characters, so `describe-key' doesn't make much sense here.
next prev parent reply other threads:[~2015-10-02 5:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 2:53 Improving input-methods docs Rustom Mody
2015-10-02 5:23 ` Chris Feng [this message]
2015-10-02 5:31 ` Rustom Mody
2015-10-02 5:42 ` Chris Feng
2015-10-02 6:50 ` Rustom Mody
2015-10-02 7:41 ` Eli Zaretskii
2015-10-02 7:09 ` Eli Zaretskii
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='CAP4=87FNU9_GvaquW+oH-LO-OfWK4pynxd1NVW_2oQZ5Hx98jw@mail.gmail.com' \
--to=chris.w.feng@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=handa@etl.go.jp \
--cc=rustompmody@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).