and if found, use it as the default speller program.
+2005-05-07 Eli Zaretskii <eliz@gnu.org>
+
+ * textmodes/ispell.el (ispell-program-name): Try looking for
+ "aspell" along exec-path, and if found, use it as the default
+ speller program.
+
2005-05-07 Jirka Kosek <jirka@kosek.cz> (tiny change)
* international/mule.el (sgml-xml-auto-coding-function): Recognize
:type 'integer
:group 'ispell)
-(defcustom ispell-program-name "ispell"
+(defcustom ispell-program-name
+ (or (locate-file "aspell" exec-path exec-suffixes 'file-executable-p)
+ "ispell")
"Program invoked by \\[ispell-word] and \\[ispell-region] commands."
:type 'string
:group 'ispell)