emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/spell-fu 219bc124a6 14/21: Cleanup: use private convention


From: ELPA Syncer
Subject: [nongnu] elpa/spell-fu 219bc124a6 14/21: Cleanup: use private convention for mode management functions
Date: Sat, 7 Jan 2023 07:12:29 -0500 (EST)

branch: elpa/spell-fu
commit 219bc124a6e8f4ac08380d76ebb5b51828dac3db
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: use private convention for mode management functions
---
 spell-fu.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/spell-fu.el b/spell-fu.el
index c8bfb00857..0dbae02598 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -1133,14 +1133,14 @@ Return t when the word has been removed."
 
     (with-demoted-errors "spell-fu-reset: %S"
       (dolist (buf buffers-in-mode)
-        (with-current-buffer buf (spell-fu-mode-disable))))
+        (with-current-buffer buf (spell-fu--mode-disable))))
 
     (when (file-directory-p spell-fu-directory)
       (delete-directory spell-fu-directory t nil))
 
     (with-demoted-errors "spell-fu-reset: %S"
       (dolist (buf buffers-in-mode)
-        (with-current-buffer buf (spell-fu-mode-enable))))
+        (with-current-buffer buf (spell-fu--mode-enable))))
 
     (message
       "spell-fu: reset complete%s"
@@ -1700,7 +1700,7 @@ Argument DICT-FILE is the absolute path to the 
dictionary."
 ;; Developer note, use global hooks since these run before buffers are loaded.
 ;; Each function checks if the local mode is active before operating.
 
-(defun spell-fu-mode-enable ()
+(defun spell-fu--mode-enable ()
   "Turn on option `spell-fu-mode' for the current buffer."
 
   (spell-fu--debug-message "enabling for buffer: %S, major-mode: [%S]" 
(current-buffer) major-mode)
@@ -1735,7 +1735,7 @@ Argument DICT-FILE is the absolute path to the 
dictionary."
     (t
       (spell-fu--idle-enable))))
 
-(defun spell-fu-mode-disable ()
+(defun spell-fu--mode-disable ()
   "Turn off option `spell-fu-mode' for the current buffer."
 
   (spell-fu--debug-message "disabling mode for buffer %S" (current-buffer))
@@ -1755,9 +1755,9 @@ Argument DICT-FILE is the absolute path to the 
dictionary."
 
   (cond
     (spell-fu-mode
-      (spell-fu-mode-enable))
+      (spell-fu--mode-enable))
     (t
-      (spell-fu-mode-disable))))
+      (spell-fu--mode-disable))))
 
 (defun spell-fu--mode-turn-on ()
   "Enable the option `spell-fu-mode' where possible."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]