all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Improving input-methods docs
@ 2015-09-27  3:28 Rusi
  2015-10-01  0:05 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Rusi @ 2015-09-27  3:28 UTC (permalink / raw)
  To: help-gnu-emacs

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?
[Maybe re-ask this on emacs-devel?]


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  2015-09-27  3:28 Improving input-methods docs Rusi
@ 2015-10-01  0:05 ` Stefan Monnier
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2015-10-01  0:05 UTC (permalink / raw)
  To: help-gnu-emacs

> 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.


        Stefan




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Improving input-methods docs
@ 2015-10-02  2:53 Rustom Mody
  2015-10-02  5:23 ` Chris Feng
  2015-10-02  7:09 ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: Rustom Mody @ 2015-10-02  2:53 UTC (permalink / raw)
  To: emacs-devel

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.

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?

Strangely even describe-key shows (say) self-insert-command for "\" in
tex-input-method
which seems strange if not plain wrong.
[Yeah I ran grep on the elisp sources and found a quail and an international
and ... Just asking if there is easier way to not get lost]



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  2015-10-02  2:53 Rustom Mody
@ 2015-10-02  5:23 ` Chris Feng
  2015-10-02  5:31   ` Rustom Mody
  2015-10-02  7:09 ` Eli Zaretskii
  1 sibling, 1 reply; 9+ messages in thread
From: Chris Feng @ 2015-10-02  5:23 UTC (permalink / raw)
  To: Rustom Mody; +Cc: handa, emacs-devel

> 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.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  2015-10-02  5:23 ` Chris Feng
@ 2015-10-02  5:31   ` Rustom Mody
  2015-10-02  5:42     ` Chris Feng
  2015-10-02  6:50     ` Rustom Mody
  0 siblings, 2 replies; 9+ messages in thread
From: Rustom Mody @ 2015-10-02  5:31 UTC (permalink / raw)
  To: Chris Feng; +Cc: handa, emacs-devel

Thanks Chris

On Fri, Oct 2, 2015 at 10:53 AM, Chris Feng <chris.w.feng@gmail.com> wrote:
>> 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.

What's quail?
Why is it there? [or] What's its relation to (define)-input-method?
Sorry if I seem obtuse but I gather there is a close relation but I
cant make out what...



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  2015-10-02  5:31   ` Rustom Mody
@ 2015-10-02  5:42     ` Chris Feng
  2015-10-02  6:50     ` Rustom Mody
  1 sibling, 0 replies; 9+ messages in thread
From: Chris Feng @ 2015-10-02  5:42 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-devel

> What's quail?
> Why is it there? [or] What's its relation to (define)-input-method?
> Sorry if I seem obtuse but I gather there is a close relation but I
> cant make out what...

Quail is an implementation of Emacs input method
(`quail-input-method') without concrete rules on how to do the
translation (they are provided by Quail packages instead).  You can
think of it as an input method framework, I think.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  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
  1 sibling, 1 reply; 9+ messages in thread
From: Rustom Mody @ 2015-10-02  6:50 UTC (permalink / raw)
  To: Chris Feng; +Cc: handa, Kenichi Handa, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

Just resending since the mail to (earlier address of) Kenichi Handa bounced



On Fri, Oct 2, 2015 at 11:01 AM, Rustom Mody <rustompmody@gmail.com> wrote:

> Thanks Chris
>
> On Fri, Oct 2, 2015 at 10:53 AM, Chris Feng <chris.w.feng@gmail.com>
> wrote:
> >> 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.
>
> What's quail?
> Why is it there? [or] What's its relation to (define)-input-method?
> Sorry if I seem obtuse but I gather there is a close relation but I
> cant make out what...
>

Also the relation of mule and quail??

[-- Attachment #2: Type: text/html, Size: 2250 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  2015-10-02  2:53 Rustom Mody
  2015-10-02  5:23 ` Chris Feng
@ 2015-10-02  7:09 ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2015-10-02  7:09 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-devel

> From: Rustom Mody <rustompmody@gmail.com>
> Date: Fri, 2 Oct 2015 08:23:48 +0530
> 
> 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?

How about starting with a change that would include in the description
the place where the input method is defined?  I think this would be a
valuable documentation feature.  Currently, you need to grep the
relevant sources for the name of the input method.

> Strangely even describe-key shows (say) self-insert-command for "\" in
> tex-input-method
> which seems strange if not plain wrong.

It's not wrong: Emacs doesn't know better.  But maybe there should be
some addition that is related to the currently active input method.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Improving input-methods docs
  2015-10-02  6:50     ` Rustom Mody
@ 2015-10-02  7:41       ` Eli Zaretskii
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2015-10-02  7:41 UTC (permalink / raw)
  To: Rustom Mody; +Cc: handa, emacs-devel, chris.w.feng, handa

> From: Rustom Mody <rustompmody@gmail.com>
> Date: Fri, 2 Oct 2015 12:20:07 +0530
> Cc: handa@gnu.org, Kenichi Handa <handa@m17n.org>,
> 	emacs-devel <emacs-devel@gnu.org>
> 
> Also the relation of mule and quail??

Almost none.  Quail deals with input of non-ASCII characters that your
keyboard doesn't support.  By contrast, MULE deals with non-ASCII
characters sent encoded by your keyboard.  IOW, they complement each
other.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-02  7:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-27  3:28 Improving input-methods docs Rusi
2015-10-01  0:05 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2015-10-02  2:53 Rustom Mody
2015-10-02  5:23 ` Chris Feng
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

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.