diff options
| author | Stefan Monnier | 2000-04-17 11:00:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-04-17 11:00:39 +0000 |
| commit | fa72a6a13a3438744b310a95dce295bc811bf38b (patch) | |
| tree | a30bfaa068ebddca8ada53f6964cb39a791b0cdb | |
| parent | 86855ebd16347d21329e52d0cd95cb16e5c61fd5 (diff) | |
| download | emacs-fa72a6a13a3438744b310a95dce295bc811bf38b.tar.gz emacs-fa72a6a13a3438744b310a95dce295bc811bf38b.zip | |
(ispell-menu-map-needed): Check that ispell-process
is bound since this might be eval'd before ispell is loaded.
(ispell-message): Use a tiny bit less magic and a bit more hard data
to figure out what kind of sc-cite-regexp to use.
| -rw-r--r-- | lisp/textmodes/ispell.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 3a7f81b7d6f..206d8ce94a6 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -831,7 +831,7 @@ and added as a submenu of the \"Edit\" menu.") | |||
| 831 | :help "Supply explicit path to dictionary")) | 831 | :help "Supply explicit path to dictionary")) |
| 832 | (define-key ispell-menu-map [ispell-kill-ispell] | 832 | (define-key ispell-menu-map [ispell-kill-ispell] |
| 833 | '(menu-item "Kill Process" ispell-kill-ispell | 833 | '(menu-item "Kill Process" ispell-kill-ispell |
| 834 | :enable (and ispell-process | 834 | :enable (and (boundp 'ispell-process) ispell-process |
| 835 | (eq (ispell-process-status) 'run)) | 835 | (eq (ispell-process-status) 'run)) |
| 836 | :help "Terminate Ispell subprocess")) | 836 | :help "Terminate Ispell subprocess")) |
| 837 | (define-key ispell-menu-map [ispell-pdict-save] | 837 | (define-key ispell-menu-map [ispell-pdict-save] |
| @@ -2637,9 +2637,9 @@ Returns the sum shift due to changes in word replacements." | |||
| 2637 | (setq recheck-region ispell-filter | 2637 | (setq recheck-region ispell-filter |
| 2638 | ispell-filter nil ; save filter | 2638 | ispell-filter nil ; save filter |
| 2639 | shift (ispell-region | 2639 | shift (ispell-region |
| 2640 | word-start | 2640 | word-start |
| 2641 | (+ word-start (length replace-word)) | 2641 | (+ word-start (length replace-word)) |
| 2642 | t shift)) | 2642 | t shift)) |
| 2643 | (if (null shift) ; quitting check. | 2643 | (if (null shift) ; quitting check. |
| 2644 | (setq shift 0)) | 2644 | (setq shift 0)) |
| 2645 | (set-marker ispell-region-end region-end) | 2645 | (set-marker ispell-region-end region-end) |
| @@ -2653,8 +2653,8 @@ Returns the sum shift due to changes in word replacements." | |||
| 2653 | ;; Move line-start across word... | 2653 | ;; Move line-start across word... |
| 2654 | ;; new shift function does this now... | 2654 | ;; new shift function does this now... |
| 2655 | ;;(set-marker line-start (+ line-start | 2655 | ;;(set-marker line-start (+ line-start |
| 2656 | ;; (- (length replace) | 2656 | ;; (- (length replace) |
| 2657 | ;; (length (car poss))))) | 2657 | ;; (length (car poss))))) |
| 2658 | )) | 2658 | )) |
| 2659 | (if (not ispell-quit) | 2659 | (if (not ispell-quit) |
| 2660 | (let (message-log-max) | 2660 | (let (message-log-max) |
| @@ -2940,10 +2940,10 @@ You can bind this to the key C-c i in GNUS or mail by adding to | |||
| 2940 | " \\|\t")) | 2940 | " \\|\t")) |
| 2941 | (cite-regexp ;Prefix of quoted text | 2941 | (cite-regexp ;Prefix of quoted text |
| 2942 | (cond | 2942 | (cond |
| 2943 | ((featurep 'supercite) ; sc 3.0 | 2943 | ((functionp 'sc-cite-regexp) ; sc 3.0 |
| 2944 | (concat "\\(" (sc-cite-regexp) "\\)" "\\|" | 2944 | (concat "\\(" (sc-cite-regexp) "\\)" "\\|" |
| 2945 | (ispell-non-empty-string sc-reference-tag-string))) | 2945 | (ispell-non-empty-string sc-reference-tag-string))) |
| 2946 | ((featurep 'sc) ; sc 2.3 | 2946 | ((boundp 'sc-cite-regexp) ; sc 2.3 |
| 2947 | (concat "\\(" sc-cite-regexp "\\)" "\\|" | 2947 | (concat "\\(" sc-cite-regexp "\\)" "\\|" |
| 2948 | (ispell-non-empty-string sc-reference-tag-string))) | 2948 | (ispell-non-empty-string sc-reference-tag-string))) |
| 2949 | ((or (equal major-mode 'news-reply-mode) ;GNUS 4 & below | 2949 | ((or (equal major-mode 'news-reply-mode) ;GNUS 4 & below |