# HG changeset patch # User Eli Zaretskii # Date 1115481879 0 # Node ID 12ab35f4126acabd60815adf7475966f56c2b2e1 # Parent f1cc654dbbfbffffc76b38005e81134848f5faa8 (ispell-program-name): Try looking for "aspell" along exec-path, and if found, use it as the default speller program. diff -r f1cc654dbbfb -r 12ab35f4126a lisp/textmodes/ispell.el --- a/lisp/textmodes/ispell.el Sat May 07 15:55:59 2005 +0000 +++ b/lisp/textmodes/ispell.el Sat May 07 16:04:39 2005 +0000 @@ -301,7 +301,9 @@ :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)