Package: emacs23 Version: 23.2+1-7 Severity: wishlist (emacs)Directory Variables says
If you put a file with a special name `.dir-locals.el'(1) in a directory, Emacs will read it when it visits any file in that directory or any of its subdirectories, and apply the settings it specifies to the file's buffer. Emacs searches for `.dir-locals.el' starting in the directory of the visited file, and moving up the directory tree. (To avoid slowdown, this search is skipped for remote files.) And indeed this is the case. files.el says: (defun hack-dir-local-variables () "Read per-directory local variables for the current buffer. Store the directory-local variables in `dir-local-variables-alist' and `file-local-variables-alist', without applying them." (when (and enable-local-variables (buffer-file-name) (not (file-remote-p (buffer-file-name)))) ;; Find the variables file. ... I would like this to work even for remote files. In my own emacs, simply cutting and pasting the whole function into my startup files, with the file-remote-p test removed, works, as expected. However that won't suit everyone :-). I think this should be configurable. I don't know exactly what machinery Emacs has for this kind of configuration but the most flexible would perhaps be to replace the call to file-remote-p with a call to a function obtained from a variable, which would default to file-remote-p. Then if I want it to work all the time I have merely to define the function to be one which always returns nil. Or if I want to do something more sophisticated I have the hook I need. I'd be happy to supply a patch, but it would probably be best if some expert in modern elisp would point me to the names of the facilities I should be using; I'll then look up those names in the docs and do the actual work of writing and testing a patch. Thanks, Ian. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org