unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to use Quail Completion
@ 2012-08-13 11:10 Rasmus
  0 siblings, 0 replies; 3+ messages in thread
From: Rasmus @ 2012-08-13 11:10 UTC (permalink / raw)
  To: help-gnu-emacs


In message-mode I use input method TeX (see C-h I TeX).  I use:

(add-hook 'message-mode-hook
	  (lambda ()
	    (set-input-method "TeX")))

Strings like \"A has several completions. From the *Help* string:

    key	 character(s)  [type a key (sequence) and select one from the list]
    -------- ------------
    \"A	 Ӓ Ǟ Ä

When I type \"A and TAB I get the list "Ӓ Ǟ Ä", but I can't figure out
how to get from "Ӓ" to "Ä".  I have tried with C-u-TAB, C-TAB, M-TAB
etc.  I have tried to use the mouse to select an alternative completion,
but that doesn't work either.  I have tried without vanilla Emacs (emacs
-q).

So to summarize, how do I use "select one from the list"?  Or, how to
get from Ӓ to Ä?

Thanks,
Rasmus

-- 
Send from my Emacs




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

* Re: How to use Quail Completion
       [not found] <mailman.6880.1344856226.855.help-gnu-emacs@gnu.org>
@ 2012-08-15 15:38 ` B. T. Raven
  2013-01-17 20:07   ` Sofer Athlan
  0 siblings, 1 reply; 3+ messages in thread
From: B. T. Raven @ 2012-08-15 15:38 UTC (permalink / raw)
  To: help-gnu-emacs

It looks like a fontset issue. I use only Arial Unicode on the w32 build
so I don't run into this embarassment of riches. Try typing 0,1,2 or 1,
2, 3 in this context. I think those are used with some Far Eastern input
methods. Btw, do you really need all those flavors of umlaut A?

Ed

> 
> In message-mode I use input method TeX (see C-h I TeX).  I use:
> 
> (add-hook 'message-mode-hook
> 	  (lambda ()
> 	    (set-input-method "TeX")))
> 
> Strings like \"A has several completions. From the *Help* string:
> 
>     key	 character(s)  [type a key (sequence) and select one from the list]
>     -------- ------------
>     \"A	 Ӓ Ǟ Ä
> 
> When I type \"A and TAB I get the list "Ӓ Ǟ Ä", but I can't figure out
> how to get from "Ӓ" to "Ä".  I have tried with C-u-TAB, C-TAB, M-TAB
> etc.  I have tried to use the mouse to select an alternative completion,
> but that doesn't work either.  I have tried without vanilla Emacs (emacs
> -q).
> 
> So to summarize, how do I use "select one from the list"?  Or, how to
> get from Ӓ to Ä?
> 
> Thanks,
> Rasmus
> 



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

* Re: How to use Quail Completion
  2012-08-15 15:38 ` How to use Quail Completion B. T. Raven
@ 2013-01-17 20:07   ` Sofer Athlan
  0 siblings, 0 replies; 3+ messages in thread
From: Sofer Athlan @ 2013-01-17 20:07 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

this is an old post, but I had the same issue today so I leave a
solution here for reference.

The problem appears somewhere in between emacs 24.0 and 24.1.  Some
shortcuts gained multiple mapping.  But the quail-define-package defined
in latin-ltx.el assumes that in won't be the case and set DETERMINISTIC
to t.  That's why it's impossible to choose between the characters.

My solution was to cup/paste the latin-ltx.el into another file and
define a new mode with only the definition redefined like this:

#+begin_src emacs-lisp

  (quail-define-package
   "MeX" "UTF-8" "\\" t
   "LaTeX-like input method for many characters.
  These characters are from the charsets used by the `utf-8' coding
  system, including many technical ones.  Examples:
   \\'a -> á  \\`{a} -> à
   \\pi -> π  \\int -> ∫  ^1 -> ¹"

   '(("\t" . quail-completion))
   nil nil nil nil nil nil nil nil nil nil)

#+end_src

Now, I can choose between character (using 1, 2, ...) and it remembers
my choice for the next selection.

Regards,

>> In message-mode I use input method TeX (see C-h I TeX).  I use:
>>
>> (add-hook 'message-mode-hook
>> 	  (lambda ()
>> 	    (set-input-method "TeX")))
>>
>> Strings like \"A has several completions. From the *Help* string:
>>
>> key character(s) [type a key (sequence) and select one from the list]
>> -------- ------------ \"A Ӓ Ǟ Ä
>>
>> When I type \"A and TAB I get the list "Ӓ Ǟ Ä", but I can't figure
>> out how to get from "Ӓ" to "Ä".  I have tried with C-u-TAB, C-TAB,
>> M-TAB etc.  I have tried to use the mouse to select an alternative
>> completion, but that doesn't work either.  I have tried without
>> vanilla Emacs (emacs -q).
>>
>> So to summarize, how do I use "select one from the list"?  Or, how to
>> get from Ӓ to Ä?
>>
>> Thanks,
>> Rasmus
>>

--
Sofer.




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

end of thread, other threads:[~2013-01-17 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6880.1344856226.855.help-gnu-emacs@gnu.org>
2012-08-15 15:38 ` How to use Quail Completion B. T. Raven
2013-01-17 20:07   ` Sofer Athlan
2012-08-13 11:10 Rasmus

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