diff options
| author | Stephen Eglen | 1998-03-07 18:19:38 +0000 |
|---|---|---|
| committer | Stephen Eglen | 1998-03-07 18:19:38 +0000 |
| commit | 4bef911093051ec6dfca2e1415e42baee60f8e37 (patch) | |
| tree | 01e2642e0ce7282e95907bc908e065a2817d30c1 /lisp/textmodes | |
| parent | 14d4446b73f2f52becebc28d96e82f6ff5fe8e57 (diff) | |
| download | emacs-4bef911093051ec6dfca2e1415e42baee60f8e37.tar.gz emacs-4bef911093051ec6dfca2e1415e42baee60f8e37.zip | |
Customized.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/ispell4.el | 69 |
1 files changed, 48 insertions, 21 deletions
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el index 1bca6748052..cce4e0c876b 100644 --- a/lisp/textmodes/ispell4.el +++ b/lisp/textmodes/ispell4.el | |||
| @@ -28,8 +28,15 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (defvar ispell-have-new-look t | 31 | (defgroup ispell4 nil |
| 32 | "Non-nil means use the `-r' option when running `look'.") | 32 | "Interface to GNU ISPELL version 4." |
| 33 | :prefix "ispell-" | ||
| 34 | :group 'applications) | ||
| 35 | |||
| 36 | (defcustom ispell-have-new-look t | ||
| 37 | "Non-nil means use the `-r' option when running `look'." | ||
| 38 | :type 'boolean | ||
| 39 | :group 'ispell4) | ||
| 33 | 40 | ||
| 34 | (defvar ispell-enable-tex-parser nil | 41 | (defvar ispell-enable-tex-parser nil |
| 35 | "Non-nil enables experimental TeX parser in Ispell for TeX-mode buffers.") | 42 | "Non-nil enables experimental TeX parser in Ispell for TeX-mode buffers.") |
| @@ -38,16 +45,23 @@ | |||
| 38 | (defvar ispell-next-message nil | 45 | (defvar ispell-next-message nil |
| 39 | "An integer: where in `*ispell*' buffer to find next message from Ispell.") | 46 | "An integer: where in `*ispell*' buffer to find next message from Ispell.") |
| 40 | 47 | ||
| 41 | (defvar ispell-command "ispell" | 48 | (defcustom ispell-command "ispell" |
| 42 | "Command for running Ispell.") | 49 | "Command for running Ispell." |
| 43 | (defvar ispell-command-options nil | 50 | :type 'string |
| 51 | :group 'ispell4) | ||
| 52 | |||
| 53 | (defcustom ispell-command-options nil | ||
| 44 | "*String (or list of strings) to pass to Ispell as command arguments. | 54 | "*String (or list of strings) to pass to Ispell as command arguments. |
| 45 | You can specify your private dictionary via the -p <filename> option. | 55 | You can specify your private dictionary via the -p <filename> option. |
| 46 | The -S option is always passed to Ispell as the last parameter, | 56 | The -S option is always passed to Ispell as the last parameter, |
| 47 | and need not be mentioned here.") | 57 | and need not be mentioned here." |
| 58 | :type '(repeat string) | ||
| 59 | :group 'ispell4) | ||
| 48 | 60 | ||
| 49 | (defvar ispell-look-command "look" | 61 | (defcustom ispell-look-command "look" |
| 50 | "*Command for running look.") | 62 | "*Command for running look." |
| 63 | :type 'string | ||
| 64 | :group 'ispell4) | ||
| 51 | 65 | ||
| 52 | ;Each marker in this list points to the start of a word that | 66 | ;Each marker in this list points to the start of a word that |
| 53 | ;ispell thought was bad last time it did the :file command. | 67 | ;ispell thought was bad last time it did the :file command. |
| @@ -629,8 +643,10 @@ L lookup; Q quit\n") | |||
| 629 | (kill-emacs 1)) | 643 | (kill-emacs 1)) |
| 630 | (write-region (point-min) (point-max) "ispell.info")) | 644 | (write-region (point-min) (point-max) "ispell.info")) |
| 631 | 645 | ||
| 632 | (defvar ispell-highlight t | 646 | (defcustom ispell-highlight t |
| 633 | "*Non-nil means to highlight ispell words.") | 647 | "*Non-nil means to highlight ispell words." |
| 648 | :type 'boolean | ||
| 649 | :group 'ispell4) | ||
| 634 | 650 | ||
| 635 | (defvar ispell-overlay nil) | 651 | (defvar ispell-overlay nil) |
| 636 | 652 | ||
| @@ -756,12 +772,15 @@ L lookup; Q quit\n") | |||
| 756 | 772 | ||
| 757 | ;;;; User-defined variables. | 773 | ;;;; User-defined variables. |
| 758 | 774 | ||
| 759 | (defvar ispell-look-dictionary nil | 775 | (defcustom ispell-look-dictionary nil |
| 760 | "*If non-nil then spelling dictionary as string for `ispell-complete-word'. | 776 | "*If non-nil then spelling dictionary as string for `ispell-complete-word'. |
| 761 | Overrides default dictionary file such as \"/usr/dict/words\" or GNU look's | 777 | Overrides default dictionary file such as \"/usr/dict/words\" or GNU look's |
| 762 | \"${prefix}/lib/ispell/ispell.words\"") | 778 | \"${prefix}/lib/ispell/ispell.words\"" |
| 779 | :type '(choice (const nil) file) | ||
| 780 | :group 'ispell4) | ||
| 781 | |||
| 763 | 782 | ||
| 764 | (defvar ispell-gnu-look-still-broken-p nil | 783 | (defcustom ispell-gnu-look-still-broken-p nil |
| 765 | "*t if GNU look -r can give different results with and without trailing `.*'. | 784 | "*t if GNU look -r can give different results with and without trailing `.*'. |
| 766 | Example: `look -dfr \"^ya\" foo' returns nothing, while `look -dfr \"^ya.*\" foo' | 785 | Example: `look -dfr \"^ya\" foo' returns nothing, while `look -dfr \"^ya.*\" foo' |
| 767 | returns `yacc', where `foo' is a dictionary file containing the three lines | 786 | returns `yacc', where `foo' is a dictionary file containing the three lines |
| @@ -772,7 +791,9 @@ returns `yacc', where `foo' is a dictionary file containing the three lines | |||
| 772 | 791 | ||
| 773 | Both commands should return `yacc'. If `ispell-complete-word' erroneously | 792 | Both commands should return `yacc'. If `ispell-complete-word' erroneously |
| 774 | states that no completions exist for a string, then setting this variable to t | 793 | states that no completions exist for a string, then setting this variable to t |
| 775 | will help find those completions.") | 794 | will help find those completions." |
| 795 | :type 'boolean | ||
| 796 | :group 'ispell4) | ||
| 776 | 797 | ||
| 777 | ;;;; Internal variables. | 798 | ;;;; Internal variables. |
| 778 | 799 | ||
| @@ -959,10 +980,12 @@ an interior word fragment. `ispell-have-new-look' should be t." | |||
| 959 | "\\'\\`" ; An unmatchable string if string is null. | 980 | "\\'\\`" ; An unmatchable string if string is null. |
| 960 | (regexp-quote string))) | 981 | (regexp-quote string))) |
| 961 | 982 | ||
| 962 | (defvar ispell-message-cite-regexp "^ \\|^\t" | 983 | (defcustom ispell-message-cite-regexp "^ \\|^\t" |
| 963 | "*Regular expression to match lines cited from one message into another.") | 984 | "*Regular expression to match lines cited from one message into another." |
| 985 | :type 'regexp | ||
| 986 | :group 'ispell4) | ||
| 964 | 987 | ||
| 965 | (defvar ispell-message-text-end | 988 | (defcustom ispell-message-text-end |
| 966 | (concat "^\\(" (mapconcat (function identity) | 989 | (concat "^\\(" (mapconcat (function identity) |
| 967 | '( | 990 | '( |
| 968 | ;; Matches postscript files. | 991 | ;; Matches postscript files. |
| @@ -979,10 +1002,14 @@ an interior word fragment. `ispell-have-new-look' should be t." | |||
| 979 | "\\)") | 1002 | "\\)") |
| 980 | "*End of text which will be checked in ispell-message. | 1003 | "*End of text which will be checked in ispell-message. |
| 981 | If it is a string, limit at first occurrence of that regular expression. | 1004 | If it is a string, limit at first occurrence of that regular expression. |
| 982 | Otherwise, it must be a function which is called to get the limit.") | 1005 | Otherwise, it must be a function which is called to get the limit." |
| 1006 | :type '(choice string function) | ||
| 1007 | :group 'ispell4) | ||
| 983 | 1008 | ||
| 984 | (defvar ispell-message-limit (* 100 80) | 1009 | (defcustom ispell-message-limit (* 100 80) |
| 985 | "*Ispell-message will check no more than this number of characters.") | 1010 | "*Ispell-message will check no more than this number of characters." |
| 1011 | :type 'integer | ||
| 1012 | :group 'ispell4) | ||
| 986 | 1013 | ||
| 987 | ;;;autoload | 1014 | ;;;autoload |
| 988 | (defun ispell-message () | 1015 | (defun ispell-message () |
| @@ -1088,4 +1115,4 @@ Or you can bind the function to C-c i in gnus or mail with: | |||
| 1088 | 1115 | ||
| 1089 | (provide 'ispell) | 1116 | (provide 'ispell) |
| 1090 | 1117 | ||
| 1091 | ;;; ispell.el ends here | 1118 | ;;; ispell4.el ends here |