(unless (symbolp variable)
(signal 'wrong-type-argument (list 'symbolp variable)))
`(let (connection-local-variables-alist file-local-variables-alist)
- (hack-connection-local-variables
- (connection-local-criteria-for-default-directory ,application))
+ ;; This is a macro, so whether it is autoloaded doesn't influence
+ ;; whether its callers will induce the loading of files-x.el.
+ ;;
+ ;; Verify that h-c-l-v is autoloaded before calling it.
+ (when (fboundp 'hack-connection-local-variables)
+ (hack-connection-local-variables
+ (connection-local-criteria-for-default-directory ,application)))
(if-let ((result (assq ',variable connection-local-variables-alist)))
(cdr result)
,variable)))