Skip to content

Commit cd6e7c4

Browse files
committed
Rename php-mode-disable-parent-mode-hooks to php-mode-disable-c-mode-hook
This variable may cause misunderstanding because it does not invalidate prog-mode-hook.
1 parent 553977a commit cd6e7c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

php-mode.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ This function may interfere with other hooks and other behaviors.
418418
In that case set to `NIL'."
419419
:type 'boolean)
420420

421-
(defcustom php-mode-disable-parent-mode-hooks t
421+
(define-obsolete-variable-alias 'php-mode-disable-parent-mode-hooks 'php-mode-disable-c-mode-hook "1.21.0")
422+
(defcustom php-mode-disable-c-mode-hook t
422423
"When set to `T', do not run hooks of parent modes (`java-mode', `c-mode')."
423424
:type 'boolean
424425
:group 'php-mode)
@@ -1263,7 +1264,7 @@ After setting the stylevars run hooks according to STYLENAME
12631264
"Major mode for editing PHP code.
12641265
12651266
\\{php-mode-map}"
1266-
(when php-mode-disable-parent-mode-hooks
1267+
(when php-mode-disable-c-mode-hook
12671268
(setq-local c-mode-hook nil)
12681269
(setq-local java-mode-hook nil))
12691270
(c-initialize-cc-mode t)

0 commit comments

Comments
 (0)