Subject: Re: bug#10546: completion-at-point bug

From: Stefan Monnier <[email-masked]>
Date: Sun, 22 Jan 2012 16:22:14 -0500

> bug seen from forms in python-mode.el
> http://launchpad.net/python-mode

> when `py-completion-at-point' doesn't see a completion,
> the feature is to insert a TAB then.

That's because python-mode.AL has a bug:

  (add-hook 'completion-at-point-functions
            py-complete-function nil 'local)

The doc of completion-at-point-functions says:

  Each function on this hook is called in turn without any argument and should
  return either nil to mean that it is not applicable at point,
  or a function of no argument to perform completion (discouraged),
  or a list of the form (START END COLLECTION &rest PROPS) where
   START and END delimit the entity to complete and should include point,
   COLLECTION is the completion table to use to complete it, and
   PROPS is a property list for additional information.

-- Stefan