Quellcode durchsuchen

Eliminate ido-descfns-orig-predicate variable

It is replaced by accessing the appropriate element of
ido-cr+-orig-completing-read-args. This also fixes a bug relating to
improper scoping of ido-descfns-orig-predicate.
Ryan C. Thompson vor 8 Jahren
Ursprung
Commit
65a291ab02
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen
  1. 1 4
      ido-describe-fns.el

+ 1 - 4
ido-describe-fns.el

@@ -56,9 +56,6 @@ be updated until you restart Emacs.")
 (require 'ido-completing-read+)
 (require 'ido-ubiquitous)
 
-(defvar ido-descfns-orig-predicate nil
-  "Original predicate from the current completion call.")
-
 (defun ido-descfns-maybe-load-prefixes (string)
   "Load any files needed to complete the current input.
 
@@ -81,7 +78,7 @@ Has no effect unless `ido-descfns-enable-this-call' is non-nil."
              (ido-descfns-maybe-load-prefixes ido-text))
     (with-no-warnings
       (setq ido-cur-list
-            (all-completions "" obarray ido-descfns-orig-predicate))
+            (all-completions "" obarray (nth 2 ido-cr+-orig-completing-read-args)))
       (ido-ubiquitous--debug-message "ido-describe-fns loaded new files. `ido-cur-list' now has %i items" (length ido-cur-list)))))
 
 (provide 'ido-describe-fns)