diff options
| author | Richard M. Stallman | 1993-08-03 05:46:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-03 05:46:33 +0000 |
| commit | 46f950cab852ffab33a6d46e4894e6ba4e575945 (patch) | |
| tree | aee92cbb24517b8d85d846cb88de361f1da536ed | |
| parent | 1add72b5dffd1eb76ffbf1c34d4a5dd76c91f1bd (diff) | |
| download | emacs-46f950cab852ffab33a6d46e4894e6ba4e575945.tar.gz emacs-46f950cab852ffab33a6d46e4894e6ba4e575945.zip | |
(cmpl-read-time-eval): Make it no-op.
(cmpl-hours-since-origin): Use truncate to make an integer.
(completion-search-reset): Use completion-prefix-min-length.
| -rw-r--r-- | lisp/completion.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/completion.el b/lisp/completion.el index 682052a4b46..183a39fc573 100644 --- a/lisp/completion.el +++ b/lisp/completion.el | |||
| @@ -377,10 +377,9 @@ Used to decide whether to save completions.") | |||
| 377 | "True iff the current window is the minibuffer." | 377 | "True iff the current window is the minibuffer." |
| 378 | (window-minibuffer-p (selected-window))) | 378 | (window-minibuffer-p (selected-window))) |
| 379 | 379 | ||
| 380 | ;; This used to be `(eval form)'. Eval FORM at run time now. | ||
| 380 | (defmacro cmpl-read-time-eval (form) | 381 | (defmacro cmpl-read-time-eval (form) |
| 381 | ;; Like the #. reader macro | 382 | form) |
| 382 | (eval form)) | ||
| 383 | |||
| 384 | 383 | ||
| 385 | ;;;----------------------------------------------- | 384 | ;;;----------------------------------------------- |
| 386 | ;;; String case coercion | 385 | ;;; String case coercion |
| @@ -444,8 +443,9 @@ Used to decide whether to save completions.") | |||
| 444 | 443 | ||
| 445 | (defun cmpl-hours-since-origin () | 444 | (defun cmpl-hours-since-origin () |
| 446 | (let ((time (current-time))) | 445 | (let ((time (current-time))) |
| 447 | (+ (* (/ (car time) 3600.0) (lsh 1 16)) | 446 | (truncate |
| 448 | (/ (nth 2 time) 3600.0)))) | 447 | (+ (* (/ (car time) 3600.0) (lsh 1 16)) |
| 448 | (/ (nth 2 time) 3600.0))))) | ||
| 449 | 449 | ||
| 450 | ;;;--------------------------------------------------------------------------- | 450 | ;;;--------------------------------------------------------------------------- |
| 451 | ;;; "Symbol" parsing functions | 451 | ;;; "Symbol" parsing functions |
| @@ -1579,7 +1579,8 @@ STRING must be longer than `completion-prefix-min-length'." | |||
| 1579 | (if completion-to-accept (accept-completion)) | 1579 | (if completion-to-accept (accept-completion)) |
| 1580 | (setq cmpl-starting-possibilities | 1580 | (setq cmpl-starting-possibilities |
| 1581 | (cmpl-prefix-entry-head | 1581 | (cmpl-prefix-entry-head |
| 1582 | (find-cmpl-prefix-entry (downcase (substring string 0 3)))) | 1582 | (find-cmpl-prefix-entry |
| 1583 | (downcase (substring string 0 completion-prefix-min-length)))) | ||
| 1583 | cmpl-test-string string | 1584 | cmpl-test-string string |
| 1584 | cmpl-test-regexp (concat (regexp-quote string) ".")) | 1585 | cmpl-test-regexp (concat (regexp-quote string) ".")) |
| 1585 | (completion-search-reset-1) | 1586 | (completion-search-reset-1) |