diff options
| author | Reuben Thomas | 2017-08-08 15:56:03 +0100 |
|---|---|---|
| committer | Reuben Thomas | 2017-08-20 11:55:40 +0100 |
| commit | fc2ccb2ae82aee1fe932351c19643f3fb7b9deaa (patch) | |
| tree | 23065d121f8115995cacb9b3590d913fa203911a | |
| parent | 60d417545a2852d36427799691792e4ddff8f86c (diff) | |
| download | emacs-fc2ccb2ae82aee1fe932351c19643f3fb7b9deaa.tar.gz emacs-fc2ccb2ae82aee1fe932351c19643f3fb7b9deaa.zip | |
Remove old comments and a redundant FIXME
* lisp/textmodes/ispell.el (ispell-process-line): Remove some old
commented code, a redundant FIXME, and outdated usage instructions.
| -rw-r--r-- | lisp/textmodes/ispell.el | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index e6ca32f20d9..7ae2c0cfa8a 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | ;;; ispell.el --- interface to International Ispell Versions 3.1 and 3.2 -*- lexical-binding:t -*- | 1 | ;;; ispell.el --- interface to spell checkers -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994-1995, 1997-2017 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994-1995, 1997-2017 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Ken Stevens <k.stevens@ieee.org> | 5 | ;; Author: Ken Stevens <k.stevens@ieee.org> |
| 6 | ;; Status : Release with 3.1.12+ and 3.2.0+ ispell. | ||
| 7 | ;; Keywords: unix wp | ||
| 8 | 6 | ||
| 9 | ;; This file is part of GNU Emacs. | 7 | ;; This file is part of GNU Emacs. |
| 10 | 8 | ||
| @@ -21,23 +19,11 @@ | |||
| 21 | ;; You should have received a copy of the GNU General Public License | 19 | ;; You should have received a copy of the GNU General Public License |
| 22 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | 20 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 23 | 21 | ||
| 24 | ;; Note: version numbers and time stamp are not updated | ||
| 25 | ;; when this file is edited for release with GNU Emacs. | ||
| 26 | |||
| 27 | ;;; Commentary: | 22 | ;;; Commentary: |
| 28 | 23 | ||
| 29 | ;; INSTRUCTIONS | 24 | ;; INSTRUCTIONS |
| 30 | 25 | ||
| 31 | ;; This code contains a section of user-settable variables that you | 26 | ;; Use the variable `ispell-local-dictionary-alist' to specify |
| 32 | ;; should inspect prior to installation. Look past the end of the history | ||
| 33 | ;; list. Set them up for your locale and the preferences of the majority | ||
| 34 | ;; of the users. Otherwise the users may need to set a number of variables | ||
| 35 | ;; themselves. | ||
| 36 | ;; You particularly may want to change the default dictionary for your | ||
| 37 | ;; country and language. | ||
| 38 | ;; Most dictionary changes should be made in this file so all users can | ||
| 39 | ;; enjoy them. Local or modified dictionaries are supported in your .emacs | ||
| 40 | ;; file. Use the variable `ispell-local-dictionary-alist' to specify | ||
| 41 | ;; your own dictionaries. | 27 | ;; your own dictionaries. |
| 42 | 28 | ||
| 43 | ;; Depending on the mail system you use, you may want to include these: | 29 | ;; Depending on the mail system you use, you may want to include these: |
| @@ -112,7 +98,7 @@ | |||
| 112 | ;; Need a way to select between different character mappings without separate | 98 | ;; Need a way to select between different character mappings without separate |
| 113 | ;; dictionary entries. | 99 | ;; dictionary entries. |
| 114 | ;; Multi-byte characters if not defined by current dictionary may result in the | 100 | ;; Multi-byte characters if not defined by current dictionary may result in the |
| 115 | ;; evil "misalignment error" in some versions of MULE Emacs. | 101 | ;; evil "misalignment error" in some versions of Emacs. |
| 116 | ;; On some versions of Emacs, growing the minibuffer fails. | 102 | ;; On some versions of Emacs, growing the minibuffer fails. |
| 117 | ;; see `ispell-help-in-bufferp'. | 103 | ;; see `ispell-help-in-bufferp'. |
| 118 | ;; Recursive edits (?C-r or ?R) inside a keyboard text replacement check (?r) | 104 | ;; Recursive edits (?C-r or ?R) inside a keyboard text replacement check (?r) |
| @@ -3524,17 +3510,9 @@ Returns the sum SHIFT due to changes in word replacements." | |||
| 3524 | (setq ispell-filter recheck-region | 3510 | (setq ispell-filter recheck-region |
| 3525 | recheck-region nil | 3511 | recheck-region nil |
| 3526 | replace replace-word))))) | 3512 | replace replace-word))))) |
| 3513 | (setq shift (+ shift (- (length replace) word-len))))) | ||
| 3527 | 3514 | ||
| 3528 | (setq shift (+ shift (- (length replace) word-len))) | ||
| 3529 | |||
| 3530 | ;; Move line-start across word... | ||
| 3531 | ;; new shift function does this now... | ||
| 3532 | ;;(set-marker line-start (+ line-start | ||
| 3533 | ;; (- (length replace) | ||
| 3534 | ;; (length (car poss))))) | ||
| 3535 | )) | ||
| 3536 | (if (not ispell-quit) | 3515 | (if (not ispell-quit) |
| 3537 | ;; FIXME: remove redundancy with identical code above. | ||
| 3538 | (let (message-log-max) | 3516 | (let (message-log-max) |
| 3539 | (message | 3517 | (message |
| 3540 | "Continuing spelling check using %s with %s dictionary..." | 3518 | "Continuing spelling check using %s with %s dictionary..." |