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 @@ -612,6 +612,13 @@ style from Drupal."
612
612
(php-mode)
613
613
(should-not (buffer-modified-p ))))
614
614
615
+ (ert-deftest php-mode-test-issue-314 ()
616
+ " Activating php-mode should not move point."
617
+ (with-php-mode-test (" issue-314.php" )
618
+ (let ((orig-point (point )))
619
+ (php-mode)
620
+ (should (eq (point ) orig-point)))))
621
+
615
622
(ert-deftest php-mode-test-issue-310 ()
616
623
" Proper indentation after function with return type."
617
624
(with-php-mode-test (" issue-310.php" :indent t :magic t )))
Original file line number Diff line number Diff line change @@ -1079,7 +1079,8 @@ PHP heredoc."
1079
1079
1080
1080
(when (>= emacs-major-version 25 )
1081
1081
(with-silent-modifications
1082
- (php-syntax-propertize-function (point-min ) (point-max )))))
1082
+ (save-excursion
1083
+ (php-syntax-propertize-function (point-min ) (point-max ))))))
1083
1084
1084
1085
1085
1086
; ; 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