diff options
| author | Gerd Moellmann | 2000-11-09 23:05:07 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-09 23:05:07 +0000 |
| commit | 730c746cac7f9a817d543460fd5a11732f2f77af (patch) | |
| tree | e202d19d2a5fae2a703f472e5c5a377956a0251f | |
| parent | 9985d3915e18f5a9881258036f224a8bcd05e923 (diff) | |
| download | emacs-730c746cac7f9a817d543460fd5a11732f2f77af.tar.gz emacs-730c746cac7f9a817d543460fd5a11732f2f77af.zip | |
(toplevel): Use byte-compiling-files-p
if it is there.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 17 |
2 files changed, 19 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5ef8a4e941c..c505059bc75 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2000-11-09 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-11-09 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * simple.el (byte-compiling-files-p): New function. | ||
| 4 | |||
| 5 | * textmodes/ispell.el (toplevel): Use byte-compiling-files-p | ||
| 6 | if it is there. | ||
| 7 | |||
| 8 | * emacs-lisp/bytecomp.el (byte-compile-current-file): Bind it to | ||
| 9 | nil again. | ||
| 10 | |||
| 3 | * textmodes/ispell.el (ispell-library-path): Don't call | 11 | * textmodes/ispell.el (ispell-library-path): Don't call |
| 4 | check-ispell-version when byte-compiling because that starts | 12 | check-ispell-version when byte-compiling because that starts |
| 5 | an ispell process, and ispell might not be installed. | 13 | an ispell process, and ispell might not be installed. |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index fcb182c7842..77c98d9cf4d 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -810,8 +810,9 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 810 | (not xemacsp) | 810 | (not xemacsp) |
| 811 | 'reload)) | 811 | 'reload)) |
| 812 | 812 | ||
| 813 | (defvar ispell-library-path (unless (boundp 'byte-compile-current-file) | 813 | (defvar ispell-library-path (if (or (not (fboundp 'byte-compiling-files-p)) |
| 814 | (check-ispell-version)) | 814 | (not (byte-compiling-files-p))) |
| 815 | (check-ispell-version)) | ||
| 815 | "The directory where ispell dictionaries reside.") | 816 | "The directory where ispell dictionaries reside.") |
| 816 | 817 | ||
| 817 | (defvar ispell-process nil | 818 | (defvar ispell-process nil |
| @@ -828,7 +829,8 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 828 | 829 | ||
| 829 | ;;;###autoload | 830 | ;;;###autoload |
| 830 | (if (and ispell-menu-map-needed | 831 | (if (and ispell-menu-map-needed |
| 831 | (not (boundp 'byte-compile-current-file))) | 832 | (or (not (fboundp 'byte-compiling-files-p)) |
| 833 | (not (byte-compiling-files-p)))) | ||
| 832 | (let ((dicts (reverse (cons (cons "default" nil) ispell-dictionary-alist))) | 834 | (let ((dicts (reverse (cons (cons "default" nil) ispell-dictionary-alist))) |
| 833 | ;; `ispell-library-path' intentionally not defined in autoload | 835 | ;; `ispell-library-path' intentionally not defined in autoload |
| 834 | (path (and (boundp 'ispell-library-path) ispell-library-path)) | 836 | (path (and (boundp 'ispell-library-path) ispell-library-path)) |
| @@ -861,7 +863,8 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 861 | ;;; define commands in menu in opposite order you want them to appear. | 863 | ;;; define commands in menu in opposite order you want them to appear. |
| 862 | ;;;###autoload | 864 | ;;;###autoload |
| 863 | (if (and ispell-menu-map-needed | 865 | (if (and ispell-menu-map-needed |
| 864 | (not (boundp 'byte-compile-current-file))) | 866 | (or (not (fboundp 'byte-compiling-files-p)) |
| 867 | (not (byte-compiling-files-p)))) | ||
| 865 | (progn | 868 | (progn |
| 866 | (define-key ispell-menu-map [ispell-change-dictionary] | 869 | (define-key ispell-menu-map [ispell-change-dictionary] |
| 867 | '(menu-item "Change Dictionary..." ispell-change-dictionary | 870 | '(menu-item "Change Dictionary..." ispell-change-dictionary |
| @@ -889,7 +892,8 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 889 | 892 | ||
| 890 | ;;;###autoload | 893 | ;;;###autoload |
| 891 | (if (and ispell-menu-map-needed | 894 | (if (and ispell-menu-map-needed |
| 892 | (not (boundp 'byte-compile-current-file))) | 895 | (or (not (fboundp 'byte-compiling-files-p)) |
| 896 | (not (byte-compiling-files-p)))) | ||
| 893 | (progn | 897 | (progn |
| 894 | (define-key ispell-menu-map [ispell-continue] | 898 | (define-key ispell-menu-map [ispell-continue] |
| 895 | '(menu-item "Continue Spell-Checking" ispell-continue | 899 | '(menu-item "Continue Spell-Checking" ispell-continue |
| @@ -907,7 +911,8 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 907 | 911 | ||
| 908 | ;;;###autoload | 912 | ;;;###autoload |
| 909 | (if (and ispell-menu-map-needed | 913 | (if (and ispell-menu-map-needed |
| 910 | (not (boundp 'byte-compile-current-file))) | 914 | (or (not (fboundp 'byte-compiling-files-p)) |
| 915 | (not (byte-compiling-files-p)))) | ||
| 911 | (progn | 916 | (progn |
| 912 | (define-key ispell-menu-map [ispell-region] | 917 | (define-key ispell-menu-map [ispell-region] |
| 913 | '(menu-item "Spell-Check Region" ispell-region | 918 | '(menu-item "Spell-Check Region" ispell-region |