From: Lars Ingebrigtsen Date: Sat, 8 Feb 2014 12:46:09 +0000 (-0800) Subject: * simple.el (choose-completion-string-functions): Document fix. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=18c6aa8c86177dcc780c79b640c807d3f5353f25;p=emacs.git * simple.el (choose-completion-string-functions): Document fix. New calling convention. Fixes: debbugs:14153 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2b91474c85f..f18a55ce202 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2014-02-08 Lars Ingebrigtsen + * simple.el (choose-completion-string-functions): Document new + calling convention (bug#14153). + * kmacro.el (kmacro-exec-ring-item): Doc fix (bug#14198). * find-dired.el (find-name-dired): Doc fix (bug#14290). diff --git a/lisp/simple.el b/lisp/simple.el index 497e69f813d..7576a6861fc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6986,12 +6986,10 @@ With prefix argument N, move N items (negative N means move backward)." (defvar choose-completion-string-functions nil "Functions that may override the normal insertion of a completion choice. -These functions are called in order with four arguments: +These functions are called in order with three arguments: CHOICE - the string to insert in the buffer, BUFFER - the buffer in which the choice should be inserted, -MINI-P - non-nil if BUFFER is a minibuffer, and -BASE-SIZE - the number of characters in BUFFER before -the string being completed. +BASE-POSITION - where to insert the completion. If a function in the list returns non-nil, that function is supposed to have inserted the CHOICE in the BUFFER, and possibly exited