1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

Preserve order of completion during cycling

* rcirc.el (rcirc-completion-at-point): Specify cycle-sort-function
This commit is contained in:
Philip Kaludercic 2021-06-14 09:31:01 +02:00
parent e17cc751ba
commit 88e07af18c

View file

@ -1151,7 +1151,11 @@ The list is updated automatically by `defun-rcirc-command'.")
(lambda (str) (concat (funcall rcirc-nick-filter str) ": "))
(rcirc-channel-nicks (rcirc-buffer-process)
rcirc-target))))))
(list beg (point) table))))
(list beg (point)
(lambda (str pred action)
(if (eq action 'metadata)
'(metadata (cycle-sort-function . identity))
(complete-with-action action table str pred)))))))
(defun set-rcirc-decode-coding-system (coding-system)
"Set the decode CODING-SYSTEM used in this channel."