Improve ispell.el word completion handling.
authorAgustín Martín <agustin.martin@hispalinux.es>
Wed, 7 Jul 2010 10:30:57 +0000 (12:30 +0200)
committerAgustín Martín <agustin.martin@hispalinux.es>
Wed, 7 Jul 2010 10:30:57 +0000 (12:30 +0200)
commitfd5539c6de4df242b517a73ced2fc1ff1f661227
tree3d6bc36b4b0d96283572ca0389ef76145c61172b
parented3751c8245cbf523caf4975f654d459f070ea9a
Improve ispell.el word completion handling.

* ispell.el (ispell-alternate-dictionary): Use file-readable-p.
  Return nil if no word-list is found at default locations.
 (ispell-complete-word-dict): Default to nil.
 (ispell-command-loop): Use 'word-list' when using lookup-words.
 (lookup-words): Use ispell-complete-word-dict or
 ispell-alternate-dictionary.  Check for word-list availability
 and handle errors if needed with better messages (Bug#6539).
 (ispell-complete-word): Use ispell-complete-word-dict or
 ispell-alternate-dictionary.
lisp/ChangeLog
lisp/textmodes/ispell.el