Skip to content

Commit 08ef915

Browse files
committed
Revert "Use compat-string-trim-* functions for compatibility"
This reverts commit b6382f4.
1 parent cf10f7c commit 08ef915

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Diff for: Cask

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(package "php-mode" "1.24.1" "Major mode for editing PHP code")
2-
(source gnu)
32
(source melpa)
43

54
(package-file "lisp/php-mode.el")

Diff for: Makefile

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ AUTOLOADS = php-mode-autoloads.el
55
ELCS = $(ELS:.el=.elc)
66

77
%.elc: %.el
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 $<
8+
$(EMACS) --batch -L lisp/ -f batch-byte-compile $<
129

1310
all: autoloads $(ELCS) authors
1411

Diff for: lisp/php-mode.el

+2-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
;; URL: https://github.com/emacs-php/php-mode
1111
;; Keywords: languages php
1212
;; Version: 1.24.1
13-
;; Package-Requires: ((emacs "25.2") (compat "28.1.1.0"))
13+
;; Package-Requires: ((emacs "25.2"))
1414
;; License: GPL-3.0-or-later
1515

1616
(eval-and-compile
@@ -82,7 +82,6 @@
8282
(require 'rx)
8383
(require 'cl-lib)
8484
(require 'regexp-opt)
85-
(require 'compat-26 nil t)
8685
(defvar add-log-current-defun-header-regexp)
8786
(defvar add-log-current-defun-function)
8887
(defvar c-syntactic-context)
@@ -93,11 +92,7 @@
9392
(eval-when-compile
9493
(let* ((fallback-version (format "%s-non-vcs" (with-no-warnings php-mode-version-number))))
9594
(if (locate-dominating-file default-directory ".git")
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"))
95+
(string-trim-left (string-trim-right (shell-command-to-string "git describe --tags")) "v")
10196
fallback-version)))
10297
"PHP Mode build ID.
10398

0 commit comments

Comments
 (0)