Function: which-key-local-then-key-order

which-key-local-then-key-order is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key-local-then-key-order ACONS BCONS)

Documentation

Order local bindings before non-local ones.

Within these categories order using which-key-key-order.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key-local-then-key-order (acons bcons)
  "Order local bindings before non-local ones.
Within these categories order using `which-key-key-order'."
  (let ((aloc? (which-key--local-binding-p acons))
        (bloc? (which-key--local-binding-p bcons)))
    (if (not (eq aloc? bloc?))
        (and aloc? (not bloc?))
      (which-key-key-order acons bcons))))