branch: externals/bug-hunter
commit 26507781d9cdda802a958f2dda48ca1e43447075
Author: Artur Malabarba <[email protected]>
Commit: Artur Malabarba <[email protected]>

    Fix #17 - Minibuffer completion pre 25
---
 bug-hunter.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bug-hunter.el b/bug-hunter.el
index 9a29f2f..242b866 100644
--- a/bug-hunter.el
+++ b/bug-hunter.el
@@ -489,7 +489,11 @@ typing `RET' at an empty prompt, in which case nil is 
returned."
                 (minibuffer-with-setup-hook
                     (lambda ()
                       (add-hook 'completion-at-point-functions
-                                #'elisp-completion-at-point nil t)
+                                (if (fboundp 'elisp-completion-at-point)
+                                    #'elisp-completion-at-point
+                                  (with-no-warnings
+                                    #'lisp-completion-at-point))
+                                nil t)
                       (run-hooks 'eval-expression-minibuffer-setup-hook))
                   (insert
                    (read-from-minibuffer

Reply via email to