Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove php-mode-modified and add $Id$ #590

Merged
merged 1 commit into from
Nov 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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