changeset 62156:12ab35f4126a

(ispell-program-name): Try looking for "aspell" along exec-path, and if found, use it as the default speller program.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 07 May 2005 16:04:39 +0000
parents f1cc654dbbfb
children 9e2e9dd39743
files lisp/textmodes/ispell.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)