]> git.eshelyaron.com Git - emacs.git/commitdiff
(cmpl-read-time-eval): Make it no-op.
authorRichard M. Stallman <rms@gnu.org>
Tue, 3 Aug 1993 05:46:33 +0000 (05:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 3 Aug 1993 05:46:33 +0000 (05:46 +0000)
(cmpl-hours-since-origin): Use truncate to make an integer.
(completion-search-reset): Use completion-prefix-min-length.

lisp/completion.el

index 682052a4b46d632fdf8155c28f6a172825a9e0fc..183a39fc5737091280bd0a332fabd011c548e111 100644 (file)
@@ -377,10 +377,9 @@ Used to decide whether to save completions.")
   "True iff the current window is the minibuffer."
   (window-minibuffer-p (selected-window)))
 
+;; This used to be `(eval form)'.  Eval FORM at run time now.
 (defmacro cmpl-read-time-eval (form)
-  ;; Like the #. reader macro
-  (eval form))
-
+  form)
 
 ;;;-----------------------------------------------
 ;;; String case coercion
@@ -444,8 +443,9 @@ Used to decide whether to save completions.")
 \f
 (defun cmpl-hours-since-origin ()
   (let ((time (current-time)))
-    (+ (* (/ (car time) 3600.0) (lsh 1 16))
-       (/ (nth 2 time) 3600.0))))
+    (truncate
+     (+ (* (/ (car time) 3600.0) (lsh 1 16))
+       (/ (nth 2 time) 3600.0)))))
 \f
 ;;;---------------------------------------------------------------------------
 ;;; "Symbol" parsing functions
@@ -1579,7 +1579,8 @@ STRING must be longer than `completion-prefix-min-length'."
   (if completion-to-accept (accept-completion))
   (setq cmpl-starting-possibilities
        (cmpl-prefix-entry-head
-         (find-cmpl-prefix-entry (downcase (substring string 0 3))))
+         (find-cmpl-prefix-entry
+          (downcase (substring string 0 completion-prefix-min-length))))
        cmpl-test-string string
        cmpl-test-regexp (concat (regexp-quote string) "."))
   (completion-search-reset-1)