[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/guess-language e28742b 025/101: Do not mess with flyspe
From: |
Stefan Monnier |
Subject: |
[elpa] externals/guess-language e28742b 025/101: Do not mess with flyspell defcustoms. |
Date: |
Sat, 23 Feb 2019 10:34:36 -0500 (EST) |
branch: externals/guess-language
commit e28742b35678eb4bdcbcbe5a5eb37021891f3b71
Author: Titus von der Malsburg <address@hidden>
Commit: Titus von der Malsburg <address@hidden>
Do not mess with flyspell defcustoms.
---
guess-language.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/guess-language.el b/guess-language.el
index f736866..ebc2a2c 100644
--- a/guess-language.el
+++ b/guess-language.el
@@ -125,14 +125,11 @@ current paragraph."
(guess-language-autoset)
(unless (string= old-dictionary ispell-local-dictionary)
(remove-hook 'flyspell-incorrect-hook
#'guess-language-autoset-and-spellcheck-maybe)
- (flyspell-region (save-excursion (backward-paragraph) (point))
- (save-excursion (forward-paragraph) (point)))
- (add-hook 'flyspell-incorrect-hook
#'guess-language-autoset-and-spellcheck-maybe)))))
-
-(setq flyspell-issue-welcome-flag nil)
-(setq flyspell-issue-message-flag nil)
-
-(make-variable-buffer-local 'flyspell-incorrect-hook)
+ (let ((flyspell-issue-welcome-flag nil)
+ (flyspell-issue-message-flag nil))
+ (flyspell-region (save-excursion (backward-paragraph) (point))
+ (save-excursion (forward-paragraph) (point)))
+ (add-hook 'flyspell-incorrect-hook
#'guess-language-autoset-and-spellcheck-maybe))))))
(define-minor-mode guess-language-mode
"Toggle guess-language mode.
- [elpa] externals/guess-language 19a7e46 034/101: README: Layout, (continued)
- [elpa] externals/guess-language 19a7e46 034/101: README: Layout, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 3459b27 029/101: Updated doc strings., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 549b0d3 018/101: Make sure trigram files are found., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 2c3590b 024/101: README: minor fix, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 0c256d4 031/101: Added support for a bunch of languages., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 6014777 021/101: Make sure we’re not messing with other buffers., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language b90858d 020/101: Updated commentary., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 8602d7a 040/101: Added autoload for minor mode., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 56603f8 035/101: README improvements, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 844467f 036/101: Hopefully more robust way to find data files., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language e28742b 025/101: Do not mess with flyspell defcustoms.,
Stefan Monnier <=
- [elpa] externals/guess-language 45406db 030/101: README: minor fixes., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language efdf1de 044/101: Better title, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 889b9aa 043/101: Dansk -> Danish, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 0787d81 045/101: Add URL, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 02f90ac 033/101: Updated documentation with new languages., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 7619b58 039/101: Adressing issues identified by flycheck-package., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 88e31bf 054/101: Documentation: Added Arabic., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 3b61ce0 052/101: Added test data for all supported languages., Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language 2982b26 056/101: README improved, Stefan Monnier, 2019/02/23
- [elpa] externals/guess-language cc11ec6 055/101: README: More details about configuration., Stefan Monnier, 2019/02/23