Bladeren bron

Fix warnings and update Eldev config

Ryan C. Thompson 4 jaren geleden
bovenliggende
commit
74841cc0cb
4 gewijzigde bestanden met toevoegingen van 13 en 6 verwijderingen
  1. 1 0
      .gitignore
  2. 5 2
      Eldev
  3. 1 1
      ido-completing-read+.el
  4. 6 3
      tests-with-flx-ido/test-ido-completing-read+-with-flx-ido.el

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 # Added automatically by `eldev init'.
 /.eldev
 /Eldev-local
+*-autoloads.el

+ 5 - 2
Eldev

@@ -1,18 +1,21 @@
 ;; -*- mode: emacs-lisp; lexical-binding: t; no-byte-compile: t -*-
 
+(setq eldev-main-fileset "./*.el")
+
 (eldev-use-plugin 'undercover)
+(eldev-use-plugin 'autoloads)
 
 (eldev-use-package-archive 'gnu)
 (eldev-use-package-archive 'melpa-unstable)
 
 (setq eldev-test-framework 'buttercup)
 
-(eldev-add-extra-dependencies 'test 'flx-ido)
 (eldev-add-extra-dependencies
  'test
+ 'flx-ido
+ 's
  '(:package with-simulated-input
             :version  "3.0"))
-(eldev-add-extra-dependencies 'test 's)
 
 ;; Tell checkdoc not to demand two spaces after a period.
 (setq sentence-end-double-space nil)

+ 1 - 1
ido-completing-read+.el

@@ -104,7 +104,7 @@ not be updated until you restart Emacs.")
   "If non-nil, ido-cr+ will print debug info.
 
 Debug info is printed to the *Messages* buffer."
-  nil
+  :init-value nil
   :global t
   :group 'ido-completing-read-plus)
 

+ 6 - 3
tests-with-flx-ido/test-ido-completing-read+-with-flx-ido.el

@@ -15,6 +15,9 @@
 (require 'buttercup)
 (require 'cl-lib)
 (require 'with-simulated-input)
+(require 's)
+
+(defvar my-dynamic-collection nil)
 
 (defun collection-as-function (collection)
   "Return a function equivalent to COLLECTION.
@@ -206,9 +209,9 @@ also accept a quoted list for the sake of convenience."
         (it "should do a dynamic update when idle"
           (expect
            (with-simulated-input
-               '("h"
-                 (wsi-simulate-idle-time (1+ ido-cr+-dynamic-update-idle-time))
-                 "-ld RET")
+               ("h"
+                (wsi-simulate-idle-time (1+ ido-cr+-dynamic-update-idle-time))
+                "-ld RET")
              (ido-completing-read+ "Say something: " my-dynamic-collection))
            :to-equal
            "hello-world")