diff options
| author | Roland Winkler | 2006-05-21 20:25:43 +0000 |
|---|---|---|
| committer | Roland Winkler | 2006-05-21 20:25:43 +0000 |
| commit | 41d207e1aa125932aeebde221ef034978a721957 (patch) | |
| tree | 03c8505ffea666b390832b1e1ada6ce95a158709 | |
| parent | 6fedb9f9238f4c5e272c99e810abbc1ad6e9b24f (diff) | |
| download | emacs-41d207e1aa125932aeebde221ef034978a721957.tar.gz emacs-41d207e1aa125932aeebde221ef034978a721957.zip | |
(ispell-format-word): Make this the alias for the following variable.
(ispell-format-word-function): Make this the real name.
(ispell-message-text-end): Mark as risky.
| -rw-r--r-- | lisp/textmodes/ispell.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index fed06a572bb..7bfedb1bd97 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -416,11 +416,12 @@ The following values are supported: | |||
| 416 | :type 'boolean | 416 | :type 'boolean |
| 417 | :group 'ispell) | 417 | :group 'ispell) |
| 418 | 418 | ||
| 419 | (defcustom ispell-format-word (function upcase) | 419 | (defcustom ispell-format-word-function (function upcase) |
| 420 | "*Formatting function for displaying word being spell checked. | 420 | "*Formatting function for displaying word being spell checked. |
| 421 | The function must take one string argument and return a string." | 421 | The function must take one string argument and return a string." |
| 422 | :type 'function | 422 | :type 'function |
| 423 | :group 'ispell) | 423 | :group 'ispell) |
| 424 | (defvaralias 'ispell-format-word 'ispell-format-word-function) | ||
| 424 | 425 | ||
| 425 | (defcustom ispell-use-framepop-p nil | 426 | (defcustom ispell-use-framepop-p nil |
| 426 | "When non-nil ispell uses framepop to display choices in a dedicated frame. | 427 | "When non-nil ispell uses framepop to display choices in a dedicated frame. |
| @@ -1595,7 +1596,7 @@ quit spell session exited." | |||
| 1595 | ;; But that is silly; if the user asks for it, we should do it. - rms. | 1596 | ;; But that is silly; if the user asks for it, we should do it. - rms. |
| 1596 | (or quietly | 1597 | (or quietly |
| 1597 | (message "Checking spelling of %s..." | 1598 | (message "Checking spelling of %s..." |
| 1598 | (funcall ispell-format-word word))) | 1599 | (funcall ispell-format-word-function word))) |
| 1599 | (ispell-send-string "%\n") ; put in verbose mode | 1600 | (ispell-send-string "%\n") ; put in verbose mode |
| 1600 | (ispell-send-string (concat "^" word "\n")) | 1601 | (ispell-send-string (concat "^" word "\n")) |
| 1601 | ;; wait until ispell has processed word | 1602 | ;; wait until ispell has processed word |
| @@ -1611,7 +1612,7 @@ quit spell session exited." | |||
| 1611 | (cond ((eq poss t) | 1612 | (cond ((eq poss t) |
| 1612 | (or quietly | 1613 | (or quietly |
| 1613 | (message "%s is correct" | 1614 | (message "%s is correct" |
| 1614 | (funcall ispell-format-word word))) | 1615 | (funcall ispell-format-word-function word))) |
| 1615 | (and (fboundp 'extent-at) | 1616 | (and (fboundp 'extent-at) |
| 1616 | (extent-at start) | 1617 | (extent-at start) |
| 1617 | (and (fboundp 'delete-extent) | 1618 | (and (fboundp 'delete-extent) |
| @@ -1619,8 +1620,8 @@ quit spell session exited." | |||
| 1619 | ((stringp poss) | 1620 | ((stringp poss) |
| 1620 | (or quietly | 1621 | (or quietly |
| 1621 | (message "%s is correct because of root %s" | 1622 | (message "%s is correct because of root %s" |
| 1622 | (funcall ispell-format-word word) | 1623 | (funcall ispell-format-word-function word) |
| 1623 | (funcall ispell-format-word poss))) | 1624 | (funcall ispell-format-word-function poss))) |
| 1624 | (and (fboundp 'extent-at) | 1625 | (and (fboundp 'extent-at) |
| 1625 | (extent-at start) | 1626 | (extent-at start) |
| 1626 | (and (fboundp 'delete-extent) | 1627 | (and (fboundp 'delete-extent) |
| @@ -1633,7 +1634,8 @@ quit spell session exited." | |||
| 1633 | (set-extent-property ext 'face ispell-highlight-face) | 1634 | (set-extent-property ext 'face ispell-highlight-face) |
| 1634 | (set-extent-property ext 'priority 2000))) | 1635 | (set-extent-property ext 'priority 2000))) |
| 1635 | (beep) | 1636 | (beep) |
| 1636 | (message "%s is incorrect"(funcall ispell-format-word word)))) | 1637 | (message "%s is incorrect" |
| 1638 | (funcall ispell-format-word-function word)))) | ||
| 1637 | (t ; prompt for correct word. | 1639 | (t ; prompt for correct word. |
| 1638 | (save-window-excursion | 1640 | (save-window-excursion |
| 1639 | (setq replace (ispell-command-loop | 1641 | (setq replace (ispell-command-loop |
| @@ -3359,6 +3361,7 @@ Don't read buffer-local settings or word lists." | |||
| 3359 | "*End of text which will be checked in `ispell-message'. | 3361 | "*End of text which will be checked in `ispell-message'. |
| 3360 | If it is a string, limit at first occurrence of that regular expression. | 3362 | If it is a string, limit at first occurrence of that regular expression. |
| 3361 | Otherwise, it must be a function which is called to get the limit.") | 3363 | Otherwise, it must be a function which is called to get the limit.") |
| 3364 | (put 'ispell-message-text-end 'risky-local-variable t) | ||
| 3362 | 3365 | ||
| 3363 | 3366 | ||
| 3364 | (defun ispell-mime-multipartp (&optional limit) | 3367 | (defun ispell-mime-multipartp (&optional limit) |