Variable: ecomplete-sort-predicate

ecomplete-sort-predicate is a customizable variable defined in ecomplete.el.gz.

Value

ecomplete-decay

Documentation

Predicate to use when sorting matched.

The predicate is called with two parameters that represent the completion. Each parameter is a list where the first element is the times the completion has been used, the second is the timestamp of the most recent usage, and the third item is the string that was matched.

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/ecomplete.el.gz
(defcustom ecomplete-sort-predicate 'ecomplete-decay
  "Predicate to use when sorting matched.
The predicate is called with two parameters that represent the
completion.  Each parameter is a list where the first element is
the times the completion has been used, the second is the
timestamp of the most recent usage, and the third item is the
string that was matched."
  :type '(radio (function-item :tag "Sort by usage and newness" ecomplete-decay)
		(function-item :tag "Sort by times used" ecomplete-usage)
		(function-item :tag "Sort by newness" ecomplete-newness)
		(function :tag "Other")))