From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sofer Athlan Newsgroups: gmane.emacs.help Subject: Re: How to use Quail Completion Date: Thu, 17 Jan 2013 21:07:15 +0100 Message-ID: <86ehhjmv4c.fsf@s390.unix4.me> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1358807703 31402 80.91.229.3 (21 Jan 2013 22:35:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 22:35:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 23:35:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TxPxY-0000Lo-RT for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 23:35:20 +0100 Original-Received: from localhost ([::1]:55525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxPxH-0002HO-Ll for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 17:35:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxPx8-0002HD-FQ for help-gnu-emacs@gnu.org; Mon, 21 Jan 2013 17:34:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxPx2-0000Ir-V9 for help-gnu-emacs@gnu.org; Mon, 21 Jan 2013 17:34:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:38849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxPx2-0000In-Mo for help-gnu-emacs@gnu.org; Mon, 21 Jan 2013 17:34:48 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TxPxH-00007K-KQ for help-gnu-emacs@gnu.org; Mon, 21 Jan 2013 23:35:04 +0100 Original-Received: from 173.231.115.58 ([173.231.115.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jan 2013 23:35:03 +0100 Original-Received: from sofer+news by 173.231.115.58 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jan 2013 23:35:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 173.231.115.58 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (berkeley-unix) User-Mail-Address: sofer+news@sathlan.org Cancel-Lock: sha1:20Z049/OtmcJwq07RY+5fcHO7YY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88754 Archived-At: 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.