Skip to content

Commit

Permalink
Add a test for issue dimitri#400.
Browse files Browse the repository at this point in the history
That's not the same as actually fixing it, but I'm at a loss about how
exactly to do that.
  • Loading branch information
dimitri committed Sep 23, 2011
1 parent 976ca29 commit c4ff249
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/el-get-issue-400.el
@@ -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 changes: 3 additions & 0 deletions test/foo.php
@@ -0,0 +1,3 @@
<?
# PHP test file for issue 400 and auto-mode-alist testing.
?>

0 comments on commit c4ff249

Please sign in to comment.