|
1 | 1 | ;;; php-mode.el --- Major mode for editing PHP code
|
2 | 2 |
|
3 |
| -;; Copyright (C) 2018 Friends of Emacs-PHP development |
| 3 | +;; Copyright (C) 2018-2019 Friends of Emacs-PHP development |
4 | 4 | ;; Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad
|
5 | 5 | ;; 2008 Aaron S. Hawley
|
6 | 6 | ;; 2011, 2012, 2013, 2014, 2015, 2016, 2017 Eric James Michael Ritz
|
|
9 | 9 | ;; Maintainer: USAMI Kenta <[email protected]>
|
10 | 10 | ;; URL: https://github.com/emacs-php/php-mode
|
11 | 11 | ;; Keywords: languages php
|
12 |
| -;; Version: 1.20.0 |
| 12 | +;; Version: 1.21.0 |
13 | 13 | ;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
|
14 | 14 | ;; License: GPL-3.0-or-later
|
15 | 15 |
|
16 |
| -(defconst php-mode-version-number "1.20.0" |
| 16 | +(defconst php-mode-version-number "1.21.0" |
17 | 17 | "PHP Mode version number.")
|
18 | 18 |
|
19 |
| -(defconst php-mode-modified "2018-12-05" |
| 19 | +(defconst php-mode-modified "2019-01-09" |
20 | 20 | "PHP Mode build date.")
|
21 | 21 |
|
22 | 22 | ;; This file is free software; you can redistribute it and/or
|
@@ -418,7 +418,8 @@ This function may interfere with other hooks and other behaviors.
|
418 | 418 | In that case set to `NIL'."
|
419 | 419 | :type 'boolean)
|
420 | 420 |
|
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 |
422 | 423 | "When set to `T', do not run hooks of parent modes (`java-mode', `c-mode')."
|
423 | 424 | :type 'boolean
|
424 | 425 | :group 'php-mode)
|
@@ -1263,7 +1264,9 @@ After setting the stylevars run hooks according to STYLENAME
|
1263 | 1264 | "Major mode for editing PHP code.
|
1264 | 1265 |
|
1265 | 1266 | \\{php-mode-map}"
|
1266 |
| - (when php-mode-disable-parent-mode-hooks |
| 1267 | + ;; :after-hook (c-update-modeline) |
| 1268 | + ;; (setq abbrev-mode t) |
| 1269 | + (when php-mode-disable-c-mode-hook |
1267 | 1270 | (setq-local c-mode-hook nil)
|
1268 | 1271 | (setq-local java-mode-hook nil))
|
1269 | 1272 | (c-initialize-cc-mode t)
|
|
0 commit comments