Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoload safe-local-variable declarations.

  • Loading branch information...
commit 9ab282068b7388d103d39d4574008e4b40e30c1c 1 parent abf248b
@technomancy authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 find-file-in-project.el
View
16 find-file-in-project.el
@@ -1,6 +1,6 @@
;;; find-file-in-project.el --- Find files in a project quickly.
-;; Copyright (C) 2006, 2007, 2008, 2009
+;; Copyright (C) 2006-2009, 2011
;; Phil Hagelberg, Doug Alcorn, and Will Farrington
;; Author: Phil Hagelberg, Doug Alcorn, and Will Farrington
@@ -151,12 +151,14 @@ setting the variable `ffip-project-root'."
(defalias 'ffip 'find-file-in-project)
;; safe locals
-(put 'ffip-patterns 'safe-local-variable 'listp)
-(put 'ffip-find-options 'safe-local-variable 'stringp)
-(put 'ffip-project-file 'safe-local-variable 'stringp)
-(put 'ffip-project-root 'safe-local-variable 'stringp)
-(put 'ffip-project-root-function 'safe-local-variable 'functionp)
-(put 'ffip-limit 'safe-local-variable 'integerp)
+;;;###autoload
+(progn
+ (put 'ffip-patterns 'safe-local-variable 'listp)
+ (put 'ffip-find-options 'safe-local-variable 'stringp)
+ (put 'ffip-project-file 'safe-local-variable 'stringp)
+ (put 'ffip-project-root 'safe-local-variable 'stringp)
+ (put 'ffip-project-root-function 'safe-local-variable 'functionp)
+ (put 'ffip-limit 'safe-local-variable 'integerp))
(provide 'find-file-in-project)
;;; find-file-in-project.el ends here
Please sign in to comment.
Something went wrong with that request. Please try again.