From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?B?SvxyZ2VuIEhhcnRtYW5u?= Newsgroups: gmane.emacs.help Subject: RE: How to enter for example \200 offered by ispell in its buffer *Choices* Date: Sat, 27 Jun 2015 13:34:53 +0200 Message-ID: References: , <87wpywvlyu.fsf@debian.uxu>, <87egl42f7o.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435404926 15244 80.91.229.3 (27 Jun 2015 11:35:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jun 2015 11:35:26 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 27 13:35:17 2015 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 1Z8oOC-0001ra-6v for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 13:35:16 +0200 Original-Received: from localhost ([::1]:35161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oOB-00086f-0m for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jun 2015 07:35:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oNv-00086A-Ma for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 07:35:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8oNq-0004RV-Lc for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 07:34:59 -0400 Original-Received: from dub004-omc4s33.hotmail.com ([157.55.2.108]:59020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8oNq-0004RI-GH for help-gnu-emacs@gnu.org; Sat, 27 Jun 2015 07:34:54 -0400 Original-Received: from DUB124-W38 ([157.55.2.71]) by DUB004-OMC4S33.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sat, 27 Jun 2015 04:34:53 -0700 X-TMN: [m0aNJ9QGq8MnIVdv/sv38MrHU1TVaNmt] X-Originating-Email: [juergen_hartmann_@hotmail.com] Importance: Normal In-Reply-To: <87egl42f7o.fsf@gmail.com> X-OriginalArrivalTime: 27 Jun 2015 11:34:53.0645 (UTC) FILETIME=[493097D0:01D0B0CD] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 157.55.2.108 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:105219 Archived-At: Thank you Oleh Krehel for your suggestion:=0A= =0A= > The selection itself should be possible to achieve with avy.el=0A= > (https://elpa.gnu.org/packages/avy.html). It extends to as many=0A= > candidates as you can fit on a screen=2C and the decision chars are=0A= > composed of a user-defined set=2C e.g. "a"=2C "s"=2C "d"=2C "fa"=2C "fs"= =2C "fd".=0A= =0A= The package avy.el seems to provide the tools for a very professional=0A= solution for such kind of issues.=0A= =0A= > In case the=0A= > dictionary is "[a-zA-Z]"=2C it's likely that most candidates can be=0A= > selected with just one char=2C just like with `ispell' currently.=0A= =0A= I don't think that short key sequences would be a big obstacle here. After= =0A= all=2C they are easier to perform than C-M-AltGr-something-else-=2C=0A= which would be the necessary if one tries to map many options to a rather= =0A= limited number of single keys. So this also pleads for avy.el.=0A= =0A= > Here's a crude (but working) implementation:=0A= >=0A= > (defun ispell-command-loop (miss guess word start end)=0A= > (let ((wnd (selected-window)))=0A= > (pop-to-buffer "*avy-ispell*")=0A= > (erase-buffer)=0A= > (insert (mapconcat #'identity miss " "))=0A= > (setq truncate-lines nil)=0A= > (avy-goto-word-0 nil)=0A= > (let ((selected (thing-at-point 'word)))=0A= > (select-window wnd)=0A= > selected)))=0A= =0A= Good enough to show the principle.=0A= =0A= > Maybe someone interested and more knowledgeable about ispell.el could=0A= > refine this implementation.=0A= =0A= That would be great. Unfortunately I am not able to do that myself=2C but I= =0A= have posted a crude workaround for the issues at hand in=0A= =0A= =A0=A0 http://lists.gnu.org/archive/html/bug-gnu-emacs/2015-06/msg00981.htm= l=0A= =0A= that is by far not so professional as an avy.el solution would be.=0A= =0A= Juergen=0A= =0A= =