Function: eww--bookmark-check-order-sort

eww--bookmark-check-order-sort is a byte-compiled function defined in eww.el.gz.

Signature

(eww--bookmark-check-order-sort)

Documentation

Signal a user error unless the bookmark vtable is sorted by asc order.

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww--bookmark-check-order-sort ()
  "Signal a user error unless the bookmark vtable is sorted by asc order."
  ;; vtables sort respecting the previous sort column. As long as
  ;; "order" was last, the kill/yank operations will make sense, no
  ;; matter what sort was used before.
  (when-let* ((the-table (vtable-current-table))
              (last-sort-pair (car (last (vtable-sort-by the-table)))))
    (unless (and (= 0 (car last-sort-pair))
                 (eq 'ascend (cdr last-sort-pair)))
      (user-error
       "Can't kill/yank bookmarks unless the table is sorted by ascending Order"))))