changeset 33349:b8015b527f27

(ispell-library-path): Don't call check-ispell-version when byte-compiling because that starts an ispell process, and ispell might not be installed. (toplevel): Don't set up a menu when byte-compiling.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 09 Nov 2000 16:09:04 +0000
parents af3d766a1234
children c5ea4f0666a4
files lisp/textmodes/ispell.el
diffstat 1 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/ispell.el	Thu Nov 09 16:07:56 2000 +0000
+++ b/lisp/textmodes/ispell.el	Thu Nov 09 16:09:04 2000 +0000
@@ -810,7 +810,8 @@
        (not xemacsp)
        'reload))
 
-(defvar ispell-library-path (check-ispell-version)
+(defvar ispell-library-path (unless (boundp 'byte-compile-current-file)
+			      (check-ispell-version))
   "The directory where ispell dictionaries reside.")
 
 (defvar ispell-process nil
@@ -826,7 +827,8 @@
   "Non-nil means that the OS supports asynchronous processes.")
 
 ;;;###autoload
-(if ispell-menu-map-needed
+(if (and ispell-menu-map-needed
+	 (not (boundp 'byte-compile-current-file)))
     (let ((dicts (reverse (cons (cons "default" nil) ispell-dictionary-alist)))
 	  ;; `ispell-library-path' intentionally not defined in autoload
 	  (path (and (boundp 'ispell-library-path) ispell-library-path))
@@ -858,7 +860,8 @@
 
 ;;; define commands in menu in opposite order you want them to appear.
 ;;;###autoload
-(if ispell-menu-map-needed
+(if (and ispell-menu-map-needed
+	 (not (boundp 'byte-compile-current-file)))
     (progn
       (define-key ispell-menu-map [ispell-change-dictionary]
 	'(menu-item "Change Dictionary..." ispell-change-dictionary
@@ -885,7 +888,8 @@
 		    :help "Complete word fragment at cursor"))))
 
 ;;;###autoload
-(if ispell-menu-map-needed
+(if (and ispell-menu-map-needed
+	 (not (boundp 'byte-compile-current-file)))
     (progn
       (define-key ispell-menu-map [ispell-continue]
 	'(menu-item "Continue Spell-Checking" ispell-continue
@@ -902,7 +906,8 @@
 		    :help "Spell-check only comments and strings"))))
 
 ;;;###autoload
-(if ispell-menu-map-needed
+(if (and ispell-menu-map-needed
+	 (not (boundp 'byte-compile-current-file)))
     (progn
       (define-key ispell-menu-map [ispell-region]
 	'(menu-item "Spell-Check Region" ispell-region