Open Junker opened 4 years ago
Well, drupal-mode is rather dependent on finding those files in order to determine if it is Drupal and the version. I think that removing those checks would cripple drupal-mode.
Could make drupal-mode dependent on file-remote-p
returning nil in drupal-mode-bootstrap
, but that's probably not what you're looking for. Would need some way of activating drupal-mode for remote files by hand.
drupal-mode could be improved by caching info, reusing info sniffed from other files and only sniff out things when needed, but that requires major re-architecting.
when drupal-mode is enabled TRAMP works slow, because drupal-mode searches for system.module, bootstrap.inc and Drupal.php files. Maybe should make option to disable file check when TRAMP.
TRAMP debug log: ... 14:02:28.534477 tramp-set-file-property (8) # /var/core/lib/Drupal.php file-exists-p nil 14:02:28.535030 tramp-get-file-property (8) # /core/lib/Drupal.php file-exists-p undef 14:02:28.535103 tramp-get-file-property (8) # /core/lib/Drupal.php file-attributes-integer nil 14:02:28.535165 tramp-get-file-property (8) # /core/lib/Drupal.php file-attributes-string nil ...