From 22e3257f07191caa0b32c5cf0102a689141d2c99 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Sat, 30 Apr 2016 11:28:06 -0300 Subject: [PATCH] Fix #17 - Minibuffer completion pre 25 --- packages/bug-hunter/bug-hunter.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/bug-hunter/bug-hunter.el b/packages/bug-hunter/bug-hunter.el index 9a29f2fb1..99f753aef 100644 --- a/packages/bug-hunter/bug-hunter.el +++ b/packages/bug-hunter/bug-hunter.el @@ -4,7 +4,7 @@ ;; Author: Artur Malabarba ;; URL: https://github.com/Malabarba/elisp-bug-hunter -;; Version: 1.3 +;; Version: 1.3.1 ;; Keywords: lisp ;; Package-Requires: ((seq "1.3") (cl-lib "0.5")) @@ -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 -- 2.39.2