[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu b7e5cf3d73 11/86: Fix missing checks that ispell
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu b7e5cf3d73 11/86: Fix missing checks that ispell variables are bound before use |
Date: |
Thu, 7 Jul 2022 12:03:38 -0400 (EDT) |
branch: elpa/spell-fu
commit b7e5cf3d73af92bc3aa23bbbcd2f90dad4702db5
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Fix missing checks that ispell variables are bound before use
---
spell-fu.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/spell-fu.el b/spell-fu.el
index 80c375d301..0405ee071b 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -123,7 +123,7 @@ Notes:
(defun spell-fu--dictionary ()
"Access the current dictionary."
- (or ispell-local-dictionary ispell-dictionary "default"))
+ (or (bound-and-true-p ispell-local-dictionary) (bound-and-true-p
ispell-dictionary) "default"))
(defun spell-fu--cache-file ()
"Return the location of the cache file."
@@ -228,14 +228,14 @@ Argument POS return faces at this point."
Argument WORDS-FILE the file to write the word list into."
(let*
(
+ (personal-words-file (bound-and-true-p ispell-personal-dictionary))
(has-words-file (file-exists-p words-file))
- (has-dict-personal
- (and ispell-personal-dictionary (file-exists-p
ispell-personal-dictionary)))
+ (has-dict-personal (and personal-words-file (file-exists-p
personal-words-file)))
(is-dict-outdated
(and
has-words-file
has-dict-personal
- (spell-fu--file-is-older words-file ispell-personal-dictionary))))
+ (spell-fu--file-is-older words-file personal-words-file))))
(when (or (not has-words-file) is-dict-outdated)
@@ -245,7 +245,7 @@ Argument WORDS-FILE the file to write the word list into."
(with-temp-buffer
;; Optional: insert personal dictionary, stripping header and
inserting a newline.
(when has-dict-personal
- (insert-file-contents ispell-personal-dictionary)
+ (insert-file-contents personal-words-file)
(goto-char (point-min))
(when (looking-at "personal_ws\-")
(delete-region (line-beginning-position) (1+
(line-end-position))))
- [nongnu] elpa/spell-fu fe557e3dff 21/86: Be explicit about using macro that sets values in-place, (continued)
- [nongnu] elpa/spell-fu fe557e3dff 21/86: Be explicit about using macro that sets values in-place, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 33a28e0df5 41/86: fix: encode word to utf-8 generating the cache, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 7770c005c4 47/86: Cleanup minor name change for spell-fu function name, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 866044304f 50/86: Check if faces can be used on property change, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 8f780a874c 66/86: Reduce idle overlay fragmentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 4fc84a9028 69/86: Fix spell-fu-directory's documentation, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 53bd2b24c6 81/86: Cleanup: add spell-fu--canonicalize-word utility function, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu a5a06e150a 02/86: Fix error comparing times of cache to word-list, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu bd00417a0e 09/86: Improve status messages when generating word-list & cache, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu afeb1fd46f 10/86: readme: add some TODO's, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu b7e5cf3d73 11/86: Fix missing checks that ispell variables are bound before use,
ELPA Syncer <=
- [nongnu] elpa/spell-fu 30be3683b2 12/86: readme: update settings docs, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 18724c2e53 14/86: Avoid potentially accessing the same files time multiple times, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 8e8711f1fa 22/86: Add TODO's to the readme, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 88d803e994 26/86: Cleanup: use updated auto-formatting results, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu db0eef27ab 33/86: Add: spell-fu-goto-next-error, spell-fu-goto-previous-error, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu a7db587471 36/86: Remove redundant escaping, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu c58be13845 39/86: Fix #3 default word regex now excludes trailing apostrophes, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 98424adbea 42/86: adds helper routine to get lang from dict, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 143233734a 46/86: Allow global-spell-fu to be ignored per mode or using a function, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 103d3a19ce 49/86: Fix checking words that spanned different faces, ELPA Syncer, 2022/07/07