branch: elpa/spell-fu
commit 41416df027f8b9e22ca5c432ac5cc79b63a94a1d
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>

    Cleanup: simplify mapcar lambda to direct function reference
---
 spell-fu.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/spell-fu.el b/spell-fu.el
index 73d49af5c9d..e7869bf8416 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -197,7 +197,7 @@ Notes:
 ;; Always check this has not been deleted (has a valid buffer) before use.
 (defvar-local spell-fu--idle-overlay-last nil)
 
-;; Cache the result of: `(mapcar (lambda (dict) (symbol-value dict)) 
spell-fu-dictionaries)'
+;; Cache the result of: `(mapcar #'symbol-value spell-fu-dictionaries)'
 (defvar-local spell-fu--cache-table-list nil)
 
 ;; The buffer local dictionary generated from 
`spell-fu-buffer-session-localwords'.
@@ -319,8 +319,7 @@ Notes:
 (defun spell-fu--refresh-cache-table-list ()
   "Refresh internal list `spell-fu--cache-table-list'."
   (declare (important-return-value nil))
-  (setq spell-fu--cache-table-list
-        (mapcar (lambda (dict) (symbol-value dict)) spell-fu-dictionaries)))
+  (setq spell-fu--cache-table-list (mapcar #'symbol-value 
spell-fu-dictionaries)))
 
 (defun spell-fu--refresh ()
   "Reset spell-checked overlays in the current buffer."

Reply via email to