branch: elpa/aidermacs
commit 1729dd91b356da2d8b01cae96028183af97c3195
Author: tninja <[email protected]>
Commit: tninja <[email protected]>
refactor: rename Helm function and cleanup whitespace
---
aider-helm.el | 7 +++----
aider.el | 3 +--
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/aider-helm.el b/aider-helm.el
index f6083fa206..c631471fa6 100644
--- a/aider-helm.el
+++ b/aider-helm.el
@@ -15,7 +15,7 @@
(require 'helm)
(require 'cl-lib) ; For `cl-subseq`
-(defun helm-read-string-with-history (prompt history-file-name &optional
initial-input)
+(defun aider-helm-read-string-with-history (prompt history-file-name &optional
initial-input)
"Read a string with Helm completion using specified history file.
PROMPT is the prompt string.
HISTORY-FILE-NAME is the base name for history file.
@@ -48,7 +48,7 @@ INITIAL-INPUT is optional initial input string."
"Read a string with Helm completion for aider, showing historical inputs.
PROMPT is the prompt string.
INITIAL-INPUT is optional initial input string."
- (helm-read-string-with-history prompt "aider-helm-read-string-history.el"
initial-input))
+ (aider-helm-read-string-with-history prompt
"aider-helm-read-string-history.el" initial-input))
(declare-function aider-read-string "aider")
@@ -56,8 +56,7 @@ INITIAL-INPUT is optional initial input string."
(with-eval-after-load 'aider
(if (featurep 'helm)
(defalias 'aider-read-string 'aider-helm-read-string)
- (message "Helm is not available. Please install helm package to use
aider-helm features")
- ))
+ (message "Helm is not available. Please install helm package to use
aider-helm features")))
(provide 'aider-helm)
;;; aider-helm.el ends here
diff --git a/aider.el b/aider.el
index 70ea91cf98..069fc4f024 100644
--- a/aider.el
+++ b/aider.el
@@ -319,8 +319,7 @@ COMMAND should be a string representing the command to
send."
(aider-switch-to-buffer))
(sleep-for 0.2))
(message "No active process found in buffer %s."
(aider-buffer-name))))
- (message "Buffer %s does not exist. Please start 'aider' first."
(aider-buffer-name))
- ))
+ (message "Buffer %s does not exist. Please start 'aider' first."
(aider-buffer-name))))
;;;###autoload
(defun aider-add-or-read-current-file (command-prefix)