1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00

* lisp/ecomplete.el (ecomplete-add-item): Simplify.

This commit is contained in:
Paul Eggert 2019-02-09 19:28:27 -08:00
parent 57646401f1
commit f8e9da8bb6

View File

@ -96,7 +96,7 @@ string that was matched."
(defun ecomplete-add-item (type key text)
"Add item TEXT of TYPE to the database, using KEY as the identifier."
(let ((elems (assq type ecomplete-database))
(now (string-to-number (format-time-string "%s")))
(now (encode-time nil 'integer))
entry)
(unless elems
(push (setq elems (list type)) ecomplete-database))