Only mess with auto-revert if it's actually there. Similarly, only mess
with Tramp if that's there.
"Sets global-auto-revert-ignore-buffer appropriately for this buffer,
taking into consideration whether it's been found using tramp, which seems to
get itself into a twist."
- (cond ((and (buffer-file-name)
+ (cond ((not (boundp 'global-auto-revert-ignore-buffer))
+ nil)
+ ((and (buffer-file-name)
+ (fboundp 'tramp-tramp-file-p)
(tramp-tramp-file-p (buffer-file-name)))
(unless global-auto-revert-ignore-buffer
(setq global-auto-revert-ignore-buffer 'tramp)))