From: Sofer Athlan <sofer+news@sathlan.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to use Quail Completion
Date: Thu, 17 Jan 2013 21:07:15 +0100 [thread overview]
Message-ID: <86ehhjmv4c.fsf@s390.unix4.me> (raw)
In-Reply-To: k0gfqs08j7@news1.newsguy.com
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.
next prev parent reply other threads:[~2013-01-17 20:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
2012-08-13 11:10 Rasmus
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=86ehhjmv4c.fsf@s390.unix4.me \
--to=sofer+news@sathlan.org \
--cc=help-gnu-emacs@gnu.org \
/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).