]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/ecomplete.el (ecomplete-add-item): Simplify.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Feb 2019 03:28:27 +0000 (19:28 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Feb 2019 03:29:02 +0000 (19:29 -0800)
lisp/ecomplete.el

index 9fc3f57833c64312de516f96e9fda16d4afb62ed..fb23ead63f6f5238492ff99c6c9c6ae293f688cb 100644 (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))