Skip to content

Commit 2018357

Browse files
committed
Remove php-mode-modified and add $Id$
1 parent 127b1f0 commit 2018357

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Diff for: php-mode.el

+10-6
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
(defconst php-mode-version-number "1.22.1"
1717
"PHP Mode version number.")
1818

19-
(defconst php-mode-modified "2019-11-10"
20-
"PHP Mode build date.")
21-
2219
;; This program is free software; you can redistribute it and/or modify
2320
;; it under the terms of the GNU General Public License as published by
2421
;; the Free Software Foundation, either version 3 of the License, or
@@ -346,9 +343,16 @@ In that case set to `NIL'."
346343
(defun php-mode-version ()
347344
"Display string describing the version of PHP Mode."
348345
(interactive)
349-
(funcall
350-
(if (called-interactively-p 'interactive) #'message #'format)
351-
"PHP Mode %s of %s" php-mode-version-number php-mode-modified))
346+
(let ((fmt
347+
(eval-when-compile
348+
(let ((id "$Id$"))
349+
(concat "PHP Mode %s"
350+
(if (string= id (concat [?$ ?I ?d ?$]))
351+
""
352+
(concat " " id)))))))
353+
(funcall
354+
(if (called-interactively-p 'interactive) #'message #'format)
355+
fmt php-mode-version-number)))
352356

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

0 commit comments

Comments
 (0)