>> Index: lisp/textmodes/ispell.el >> =================================================================== >> RCS file: /cvsroot/emacs/emacs/lisp/textmodes/ispell.el,v >> retrieving revision 1.162 >> diff -u -r1.162 ispell.el >> --- lisp/textmodes/ispell.el 7 May 2005 16:04:39 -0000 1.162 >> +++ lisp/textmodes/ispell.el 10 May 2005 00:05:05 -0000 >> @@ -302,7 +302,8 @@ >> :group 'ispell) >> >> (defcustom ispell-program-name >> - (or (locate-file "aspell" exec-path exec-suffixes 'file-executable-p) >> + (or (and ispell-really-aspell >> + (locate-file "aspell" exec-path exec-suffixes 'file-executable-p)) >> "ispell") > > ??? Does this really work? AFAIK, ispell-really-aspell is set when > ispell.el invokes the speller for the first time, not before that. So > this defcustom wuill never try aspell, I think.
This may be needed when users set `ispell-really-aspell' explicitly in .emacs. However, after looking at ispell.el it seems that `ispell-check-version' always is called before invoking the speller for the first time. So maybe the second part of my patch makes the search for aspell in defcustom unnecessary, and its initial value should be reverted to "ispell". Note that automatic changing the value of `ispell-program-name' in `ispell-check-version' might surprise users of the aspell's implementation of ispell. Anyhow, this is the better place to change ispell program name to "aspell" than defcustom. -- Juri Linkov http://www.jurta.org/emacs/ _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel