## Next
+* `company-clang-objc-templatify` has been renamed to
+ `company-template-objc-templatify`.
* When duplicates are removed, completions without annotations are also removed
in favor of completions with equal names that have annotations (experimental
change) ([#432](https://github.com/company-mode/company-mode/issues/432)).
(when (and company-clang-insert-arguments anno)
(insert anno)
(if (string-match "\\`:[^:]" anno)
- (company-clang-objc-templatify anno)
+ (company-template-objc-templatify anno)
(company-template-c-like-templatify
(concat arg anno))))))))
;; objc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(defun company-clang-objc-templatify (selector)
+(defun company-template-objc-templatify (selector)
(let* ((end (point-marker))
(beg (- (point) (length selector) 1))
(templ (company-template-declare-template beg end))
(with-temp-buffer
(let ((text "createBookWithTitle:andAuthor:"))
(insert text)
- (company-clang-objc-templatify text)
+ (company-template-objc-templatify text)
(should (equal "createBookWithTitle:arg0 andAuthor:arg1" (buffer-string)))
(should (looking-at "arg0"))
(should (null (overlay-get (company-template-field-at) 'display))))))
-(ert-deftest company-clang-objc-templatify ()
+(ert-deftest company-template-objc-templatify ()
(with-temp-buffer
(let ((text "createBookWithTitle:(NSString) andAuthor:(id)"))
(insert text)
- (company-clang-objc-templatify text)
+ (company-template-objc-templatify text)
(should (equal (buffer-string) text))
(company-template-field-assert-text "(NSString)"))))