Skip to content

Commit c110812

Browse files
committed
Merge autoload cookie and progn
1 parent 8f8afed commit c110812

File tree

1 file changed

+14
-37
lines changed

1 file changed

+14
-37
lines changed

php-project.el

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -102,79 +102,56 @@ STRING
102102
If the string is an actual directory path, it is set as the absolute path
103103
of the root directory, not the marker.")
104104
(put 'php-project-root 'safe-local-variable
105-
#'(lambda (v) (or (stringp v) (assq v php-project-available-root-files)))))
105+
#'(lambda (v) (or (stringp v) (assq v php-project-available-root-files))))
106106

107-
;;;###autoload
108-
(progn
109107
(defvar-local php-project-bootstrap-scripts nil
110108
"List of path to bootstrap php script file.
111109
112110
The ideal bootstrap file is silent, it only includes dependent files,
113111
defines constants, and sets the class loaders.")
114-
(put 'php-project-bootstrap-scripts 'safe-local-variable #'php-project--eval-bootstrap-scripts))
112+
(put 'php-project-bootstrap-scripts 'safe-local-variable #'php-project--eval-bootstrap-scripts)
115113

116-
;;;###autoload
117-
(progn
118114
(defvar-local php-project-php-executable nil
119115
"Path to php executable file.")
120116
(put 'php-project-php-executable 'safe-local-variable
121-
#'(lambda (v) (and (stringp v) (file-executable-p v)))))
117+
#'(lambda (v) (and (stringp v) (file-executable-p v))))
122118

123-
;;;###autoload
124-
(progn
125119
(defvar-local php-project-phan-executable nil
126120
"Path to phan executable file.")
127-
(put 'php-project-phan-executable 'safe-local-variable #'php-project--eval-bootstrap-scripts))
121+
(put 'php-project-phan-executable 'safe-local-variable #'php-project--eval-bootstrap-scripts)
128122

129-
;;;###autoload
130-
(progn
131123
(defvar-local php-project-coding-style nil
132124
"Symbol value of the coding style of the project that PHP major mode refers to.
133125
134126
Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.")
135-
(put 'php-project-coding-style 'safe-local-variable #'symbolp))
127+
(put 'php-project-coding-style 'safe-local-variable #'symbolp)
136128

137-
;;;###autoload
138-
(progn
139-
(defvar php-project-repl nil
129+
(defvar-local php-project-repl nil
140130
"Function name or path to REPL (interactive shell) script.")
141-
(make-variable-buffer-local 'php-project-repl)
142131
(put 'php-project-repl 'safe-local-variable
143132
#'(lambda (v) (or (functionp v)
144-
(php-project--eval-bootstrap-scripts v)))))
133+
(php-project--eval-bootstrap-scripts v))))
145134

146-
;;;###autoload
147-
(progn
148-
(defvar php-project-unit-test nil
135+
(defvar-local php-project-unit-test nil
149136
"Function name or path to unit test script.")
150-
(make-variable-buffer-local 'php-project-unit-test)
151137
(put 'php-project-unit-test 'safe-local-variable
152138
#'(lambda (v) (or (functionp v)
153-
(php-project--eval-bootstrap-scripts v)))))
139+
(php-project--eval-bootstrap-scripts v))))
154140

155-
;;;###autoload
156-
(progn
157-
(defvar php-project-deploy nil
141+
(defvar-local php-project-deploy nil
158142
"Function name or path to deploy script.")
159-
(make-variable-buffer-local 'php-project-deploy)
160143
(put 'php-project-deploy 'safe-local-variable
161144
#'(lambda (v) (or (functionp v)
162-
(php-project--eval-bootstrap-scripts v)))))
145+
(php-project--eval-bootstrap-scripts v))))
163146

164-
;;;###autoload
165-
(progn
166-
(defvar php-project-build nil
147+
(defvar-local php-project-build nil
167148
"Function name or path to build script.")
168-
(make-variable-buffer-local 'php-project-build)
169149
(put 'php-project-build 'safe-local-variable
170150
#'(lambda (v) (or (functionp v)
171-
(php-project--eval-bootstrap-scripts v)))))
151+
(php-project--eval-bootstrap-scripts v))))
172152

173-
;;;###autoload
174-
(progn
175-
(defvar php-project-server-start nil
153+
(defvar-local php-project-server-start nil
176154
"Function name or path to server-start script.")
177-
(make-variable-buffer-local 'php-project-server-start)
178155
(put 'php-project-server-start 'safe-local-variable
179156
#'(lambda (v) (or (functionp v)
180157
(php-project--eval-bootstrap-scripts v)))))

0 commit comments

Comments
 (0)