branch: externals/compat commit 81358f53ae36be5cd740c8fe3593da345043a237 Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@posteo.net>
Add completion-pcm--all-completions --- MANUAL | 5 +++++ compat-25.el | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/MANUAL b/MANUAL index 74f3185bb3..1429aa7378 100644 --- a/MANUAL +++ b/MANUAL @@ -10,6 +10,7 @@ #+options: compact-itemx:t #+macro: version 28.1.0.0 +#+link: debbugs https://debbugs.gnu.org/cgi/bugreport.cgi?bug= This manual documents the usage of the "compat" Emacs lisp library, the forward-compatibility library for Emacs Lisp, corresponding to @@ -189,6 +190,10 @@ when ~compat-25~ is required: - Function: compat-sort :: See [[info:elisp#Sequence Functions][(elisp) Sequence Functions]]. Adds support for vectors to be sorted, next to just lists. +- Function: completion-pcm--all-completions :: Defined in + ~minibuffer.el~. + + Reverse the resulting completion list, as fixed by [[debbugs:24676]]. Compat does not provide support for the following Lisp features implemented in 25.1: diff --git a/compat-25.el b/compat-25.el index b236622714..60e547db46 100644 --- a/compat-25.el +++ b/compat-25.el @@ -339,5 +339,12 @@ recursion." (push (concat dir "/" file) files))))) (nconc result (nreverse files)))) +;;;; Defined in minibuffer.el +;;* UNTESTED +(compat-defun completion-pcm--all-completions (prefix pattern table pred) + "Reverse the resulting list as fixed by bug#24676. +All arguments are passed on to the original function." + :prefix t + (nreverse (completion-pcm--all-completions prefix pattern table pred))) (provide 'compat-25) ;;; compat-25.el ends here