Skip to content

Commit 37ab87a

Browse files
authored
Merge pull request #495 from emacs-php/release/1.21.0
Release 1.21.0
2 parents 553977a + 0e3f35b commit 37ab87a

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

Cask

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(package "php-mode" "1.20.0" "Major mode for editing PHP code")
1+
(package "php-mode" "1.21.0" "Major mode for editing PHP code")
22
(source melpa)
33

44
(package-file "php-mode.el")

Changelog.md

+17
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes of the PHP Mode 1.19.1 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [1.21.0] - 2019-01-09
6+
7+
A minor change from the previous version, but this version has BC brake about `c-mode-hook`.
8+
9+
### Added
10+
11+
* Add `php` customize group.
12+
* This group is positioned above `php-mode`.
13+
* This group was originally planned to be included in v1.20.0.
14+
* Add `php-mode-disable-c-mode-hook` custom variable.
15+
* Setting this variable to `nil` will restore the behavior of `c-mode-hook` up to the previous version.
16+
17+
### Changed
18+
19+
* `php-mode` initialization no longer executes hooks for `c-mode`.
20+
* If you want to return to the same behavior as the conventional PHP-Mode, set `nil` to `php-mode-disable-c-mode-hook`.
21+
522
## [1.20.0] - 2018-12-07
623

724
Start preparing for major refactoring in major mode.

php-mode.el

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; php-mode.el --- Major mode for editing PHP code
22

3-
;; Copyright (C) 2018 Friends of Emacs-PHP development
3+
;; Copyright (C) 2018-2019 Friends of Emacs-PHP development
44
;; Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad
55
;; 2008 Aaron S. Hawley
66
;; 2011, 2012, 2013, 2014, 2015, 2016, 2017 Eric James Michael Ritz
@@ -9,14 +9,14 @@
99
;; Maintainer: USAMI Kenta <[email protected]>
1010
;; URL: https://github.com/emacs-php/php-mode
1111
;; Keywords: languages php
12-
;; Version: 1.20.0
12+
;; Version: 1.21.0
1313
;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
1414
;; License: GPL-3.0-or-later
1515

16-
(defconst php-mode-version-number "1.20.0"
16+
(defconst php-mode-version-number "1.21.0"
1717
"PHP Mode version number.")
1818

19-
(defconst php-mode-modified "2018-12-05"
19+
(defconst php-mode-modified "2019-01-09"
2020
"PHP Mode build date.")
2121

2222
;; 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.
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,9 @@ 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+
;; :after-hook (c-update-modeline)
1268+
;; (setq abbrev-mode t)
1269+
(when php-mode-disable-c-mode-hook
12671270
(setq-local c-mode-hook nil)
12681271
(setq-local java-mode-hook nil))
12691272
(c-initialize-cc-mode t)

php-project.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
;;; php-project.el --- Project support for PHP application -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 2018 Friends of Emacs-PHP development
3+
;; Copyright (C) 2018-2019 Friends of Emacs-PHP development
44

55
;; Author: USAMI Kenta <[email protected]>
66
;; Keywords: tools, files
77
;; URL: https://github.com/emacs-php/php-mode
8-
;; Version: 1.20.0
8+
;; Version: 1.21.0
99
;; Package-Requires: ((emacs "24.3") (cl-lib "0.5"))
1010
;; License: GPL-3.0-or-later
1111

0 commit comments

Comments
 (0)