"Non-nil means use `look' rather than `grep'.
Default is based on whether `look' seems to be available."
:type 'boolean)
+(make-obsolete-variable 'ispell-look-p nil "29.1")
(defcustom ispell-have-new-look nil
"Non-nil means use the `-r' option (regexp) when running `look'."
:type 'boolean)
+(make-obsolete-variable 'ispell-have-new-look nil "29.1")
-(defcustom ispell-look-options (if ispell-have-new-look "-dfr" "-df")
+(defcustom ispell-look-options "-df"
"String of command options for `ispell-look-command'."
:type 'string)
(let* ((process-connection-type ispell-use-ptys-p)
(wild-p (string-search "*" word))
- (look-p (and ispell-look-p ; Only use look for an exact match.
- (or ispell-have-new-look (not wild-p))))
+ (look-p (and ispell-look-command
+ (file-exists-p ispell-look-command)
+ ;; Only use look for an exact match.
+ (not wild-p)))
(prog (if look-p ispell-look-command ispell-grep-command))
(args (if look-p ispell-look-options ispell-grep-options))
status results loc)