Skip to content

Commit

Permalink
Merge pull request #590 from emacs-php/remove/php-mode-modified
Browse files Browse the repository at this point in the history
Remove php-mode-modified and add $Id$
  • Loading branch information
zonuexe authored Nov 20, 2019
2 parents 127b1f0 + 2018357 commit 5387df9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
(defconst php-mode-version-number "1.22.1"
"PHP Mode version number.")

(defconst php-mode-modified "2019-11-10"
"PHP Mode build date.")

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -346,9 +343,16 @@ In that case set to `NIL'."
(defun php-mode-version ()
"Display string describing the version of PHP Mode."
(interactive)
(funcall
(if (called-interactively-p 'interactive) #'message #'format)
"PHP Mode %s of %s" php-mode-version-number php-mode-modified))
(let ((fmt
(eval-when-compile
(let ((id "$Id$"))
(concat "PHP Mode %s"
(if (string= id (concat [?$ ?I ?d ?$]))
""
(concat " " id)))))))
(funcall
(if (called-interactively-p 'interactive) #'message #'format)
fmt php-mode-version-number)))

;;;###autoload
(define-obsolete-variable-alias 'php-available-project-root-files 'php-project-available-root-files "1.19.0")
Expand Down

0 comments on commit 5387df9

Please sign in to comment.