[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."
- [nongnu] elpa/spell-fu updated (cbe5cd84c3 -> 3caf7047ea), ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 83890ae6d3 01/21: Cleanup: quiet quote warnings, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu ed504863f5 05/21: Fix #13: Every word marked as incorrect on MS-Windows, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 219bc124a6 14/21: Cleanup: use private convention for mode management functions,
ELPA Syncer <=
- [nongnu] elpa/spell-fu df9abe16e2 02/21: Cleanup: sharp-quote function, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 57a678a3c4 07/21: Cleanup: sharp-quote function, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu f62b6d3770 12/21: Cleanup: doc-string length, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu be719051a6 13/21: readme: note when reset may be needed, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu f0d49dcc5a 16/21: Cleanup: emacs native format, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu d0e67cdb25 06/21: When using jit-lock-stealth, ensure words out of the view are checked, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 341575b1d0 10/21: Adding spell-fu-debug variable & spell-fu-reset command, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu bddea99f9c 17/21: Fix #36: byte compilation error with Emacs 28.2, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 68d33508ef 04/21: Add support for buffer local word-lists, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu b89bfe035d 20/21: Cleanup: correct typo in description, ELPA Syncer, 2023/01/07