Browse Source

Fix version comparison for Emacs pretest.

Fixes #169
Philipp Stephani 5 years ago
parent
commit
de163e0891
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ido-completing-read+.el

+ 2 - 2
ido-completing-read+.el

@@ -707,9 +707,9 @@ See `completing-read' for the meaning of the arguments."
                     '("ido cannot handle the empty string as an option when `ido-enable-dot-prefix' is non-nil; see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26997")))
                     '("ido cannot handle the empty string as an option when `ido-enable-dot-prefix' is non-nil; see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26997")))
 
 
           ;; Fix ido's broken handling of cons-style INITIAL-INPUT on
           ;; Fix ido's broken handling of cons-style INITIAL-INPUT on
-          ;; Emacsen older than 27.1.
+          ;; Emacsen older than 27.
           (when (and (consp initial-input)
           (when (and (consp initial-input)
-                     (version< emacs-version "27.1"))
+                     (< emacs-major-version 27))
             ;; `completing-read' uses 0-based index while
             ;; `completing-read' uses 0-based index while
             ;; `read-from-minibuffer' uses 1-based index.
             ;; `read-from-minibuffer' uses 1-based index.
             (cl-incf (cdr initial-input)))
             (cl-incf (cdr initial-input)))