9
9
; ; URL: https://github.com/ejmr/php-mode
10
10
; ; Keywords: languages php
11
11
; ; Version: 1.19.1
12
- ; ; Package-Requires: ((emacs "24") (cl-lib "0.5"))
12
+ ; ; Package-Requires: ((emacs "24.3 ") (cl-lib "0.5"))
13
13
; ; License: GPL-3.0-or-later
14
14
15
15
(defconst php-mode-version-number " 1.19.1"
@@ -1107,8 +1107,7 @@ this ^ lineup"
1107
1107
1108
1108
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag " 1.19.0" )
1109
1109
1110
- (defvar php-mode--delayed-set-style nil )
1111
- (make-variable-buffer-local 'php-mode--delayed-set-style )
1110
+ (defvar-local php-mode--delayed-set-style nil )
1112
1111
1113
1112
(defun php-set-style (stylename &optional dont-override )
1114
1113
" Set the current `php-mode' buffer to use the style STYLENAME.
@@ -1240,13 +1239,13 @@ After setting the stylevars run hooks according to STYLENAME
1240
1239
(c-init-language-vars php-mode)
1241
1240
(c-common-init 'php-mode )
1242
1241
1243
- (set ( make -local-variable ' font-lock-string-face) 'php-string )
1244
- (set ( make -local-variable ' font-lock-keyword-face) 'php-keyword )
1245
- (set ( make -local-variable ' font-lock-builtin-face) 'php-builtin )
1246
- (set ( make -local-variable ' c-preprocessor-face-name) 'php-php-tag )
1247
- (set ( make -local-variable ' font-lock-function-name-face) 'php-function-name )
1248
- (set ( make -local-variable ' font-lock-variable-name-face) 'php-variable-name )
1249
- (set ( make -local-variable ' font-lock-constant-face) 'php-constant )
1242
+ (setq -local font-lock-string-face 'php-string )
1243
+ (setq -local font-lock-keyword-face 'php-keyword )
1244
+ (setq -local font-lock-builtin-face 'php-builtin )
1245
+ (setq -local c-preprocessor-face-name 'php-php-tag )
1246
+ (setq -local font-lock-function-name-face 'php-function-name )
1247
+ (setq -local font-lock-variable-name-face 'php-variable-name )
1248
+ (setq -local font-lock-constant-face 'php-constant )
1250
1249
1251
1250
(modify-syntax-entry ?_ " _" php-mode-syntax-table)
1252
1251
(modify-syntax-entry ?` " \" " php-mode-syntax-table)
@@ -1255,7 +1254,7 @@ After setting the stylevars run hooks according to STYLENAME
1255
1254
(modify-syntax-entry ?\n " > b" php-mode-syntax-table)
1256
1255
(modify-syntax-entry ?$ " '" php-mode-syntax-table)
1257
1256
1258
- (set ( make -local-variable ' syntax-propertize-function) #'php-syntax-propertize-function )
1257
+ (setq -local syntax-propertize-function #'php-syntax-propertize-function )
1259
1258
(add-to-list (make-local-variable 'syntax-propertize-extend-region-functions )
1260
1259
#'php-syntax-propertize-extend-region )
1261
1260
@@ -1289,26 +1288,22 @@ After setting the stylevars run hooks according to STYLENAME
1289
1288
1290
1289
; ; syntax-begin-function is obsolete in Emacs 25.1
1291
1290
(with-no-warnings
1292
- (set (make-local-variable 'syntax-begin-function )
1293
- 'c-beginning-of-syntax ))
1291
+ (setq-local syntax-begin-function 'c-beginning-of-syntax ))
1294
1292
1295
1293
; ; We map the php-{beginning,end}-of-defun functions so that they
1296
1294
; ; replace the similar commands that we inherit from CC Mode.
1297
1295
; ; Because of our remapping we may not actually need to keep the
1298
1296
; ; following two local variables, but we keep them for now until we
1299
1297
; ; are completely sure their removal will not break any current
1300
1298
; ; behavior or backwards compatibility.
1301
- (set (make-local-variable 'beginning-of-defun-function )
1302
- 'php-beginning-of-defun )
1303
- (set (make-local-variable 'end-of-defun-function )
1304
- 'php-end-of-defun )
1305
-
1306
- (set (make-local-variable 'open-paren-in-column-0-is-defun-start )
1307
- nil )
1308
- (set (make-local-variable 'defun-prompt-regexp )
1309
- " ^\\ s-*function\\ s-+&?\\ s-*\\ (\\ (\\ sw\\ |\\ s_\\ )+\\ )\\ s-*" )
1310
- (set (make-local-variable 'add-log-current-defun-header-regexp )
1311
- php-beginning-of-defun-regexp)
1299
+ (setq-local beginning-of-defun-function 'php-beginning-of-defun )
1300
+ (setq-local end-of-defun-function 'php-end-of-defun )
1301
+
1302
+ (setq-local open-paren-in-column-0-is-defun-start nil )
1303
+ (setq-local defun-prompt-regexp
1304
+ " ^\\ s-*function\\ s-+&?\\ s-*\\ (\\ (\\ sw\\ |\\ s_\\ )+\\ )\\ s-*" )
1305
+ (setq-local add-log-current-defun-header-regexp
1306
+ php-beginning-of-defun-regexp)
1312
1307
1313
1308
(when (>= emacs-major-version 25 )
1314
1309
(with-silent-modifications
0 commit comments