company-preview-if-just-one-frontend)
(function :tag "custom function" nil))))
+(defvar company-safe-backends
+ '(company-abbrev company-css company-dabbrev-code company-dabbrev
+ company-elisp company-etags company-files company-gtags company-ispell
+ company-nxml company-oddmuse company-semantic company-tempo company-xcode))
+(put 'company-safe-backends 'risky-local-variable t)
+
+(defun company-safe-backends-p (backends)
+ (and (consp backends)
+ (not (dolist (backend backends)
+ (unless (memq backend company-safe-backends)
+ (return t))))))
+
(defcustom company-backends '(company-elisp company-nxml company-css
company-semantic company-xcode company-gtags
company-etags company-oddmuse company-files
:group 'company
:type '(repeat (function :tag "function" nil)))
+(put 'company-backends 'safe-local-variable 'company-safe-backend-p)
+
(defcustom company-completion-started-hook nil
"*Hook run when company starts completing.
The hook is called with one argument that is non-nil if the completion was