File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -605,6 +605,13 @@ style from Drupal."
605
605
(search-forward " $that" )
606
606
(should-not (eq 'font-lock-constant-face (get-text-property (- (point ) 1 ) 'face )))))
607
607
608
+ (ert-deftest php-mode-test-issue-307 ()
609
+ " Activating php-mode should not mark the buffer as modified."
610
+ (with-php-mode-test (" issue-307.php" )
611
+ (set-buffer-modified-p nil )
612
+ (php-mode)
613
+ (should-not (buffer-modified-p ))))
614
+
608
615
; ;; php-mode-test.el ends here
609
616
610
617
; ; Local Variables:
Original file line number Diff line number Diff line change @@ -1061,7 +1061,8 @@ PHP heredoc."
1061
1061
php-beginning-of-defun-regexp)
1062
1062
1063
1063
(when (>= emacs-major-version 25 )
1064
- (php-syntax-propertize-function (point-min ) (point-max ))))
1064
+ (with-silent-modifications
1065
+ (php-syntax-propertize-function (point-min ) (point-max )))))
1065
1066
1066
1067
1067
1068
; ; Define function name completion function
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ // It's the apostrophe.
You can’t perform that action at this time.
0 commit comments