diff options
| author | Glenn Morris | 2008-02-21 09:01:37 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-21 09:01:37 +0000 |
| commit | a8a4617aa3860d8634aff6f04edd4bda6770c4bf (patch) | |
| tree | 219479fc6040b1db3d68a51e859a49839552f63e | |
| parent | c44647a35f833b83433b32d8c38fab1e755130b6 (diff) | |
| download | emacs-a8a4617aa3860d8634aff6f04edd4bda6770c4bf.tar.gz emacs-a8a4617aa3860d8634aff6f04edd4bda6770c4bf.zip | |
(spell-buffer, spell-word, spell-region)
(spell-string): Make obsolete, in favor of ispell.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/textmodes/spell.el | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a8753690a6..132a8cee142 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -14,6 +14,9 @@ | |||
| 14 | 14 | ||
| 15 | * subr.el (sit-for): Fix obsolete form for nil second argument. | 15 | * subr.el (sit-for): Fix obsolete form for nil second argument. |
| 16 | 16 | ||
| 17 | * textmodes/spell.el (spell-buffer, spell-word, spell-region) | ||
| 18 | (spell-string): Make obsolete, in favor of ispell. | ||
| 19 | |||
| 17 | 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp> | 20 | 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp> |
| 18 | 21 | ||
| 19 | * composite.el (compose-chars-after): Fix arguments for a function | 22 | * composite.el (compose-chars-after): Fix arguments for a function |
diff --git a/lisp/textmodes/spell.el b/lisp/textmodes/spell.el index ec451b50497..7cb011ec7ab 100644 --- a/lisp/textmodes/spell.el +++ b/lisp/textmodes/spell.el | |||
| @@ -62,6 +62,8 @@ If you do not want to change a word, just give the same word | |||
| 62 | as its \"correct\" spelling; then the query replace is skipped." | 62 | as its \"correct\" spelling; then the query replace is skipped." |
| 63 | (interactive) | 63 | (interactive) |
| 64 | (spell-region (point-min) (point-max) "buffer")) | 64 | (spell-region (point-min) (point-max) "buffer")) |
| 65 | ;;;###autoload | ||
| 66 | (make-obsolete 'spell-buffer 'ispell-buffer "23.1") | ||
| 65 | 67 | ||
| 66 | ;;;###autoload | 68 | ;;;###autoload |
| 67 | (defun spell-word () | 69 | (defun spell-word () |
| @@ -77,6 +79,8 @@ and `query-replace' the entire buffer to substitute it." | |||
| 77 | (forward-word 1) | 79 | (forward-word 1) |
| 78 | (setq end (point))) | 80 | (setq end (point))) |
| 79 | (spell-region beg end (buffer-substring beg end)))) | 81 | (spell-region beg end (buffer-substring beg end)))) |
| 82 | ;;;###autoload | ||
| 83 | (make-obsolete 'spell-word 'ispell-word "23.1") | ||
| 80 | 84 | ||
| 81 | ;;;###autoload | 85 | ;;;###autoload |
| 82 | (defun spell-region (start end &optional description) | 86 | (defun spell-region (start end &optional description) |
| @@ -138,7 +142,8 @@ for example, \"word\"." | |||
| 138 | (goto-char (point-min)) | 142 | (goto-char (point-min)) |
| 139 | (query-replace-regexp (concat "\\b" (regexp-quote word) "\\b") | 143 | (query-replace-regexp (concat "\\b" (regexp-quote word) "\\b") |
| 140 | newword))))))) | 144 | newword))))))) |
| 141 | 145 | ;;;###autoload | |
| 146 | (make-obsolete 'spell-region 'ispell-region "23.1") | ||
| 142 | 147 | ||
| 143 | ;;;###autoload | 148 | ;;;###autoload |
| 144 | (defun spell-string (string) | 149 | (defun spell-string (string) |
| @@ -161,6 +166,9 @@ for example, \"word\"." | |||
| 161 | (while (search-forward "\n" nil t) | 166 | (while (search-forward "\n" nil t) |
| 162 | (replace-match " ")) | 167 | (replace-match " ")) |
| 163 | (message "%sincorrect" (buffer-substring 1 (point-max))))))) | 168 | (message "%sincorrect" (buffer-substring 1 (point-max))))))) |
| 169 | ;;;###autoload | ||
| 170 | (make-obsolete 'spell-string "The `spell' package is obsolete - use `ispell'." | ||
| 171 | "23.1") | ||
| 164 | 172 | ||
| 165 | (provide 'spell) | 173 | (provide 'spell) |
| 166 | 174 | ||