"#]" " "
(replace-regexp-in-string "[<{[]#\\|#[>}]" "" meta t)
t))))
- (safe (and (derived-mode-p 'objc-mode)
+ (crop (and (derived-mode-p 'objc-mode)
(string-match ":" arg)
(substring arg 0 (match-beginning 0))))
(post-completion (and (derived-mode-p 'objc-mode)
(meta (company-eclim--meta arg))
;; because "" doesn't return everything
(no-cache (equal arg ""))
- (safe (when (string-match "(" arg)
+ (crop (when (string-match "(" arg)
(substring arg 0 (match-beginning 0))))
(post-completion (when (string-match "([^)]" arg)
(company-eclim--templatify arg)))))
(setq company-candidates nil)))
(defun company--safe-candidate (str)
- (or (company-call-backend 'safe str)
+ (or (company-call-backend 'crop str)
str))
(defun company-calculate-candidates (prefix)