all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#67665: 30.0.50; ispell-complete-word only suggests proper nouns
@ 2023-12-06 19:57 Dmitry Gutov
  0 siblings, 0 replies; only message in thread
From: Dmitry Gutov @ 2023-12-06 19:57 UTC (permalink / raw)
  To: 67665

Testing the new completion function using ispell, I've noticed the
following problem. It's also easily reproducible on my system with
'M-x ispell-complete-word'.

Only proper nouns (words originally capitalized in the dicitonary) are 
suggested.

Examples:

1. Type 'aard', then 'M-x ispell-complete-word'.
2. No completions.

1. Type 'Az', then 'M-x ispell-complete-word'.
2. The full completions list starts with "Azana" and ends with
"Aztlan's", with no "azimuth" in the list. Only geographic names in
there.

The full dictionary does contain the worth "azimuth", btw:

   (member "azimuth" (ispell-lookup-words ""))
   ;; => ("azimuth" "azimuth's" "azimuths" "azure" "azure's" ...

or

   (member "azimuth" (ispell-lookup-words "a*"))
   ;; => ("azimuth" "azimuth's" "azimuths" "azure" "azure's" ...

however:

   (member "azimuth" (ispell-lookup-words "a"))
   ;; => nil

So it looks like the problem is in the use of the "look" program.
/usr/share/dict/words (on my current system, at least) is sorted so that
"a" comes after "Z", not after "A".

Could be a distribution bug (is dict supposed to be generated compatibly
with 'look'?) Otherwise, it seems best to avoid using 'look' altogether. 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-06 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 19:57 bug#67665: 30.0.50; ispell-complete-word only suggests proper nouns Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.