GNU bug report logs - #16687
24.3.50; completion doc errors

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Sat, 8 Feb 2014 02:32:02 UTC

Severity: minor

Found in version 24.3.50

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; completion doc errors
Date: Sat, 08 Feb 2014 10:31:17 +0800
The doc disagrees with the function's doc-string:

,----[ (info "(elisp)Completion Variables") ]
|      The TRY-COMPLETION and ALL-COMPLETIONS functions should each
|      accept four arguments: STRING, COLLECTION, PREDICATE, and POINT.
|      The STRING, COLLECTION, and PREDICATE arguments have the same
|      meanings as in `try-completion' (*note Basic Completion::), and
|      the POINT argument is the position of point within STRING.  Each
|      function should return a non-`nil' value if it performed its job,
|      and `nil' if it did not (e.g., if there is no way to complete
|      STRING according to the completion style).
`----

It seems this should be `five' instead of `four':

,----[ (info "(elisp)Programmed Completion") ]
|    * A flag specifying the type of completion operation to perform.
|      This is one of the following four values:
`----

Leo




This bug report was last modified 6 years and 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.