Quellcode durchsuchen

Check if variables are unbound

Please check this vars are bound or not. This vars are not bound in ido-ubiquitous program. They are not bound by main ido program also and this causes *Compile Log* warnings in Emacs 25.
zahardzhan vor 9 Jahren
Ursprung
Commit
d4cb80a391
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      ido-completing-read+.el

+ 3 - 3
ido-completing-read+.el

@@ -52,7 +52,7 @@ not be updated until you restart Emacs.")
 
 ;;; Debug messages
 
-(defvar ido-cr+-debug-mode)
+(defvar ido-cr+-debug-mode nil)
 
 ;; Defined as a macro for efficiency (args are not evaluated unless
 ;; debug mode is on)
@@ -285,11 +285,11 @@ sets up C-j to be equivalent to TAB in the same situation."
        ;; Only if using ico-cr+
        ido-cr+-enable-this-call
        ;; Only if require-match is non-nil
-       ido-require-match
+       (bound-and-true-p ido-require-match)
        ;; Only if current text is non-empty
        (not (string= ido-text ""))
        ;; Only if current text is not a complete choice
-       (not (member ido-text ido-cur-list)))
+       (not (member ido-text (bound-and-true-p ido-cur-list))))
       (progn
         (ido-cr+--debug-message
          "Overriding C-j behavior for require-match: performing completion instead of exiting.")