File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
(package " php-mode" " 1.24.1" " Major mode for editing PHP code" )
2
+ (source gnu )
2
3
(source melpa )
3
4
4
5
(package-file " lisp/php-mode.el" )
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ AUTOLOADS = php-mode-autoloads.el
5
5
ELCS = $(ELS:.el=.elc )
6
6
7
7
% .elc : % .el
8
- $(EMACS ) --batch -L lisp/ -f batch-byte-compile $<
8
+ $(EMACS ) --batch -L lisp/ --eval \
9
+ " (let ((default-directory (expand-file-name \" .cask\" default-directory))) \
10
+ (normal-top-level-add-subdirs-to-load-path))" \
11
+ -f batch-byte-compile $<
9
12
10
13
all : autoloads $(ELCS ) authors
11
14
Original file line number Diff line number Diff line change 10
10
; ; URL: https://github.com/emacs-php/php-mode
11
11
; ; Keywords: languages php
12
12
; ; Version: 1.24.1
13
- ; ; Package-Requires: ((emacs "25.2"))
13
+ ; ; Package-Requires: ((emacs "25.2") (compat "28.1.1.0") )
14
14
; ; License: GPL-3.0-or-later
15
15
16
16
(eval-and-compile
82
82
(require 'rx )
83
83
(require 'cl-lib )
84
84
(require 'regexp-opt )
85
+ (require 'compat-26 nil t )
85
86
(defvar add-log-current-defun-header-regexp )
86
87
(defvar add-log-current-defun-function )
87
88
(defvar c-syntactic-context )
92
93
(eval-when-compile
93
94
(let* ((fallback-version (format " %s -non-vcs" (with-no-warnings php-mode-version-number))))
94
95
(if (locate-dominating-file default-directory " .git" )
95
- (string-trim-left (string-trim-right (shell-command-to-string " git describe --tags" )) " v" )
96
+ (funcall
97
+ (if (and (boundp 'string-trim-left ) (boundp 'string-trim-right ))
98
+ (lambda (s ) (string-trim-left (string-trim-right s) " v" ))
99
+ (lambda (s ) (compat-string-trim-left (compat-string-trim-right s) " v" )))
100
+ (shell-command-to-string " git describe --tags" ))
96
101
fallback-version)))
97
102
" PHP Mode build ID.
98
103
You can’t perform that action at this time.
0 commit comments