GNU bug report logs - #20870
24.5; Options presented in ispell *Choices* should be accessible via keyboard

Previous Next

Package: emacs;

Reported by: Jürgen Hartmann <juergen_hartmann_ <at> hotmail.com>

Date: Mon, 22 Jun 2015 09:17:01 UTC

Severity: minor

Tags: wontfix

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jürgen Hartmann <juergen_hartmann_ <at> hotmail.com>
To: "20870 <at> debbugs.gnu.org" <20870 <at> debbugs.gnu.org>
Subject: bug#20870: 24.5; [PATCH] Options presented in ispell *Choices* should be accessible via keyboard
Date: Sat, 27 Jun 2015 12:36:13 +0200
[Message part 1 (text/plain, inline)]
The attached patch tries to offer a workaround for this bug and to provide a
feature that was asked for by Emanuel Berg in

   http://lists.gnu.org/archive/html/help-gnu-emacs/2015-06/msg00363.html

i.e. that Ispell uses certain keys in a certain order for the offers in its
*Choices* buffer.

Therefore, the idea is to use a customizable variable to hold a vector of key
specifications that are used by ispell-command-loop in the given order to
assemble its options.

The patch alters ispell-command-loop accordingly introducing
ispell-option-keys as that customizable variable. Its default value is chosen
such, that the first keys in the vector are digits and lowercase letters,
since these are directly accessible on most keyboards without using any
modifiers.

As a minor detail the patch defines the inline function ispell-insert-choices
to hold some code that is used repetitively in ispell-command-loop.

The patch applies to the version of ispell.el that was shipped with the Emacs
24.4 release. And that is also the Emacs version the patch was tested on.

Juergen

 		 	   		  
[choices-patch.patch (application/octet-stream, attachment)]

This bug report was last modified 4 years and 274 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.