From: Eric Abrahamsen Date: Wed, 10 Apr 2019 03:13:47 +0000 (-0700) Subject: Note that choose-completion-string-functions funcs take four args X-Git-Tag: emacs-26.2~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5999401;p=emacs.git 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. --- 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.