(autoload): Don't use ignore-errors.
[gnus] / lisp / sha1-el.el
index 6c0df3d..ab5804d 100644 (file)
@@ -54,7 +54,7 @@
 
 (require 'hex-util)
 
-(ignore-errors (autoload 'executable-find "executable"))
+(autoload 'executable-find "executable")
 
 ;;;
 ;;; external SHA1 function.
@@ -79,8 +79,9 @@ It must be a string \(program name\) or list of strings \(name and its args\)."
   :type '(repeat string)
   :group 'sha1)
 
-(defcustom sha1-use-external (ignore-errors
-                              (executable-find (car sha1-program)))
+(defcustom sha1-use-external (condition-case ()
+                                (executable-find (car sha1-program))
+                              (error))
   "*Use external SHA1 program.
 If this variable is set to nil, use internal function only."
   :type 'boolean