diff options
| author | Stefan Monnier | 2006-01-17 16:35:52 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-01-17 16:35:52 +0000 |
| commit | 8e2e29565d5697ce860447bc214043311d9b8d0f (patch) | |
| tree | b3ea0094985025fffa02a7dd71db1158dd4b24e9 | |
| parent | fe778a1258f881b79cc997897356c48c75bc1141 (diff) | |
| download | emacs-8e2e29565d5697ce860447bc214043311d9b8d0f.tar.gz emacs-8e2e29565d5697ce860447bc214043311d9b8d0f.zip | |
(ispell-kill-ispell-hook): Add to the hook when
loading the file rather than when turning on flyspell-mode.
| -rw-r--r-- | lisp/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 7 |
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 123d97749b4..8a3e24dfa24 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-01-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * textmodes/flyspell.el (ispell-kill-ispell-hook): Add to the hook when | ||
| 4 | loading the file rather than when turning on flyspell-mode. | ||
| 5 | |||
| 1 | 2006-01-13 Richard M. Stallman <rms@gnu.org> | 6 | 2006-01-13 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * font-lock.el (lisp-font-lock-keywords-1): Minor rearrangement. | 8 | * font-lock.el (lisp-font-lock-keywords-1): Minor rearrangement. |
| @@ -54,11 +59,9 @@ | |||
| 54 | * time.el (display-time-mail-face): Replace :group `faces' with | 59 | * time.el (display-time-mail-face): Replace :group `faces' with |
| 55 | `mode-line-faces'. | 60 | `mode-line-faces'. |
| 56 | 61 | ||
| 57 | >>>>>>> 1.8983 | ||
| 58 | 2006-01-16 Kenichi Handa <handa@m17n.org> | 62 | 2006-01-16 Kenichi Handa <handa@m17n.org> |
| 59 | 63 | ||
| 60 | * international/code-pages.el: Add autoload cookies for | 64 | * international/code-pages.el: Add autoload cookies for cp125[0345678]. |
| 61 | cp125[0345678]. | ||
| 62 | 65 | ||
| 63 | * language/european.el (cp1252): New alias for windows-1252. | 66 | * language/european.el (cp1252): New alias for windows-1252. |
| 64 | 67 | ||
| @@ -78,8 +81,8 @@ | |||
| 78 | (term-reset-terminal): Reset the scroll region. | 81 | (term-reset-terminal): Reset the scroll region. |
| 79 | (term-handle-ansi-escape): Cursor up and down should take into | 82 | (term-handle-ansi-escape): Cursor up and down should take into |
| 80 | account the scroll region. | 83 | account the scroll region. |
| 81 | (term-set-scroll-region): Renamed from `term-scroll-region'. Move | 84 | (term-set-scroll-region): Rename from `term-scroll-region'. |
| 82 | to 0,0 after setting the region. | 85 | Move to 0,0 after setting the region. |
| 83 | (term-handle-scroll): Handle scroll up. | 86 | (term-handle-scroll): Handle scroll up. |
| 84 | (term-down): Fix off by one error. | 87 | (term-down): Fix off by one error. |
| 85 | (term-delete-lines): Do not delete outside the scroll region. | 88 | (term-delete-lines): Do not delete outside the scroll region. |
| @@ -103,7 +106,6 @@ | |||
| 103 | (Custom-reset-saved): Do not ask for confirmation in single option | 106 | (Custom-reset-saved): Do not ask for confirmation in single option |
| 104 | buffers. | 107 | buffers. |
| 105 | 108 | ||
| 106 | >>>>>>> 1.8978 | ||
| 107 | 2006-01-13 Romain Francoise <romain@orebokech.com> | 109 | 2006-01-13 Romain Francoise <romain@orebokech.com> |
| 108 | 110 | ||
| 109 | * add-log.el (add-change-log-entry, change-log-merge): | 111 | * add-log.el (add-change-log-entry, change-log-merge): |
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index a6e3734b42c..a4930324e95 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -531,6 +531,11 @@ in your .emacs file. | |||
| 531 | (with-current-buffer buf | 531 | (with-current-buffer buf |
| 532 | (kill-local-variable 'flyspell-word-cache-word)))) | 532 | (kill-local-variable 'flyspell-word-cache-word)))) |
| 533 | 533 | ||
| 534 | ;; Make sure we flush our caches when needed. Do it here rather than in | ||
| 535 | ;; flyspell-mode-on, since flyspell-region may be used without ever turning | ||
| 536 | ;; on flyspell-mode. | ||
| 537 | (add-hook 'ispell-kill-ispell-hook 'flyspell-kill-ispell-hook) | ||
| 538 | |||
| 534 | ;;*---------------------------------------------------------------------*/ | 539 | ;;*---------------------------------------------------------------------*/ |
| 535 | ;;* flyspell-mode-on ... */ | 540 | ;;* flyspell-mode-on ... */ |
| 536 | ;;*---------------------------------------------------------------------*/ | 541 | ;;*---------------------------------------------------------------------*/ |
| @@ -542,8 +547,6 @@ in your .emacs file. | |||
| 542 | (or ispell-local-dictionary ispell-dictionary | 547 | (or ispell-local-dictionary ispell-dictionary |
| 543 | (if flyspell-default-dictionary | 548 | (if flyspell-default-dictionary |
| 544 | (ispell-change-dictionary flyspell-default-dictionary))) | 549 | (ispell-change-dictionary flyspell-default-dictionary))) |
| 545 | ;; Make sure we flush our caches when needed. | ||
| 546 | (add-hook 'ispell-kill-ispell-hook 'flyspell-kill-ispell-hook) | ||
| 547 | ;; we have to force ispell to accept the local definition or | 550 | ;; we have to force ispell to accept the local definition or |
| 548 | ;; otherwise it could be too late, the local dictionary may | 551 | ;; otherwise it could be too late, the local dictionary may |
| 549 | ;; be forgotten! | 552 | ;; be forgotten! |