Add a test for issue #400.

That's not the same as actually fixing it, but I'm at a loss about how
exactly to do that.
This commit is contained in:
Dimitri Fontaine 2011-09-23 14:08:31 +02:00
parent 976ca293a6
commit c4ff249c0d
2 changed files with 15 additions and 0 deletions

12
test/el-get-issue-400.el Normal file
View File

@ -0,0 +1,12 @@
;; https://github.com/dimitri/el-get/issues/400
;;
;; el-get-install does not run the init hooks
(let ((debug-on-error t)
(el-get-verbose t))
;; (el-get-sources '((:name php-mode :features php-mode))))
(require 'el-get)
(el-get 'sync 'php-mode-improved)
(message "auto-mode-alist: %S" (rassoc 'php-mode auto-mode-alist))
(with-current-buffer (find-file "foo.php")
(message "%s: %s" (buffer-file-name) major-mode)))

3
test/foo.php Normal file
View File

@ -0,0 +1,3 @@
<?
# PHP test file for issue 400 and auto-mode-alist testing.
?>