diff options
| author | Juri Linkov | 2005-07-09 20:49:10 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-07-09 20:49:10 +0000 |
| commit | 4a65d2b34e521644e9b038c67a992bac8b4ca22d (patch) | |
| tree | 6b9533eb1389be8b3032fcf29c30f02d8a8051cc | |
| parent | d634a3a2de46f85f0b1f11f0b7b450419dbc0632 (diff) | |
| download | emacs-4a65d2b34e521644e9b038c67a992bac8b4ca22d.tar.gz emacs-4a65d2b34e521644e9b038c67a992bac8b4ca22d.zip | |
(ispell-command-loop): Add current dictionary name and program name
to mode-line-format.
(ispell-region, ispell-process-line): Add current dictionary name
and program name to messages.
| -rw-r--r-- | lisp/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 25 |
2 files changed, 36 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e15f333462c..16cd2598953 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2005-07-09 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * fringe.el (fringe-mode): Add period in docstring. | ||
| 4 | (fringe-query-style): Build prompt depending on `all-frames' arg. | ||
| 5 | |||
| 6 | * dired.el (dired-marker-char): Avoid quotations for `do' and `mark' | ||
| 7 | to not create links to unrelated functions in the Help buffer. | ||
| 8 | |||
| 9 | * progmodes/compile.el (compilation-mode-hook, compilation-mode): | ||
| 10 | Doc fix. | ||
| 11 | |||
| 12 | * simple.el (next-error-hook): New variable. | ||
| 13 | (next-error): Use it. Doc fix. | ||
| 14 | |||
| 15 | * textmodes/ispell.el (ispell-command-loop): Add current | ||
| 16 | dictionary name and program name to mode-line-format. | ||
| 17 | (ispell-region, ispell-process-line): Add current dictionary name | ||
| 18 | and program name to messages. | ||
| 19 | |||
| 1 | 2005-07-08 Jay Belanger <belanger@truman.edu> | 20 | 2005-07-08 Jay Belanger <belanger@truman.edu> |
| 2 | 21 | ||
| 3 | * calc/calc.el (calc-embedded-announce-formula-alist) | 22 | * calc/calc.el (calc-embedded-announce-formula-alist) |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index ff0cecf5af2..3e08cf4a6f5 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1659,7 +1659,10 @@ Global `ispell-quit' set to start location to continue spell session." | |||
| 1659 | ;; setup the *Choices* buffer with valid data. | 1659 | ;; setup the *Choices* buffer with valid data. |
| 1660 | (save-excursion | 1660 | (save-excursion |
| 1661 | (set-buffer (get-buffer-create ispell-choices-buffer)) | 1661 | (set-buffer (get-buffer-create ispell-choices-buffer)) |
| 1662 | (setq mode-line-format (concat "-- %b -- word: " word)) | 1662 | (setq mode-line-format |
| 1663 | (concat "-- %b -- word: " word | ||
| 1664 | " -- dict: " (or ispell-current-dictionary "default") | ||
| 1665 | " -- prog: " (file-name-nondirectory ispell-program-name))) | ||
| 1663 | ;; XEmacs: no need for horizontal scrollbar in choices window | 1666 | ;; XEmacs: no need for horizontal scrollbar in choices window |
| 1664 | (with-no-warnings | 1667 | (with-no-warnings |
| 1665 | (and (fboundp 'set-specifier) | 1668 | (and (fboundp 'set-specifier) |
| @@ -1819,9 +1822,10 @@ Global `ispell-quit' set to start location to continue spell session." | |||
| 1819 | (erase-buffer) | 1822 | (erase-buffer) |
| 1820 | (setq count ?0 | 1823 | (setq count ?0 |
| 1821 | skipped 0 | 1824 | skipped 0 |
| 1822 | mode-line-format (concat | 1825 | mode-line-format |
| 1823 | "-- %b -- word: " | 1826 | (concat "-- %b -- word: " new-word |
| 1824 | new-word) | 1827 | " -- dict: " |
| 1828 | ispell-alternate-dictionary) | ||
| 1825 | miss (lookup-words new-word) | 1829 | miss (lookup-words new-word) |
| 1826 | choices miss | 1830 | choices miss |
| 1827 | line ispell-choices-win-default-height) | 1831 | line ispell-choices-win-default-height) |
| @@ -2512,9 +2516,10 @@ Return nil if spell session is quit, | |||
| 2512 | (rstart (make-marker))) | 2516 | (rstart (make-marker))) |
| 2513 | (unwind-protect | 2517 | (unwind-protect |
| 2514 | (save-excursion | 2518 | (save-excursion |
| 2515 | (message "Spell checking %s using %s dictionary..." | 2519 | (message "Spell checking %s using %s with %s dictionary..." |
| 2516 | (if (and (= reg-start (point-min)) (= reg-end (point-max))) | 2520 | (if (and (= reg-start (point-min)) (= reg-end (point-max))) |
| 2517 | (buffer-name) "region") | 2521 | (buffer-name) "region") |
| 2522 | (file-name-nondirectory ispell-program-name) | ||
| 2518 | (or ispell-current-dictionary "default")) | 2523 | (or ispell-current-dictionary "default")) |
| 2519 | ;; Returns cursor to original location. | 2524 | ;; Returns cursor to original location. |
| 2520 | (save-window-excursion | 2525 | (save-window-excursion |
| @@ -2532,7 +2537,8 @@ Return nil if spell session is quit, | |||
| 2532 | (set-marker skip-region-start (- (point) (length key))) | 2537 | (set-marker skip-region-start (- (point) (length key))) |
| 2533 | (goto-char reg-start))) | 2538 | (goto-char reg-start))) |
| 2534 | (let (message-log-max) | 2539 | (let (message-log-max) |
| 2535 | (message "Continuing spelling check using %s dictionary..." | 2540 | (message "Continuing spelling check using %s with %s dictionary..." |
| 2541 | (file-name-nondirectory ispell-program-name) | ||
| 2536 | (or ispell-current-dictionary "default"))) | 2542 | (or ispell-current-dictionary "default"))) |
| 2537 | (set-marker rstart reg-start) | 2543 | (set-marker rstart reg-start) |
| 2538 | (set-marker ispell-region-end reg-end) | 2544 | (set-marker ispell-region-end reg-end) |
| @@ -2609,7 +2615,9 @@ Return nil if spell session is quit, | |||
| 2609 | (if (not recheckp) (set-marker ispell-region-end nil)) | 2615 | (if (not recheckp) (set-marker ispell-region-end nil)) |
| 2610 | ;; Only save if successful exit. | 2616 | ;; Only save if successful exit. |
| 2611 | (ispell-pdict-save ispell-silently-savep) | 2617 | (ispell-pdict-save ispell-silently-savep) |
| 2612 | (message "Spell-checking done"))))) | 2618 | (message "Spell-checking using %s with %s dictionary done" |
| 2619 | (file-name-nondirectory ispell-program-name) | ||
| 2620 | (or ispell-current-dictionary "default")))))) | ||
| 2613 | 2621 | ||
| 2614 | 2622 | ||
| 2615 | (defun ispell-begin-skip-region-regexp () | 2623 | (defun ispell-begin-skip-region-regexp () |
| @@ -2960,7 +2968,8 @@ Returns the sum shift due to changes in word replacements." | |||
| 2960 | )) | 2968 | )) |
| 2961 | (if (not ispell-quit) | 2969 | (if (not ispell-quit) |
| 2962 | (let (message-log-max) | 2970 | (let (message-log-max) |
| 2963 | (message "Continuing spelling check using %s dictionary..." | 2971 | (message "Continuing spelling check using %s with %s dictionary..." |
| 2972 | (file-name-nondirectory ispell-program-name) | ||
| 2964 | (or ispell-current-dictionary "default")))) | 2973 | (or ispell-current-dictionary "default")))) |
| 2965 | (sit-for 0) | 2974 | (sit-for 0) |
| 2966 | (setq start (marker-position line-start) | 2975 | (setq start (marker-position line-start) |