File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 16
16
(defconst php-mode-version-number " 1.22.1"
17
17
" PHP Mode version number." )
18
18
19
- (defconst php-mode-modified " 2019-11-10"
20
- " PHP Mode build date." )
21
-
22
19
; ; This program is free software; you can redistribute it and/or modify
23
20
; ; it under the terms of the GNU General Public License as published by
24
21
; ; the Free Software Foundation, either version 3 of the License, or
@@ -346,9 +343,16 @@ In that case set to `NIL'."
346
343
(defun php-mode-version ()
347
344
" Display string describing the version of PHP Mode."
348
345
(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)))
352
356
353
357
;;;### autoload
354
358
(define-obsolete-variable-alias 'php-available-project-root-files 'php-project-available-root-files " 1.19.0" )
You can’t perform that action at this time.
0 commit comments