diff options
| author | Leo Liu | 2013-09-28 10:54:27 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-09-28 10:54:27 +0800 |
| commit | e090f499ee3103d5d1677c654d3d09020d7959cd (patch) | |
| tree | 47756d1cd72e53502f521fd485f7a08e9bd99c0b | |
| parent | 7e138a62168e5a027c8818b344f73ae227cca547 (diff) | |
| download | emacs-e090f499ee3103d5d1677c654d3d09020d7959cd.tar.gz emacs-e090f499ee3103d5d1677c654d3d09020d7959cd.zip | |
Rename lookup-words to ispell-lookup-words
(ispell-complete-word, ispell-command-loop): All uses changed.
* cedet/semantic/texi.el (semantic-analyze-possible-completions): Use
ispell-lookup-words instead.
Fixes: debbugs:15460
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/cedet/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/cedet/semantic/texi.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 18 |
4 files changed, 24 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa7c08fcc39..39d284dac1c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-09-28 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * textmodes/ispell.el (ispell-lookup-words): Rename from | ||
| 4 | lookup-words. (Bug#15460) | ||
| 5 | (lookup-words): Obsolete. | ||
| 6 | (ispell-complete-word, ispell-command-loop): All uses changed. | ||
| 7 | |||
| 1 | 2013-09-28 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> | 8 | 2013-09-28 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> |
| 2 | 9 | ||
| 3 | * lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer. | 10 | * lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer. |
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index ed3301510f0..4a017644c84 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-09-28 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * semantic/texi.el (semantic-analyze-possible-completions): Use | ||
| 4 | ispell-lookup-words instead. (Bug#15460) | ||
| 5 | |||
| 1 | 2013-09-20 Glenn Morris <rgm@gnu.org> | 6 | 2013-09-20 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * semantic.el (semantic-new-buffer-fcn-was-run, semantic-active-p): | 8 | * semantic.el (semantic-new-buffer-fcn-was-run, semantic-active-p): |
diff --git a/lisp/cedet/semantic/texi.el b/lisp/cedet/semantic/texi.el index 34a85b8b79b..51105077188 100644 --- a/lisp/cedet/semantic/texi.el +++ b/lisp/cedet/semantic/texi.el | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | (require 'texinfo) | 32 | (require 'texinfo) |
| 33 | 33 | ||
| 34 | (defvar ede-minor-mode) | 34 | (defvar ede-minor-mode) |
| 35 | (declare-function lookup-words "ispell") | 35 | (declare-function ispell-lookup-words "ispell") |
| 36 | (declare-function ede-current-project "ede") | 36 | (declare-function ede-current-project "ede") |
| 37 | 37 | ||
| 38 | (defvar semantic-texi-super-regex | 38 | (defvar semantic-texi-super-regex |
| @@ -431,7 +431,7 @@ that start with that symbol." | |||
| 431 | ((member 'word (oref context :prefixclass)) | 431 | ((member 'word (oref context :prefixclass)) |
| 432 | ;; Do completion for words via ispell. | 432 | ;; Do completion for words via ispell. |
| 433 | (require 'ispell) | 433 | (require 'ispell) |
| 434 | (let ((word-list (lookup-words prefix))) | 434 | (let ((word-list (ispell-lookup-words prefix))) |
| 435 | (mapcar (lambda (f) (semantic-tag f 'word)) word-list)) | 435 | (mapcar (lambda (f) (semantic-tag f 'word)) word-list)) |
| 436 | ) | 436 | ) |
| 437 | (t nil)) | 437 | (t nil)) |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 3998fafa5cc..a361bdae64b 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -2407,7 +2407,7 @@ Global `ispell-quit' set to start location to continue spell session." | |||
| 2407 | " -- word-list: " | 2407 | " -- word-list: " |
| 2408 | (or ispell-complete-word-dict | 2408 | (or ispell-complete-word-dict |
| 2409 | ispell-alternate-dictionary)) | 2409 | ispell-alternate-dictionary)) |
| 2410 | miss (lookup-words new-word) | 2410 | miss (ispell-lookup-words new-word) |
| 2411 | choices miss | 2411 | choices miss |
| 2412 | line ispell-choices-win-default-height) | 2412 | line ispell-choices-win-default-height) |
| 2413 | (while (and choices ; adjust choices window. | 2413 | (while (and choices ; adjust choices window. |
| @@ -2613,8 +2613,9 @@ SPC: Accept word this time. | |||
| 2613 | (sit-for 5)) | 2613 | (sit-for 5)) |
| 2614 | (erase-buffer))))))) | 2614 | (erase-buffer))))))) |
| 2615 | 2615 | ||
| 2616 | (define-obsolete-function-alias 'lookup-words 'ispell-lookup-words "24.4") | ||
| 2616 | 2617 | ||
| 2617 | (defun lookup-words (word &optional lookup-dict) | 2618 | (defun ispell-lookup-words (word &optional lookup-dict) |
| 2618 | "Look up WORD in optional word-list dictionary LOOKUP-DICT. | 2619 | "Look up WORD in optional word-list dictionary LOOKUP-DICT. |
| 2619 | A `*' serves as a wild card. If no wild cards, `look' is used if it exists. | 2620 | A `*' serves as a wild card. If no wild cards, `look' is used if it exists. |
| 2620 | Otherwise the variable `ispell-grep-command' contains the command used to | 2621 | Otherwise the variable `ispell-grep-command' contains the command used to |
| @@ -3766,7 +3767,7 @@ Use APPEND to append the info to previous buffer if exists." | |||
| 3766 | 3767 | ||
| 3767 | ;;;###autoload | 3768 | ;;;###autoload |
| 3768 | (defun ispell-complete-word (&optional interior-frag) | 3769 | (defun ispell-complete-word (&optional interior-frag) |
| 3769 | "Try to complete the word before or under point (see `lookup-words'). | 3770 | "Try to complete the word before or under point. |
| 3770 | If optional INTERIOR-FRAG is non-nil then the word may be a character | 3771 | If optional INTERIOR-FRAG is non-nil then the word may be a character |
| 3771 | sequence inside of a word. | 3772 | sequence inside of a word. |
| 3772 | 3773 | ||
| @@ -3782,11 +3783,12 @@ Standard ispell choices are then available." | |||
| 3782 | word (car word) | 3783 | word (car word) |
| 3783 | possibilities | 3784 | possibilities |
| 3784 | (or (string= word "") ; Will give you every word | 3785 | (or (string= word "") ; Will give you every word |
| 3785 | (lookup-words (concat (and interior-frag "*") word | 3786 | (ispell-lookup-words |
| 3786 | (if (or interior-frag (null ispell-look-p)) | 3787 | (concat (and interior-frag "*") word |
| 3787 | "*")) | 3788 | (if (or interior-frag (null ispell-look-p)) |
| 3788 | (or ispell-complete-word-dict | 3789 | "*")) |
| 3789 | ispell-alternate-dictionary)))) | 3790 | (or ispell-complete-word-dict |
| 3791 | ispell-alternate-dictionary)))) | ||
| 3790 | (cond ((eq possibilities t) | 3792 | (cond ((eq possibilities t) |
| 3791 | (message "No word to complete")) | 3793 | (message "No word to complete")) |
| 3792 | ((null possibilities) | 3794 | ((null possibilities) |