2013-05-31 Glenn Morris <rgm@gnu.org>
+ * obsolete/sym-comp.el (symbol-complete):
+ Replace obsolete completion-annotate-function.
+
* progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.
2013-05-31 Dmitry Gutov <dgutov@yandex.ru>
pattern))
;; In case the transform needs to access it.
(symbol-completion-predicate predicate)
- (completion-annotate-function
+ (completion-extra-properties
(if (functionp symbol-completion-transform-function)
- (lambda (str)
- (car-safe (cdr-safe
- (funcall symbol-completion-transform-function
- str)))))))
+ '(:annotation-function
+ (lambda (str)
+ (car-safe (cdr-safe
+ (funcall symbol-completion-transform-function
+ str))))))))
(completion-in-region (- (point) (length pattern)) (point)
completions predicate)))
\f