From 59994015f194985dbcb7f45a874c7646a223d49e Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Tue, 9 Apr 2019 20:13:47 -0700 Subject: [PATCH] Note that choose-completion-string-functions funcs take four args * lisp/simple.el (choose-completion-string-functions): Functions in this list actually need to accept four arguments, though the fourth should be ignored. --- lisp/simple.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index 2646d7b0259..a0f2da7152c 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8181,6 +8181,9 @@ CHOICE - the string to insert in the buffer, BUFFER - the buffer in which the choice should be inserted, BASE-POSITION - where to insert the completion. +Functions should also accept and ignore a potential fourth +argument, passed for backwards compatibility. + If a function in the list returns non-nil, that function is supposed to have inserted the CHOICE in the BUFFER, and possibly exited the minibuffer; no further functions will be called. -- 2.39.2