5:25 PM, 10 октября 2014 г., Stefan Monnier <monnier@iro.umontreal.ca>:


a completion-at-point-function which is designed specifically for
"completion in strings and comments" and which would probably rely on
something like dabbrev, complemented by a major-mode-supplied list of
additional candidates.


The "complemented" part there gives me pause: we just got out of the situation when a person writing prose in a docstring kept getting Lisp functions in completions.

I rather think the right solution would start with a stricter convention for code snippets in docstrings.