Your message dated Sat, 17 May 2014 13:31:33 -0700 (PDT) with message-id <[email protected]> and subject line Bug#665201 has caused the Debian Bug report #665201, regarding want config to permit remote search for local variables file to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 665201: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665201 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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.
--- End Message ---
--- Begin Message ---Version: 24.3 Option enable-remote-dir-locals was added in Emacs 24.3.
--- End Message ---

