branch: elpa/aidermacs commit 43780ca542083e43041ba73b9c04a3a7dee9aea2 Author: Adam Niederer <adam.niede...@gmail.com> Commit: Matthew Zeng <matthew...@gmail.com>
Use read-string instead of read-from-minibuffer --- aidermacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aidermacs.el b/aidermacs.el index bdb02bfa4e..8363940b27 100644 --- a/aidermacs.el +++ b/aidermacs.el @@ -604,10 +604,10 @@ Use highlighted region as context unless IGNORE-CONTEXT is set to non-nil." (format " in %s regarding this section:\n```\n%s\n```\n" (buffer-name) region-text))) ;; Read user input (user-command - (read-from-minibuffer + (read-string (concat command " " prompt-prefix context (when guide (format " (%s)" guide)) ": ") - nil nil nil 'aidermacs--read-string-history))) + nil 'aidermacs--read-string-history nil nil))) ;; Add to history if not already there, removing any duplicates (setq aidermacs--read-string-history (delete-dups (cons user-command aidermacs--read-string-history)))