[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: status of dir-vars or dir-locals inclusion in emacs?
From: |
Vagn Johansen |
Subject: |
Re: status of dir-vars or dir-locals inclusion in emacs? |
Date: |
Fri, 03 Aug 2007 19:29:15 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) |
Tom Tromey <address@hidden> writes:
>>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:
>
>>> First, you can create a "settings.el" or ".settings.el" file in a
>>> project's top-level directory. This file holds a sexp that looks like
>
> Stefan> I feel uneasy about this name. It seems just too generic.
>
> Yeah, I agree.
>
> Stefan> How 'bout "dir-local-settings" instead?
>
> Stefan> I'm also tempted to add "emacs" in the name, but I guess that
> Stefan> the ".el" extension can be considered sufficient information
> Stefan> (and after all, we don't use the "Emacs" name in the "Local
> Stefan> Variables" section cookies either).
>
> Mentioning Emacs wouldn't be too bad. "dir-local-settings" is too
> long for my taste.
>
> How about ".emacs-settings"?
Good choice. It also follows "tradition" because dirvars.el uses
.emacs-dirvars and dir-locals.el uses .emacs-locals.
May I suggest that project-find-file ignores remote files. I had an
Emacs instance going to 100% cpu usage when locating settings for
an FTP file.
Index: project.el
===================================================================
--- project.el (revision 78)
+++ project.el (working copy)
@@ -258,7 +258,7 @@
;;;###autoload
(defun project-find-file ()
"Set local variables in a buffer based on project settings."
- (when (buffer-file-name)
+ (when (and (buffer-file-name) (not (file-remote-p (buffer-file-name))))
;; Find the settings file.
(let ((settings (project-find-settings-file (buffer-file-name)))
(class nil)
--
Vagn Johansen
- Re: status of dir-vars or dir-locals inclusion in emacs?,
Vagn Johansen <=