mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
* lisp/net/trampver.el: Simplify version check.
This commit is contained in:
parent
a84c3810b5
commit
421e2fb791
@ -56,9 +56,8 @@
|
||||
(let ((x (if (>= emacs-major-version 24)
|
||||
"ok"
|
||||
(format "Tramp 2.4.0-pre is not fit for %s"
|
||||
(when (string-match "^.*$" (emacs-version))
|
||||
(match-string 0 (emacs-version)))))))
|
||||
(unless (string-match "\\`ok\\'" x) (error "%s" x)))
|
||||
(replace-regexp-in-string "\n" "" (emacs-version))))))
|
||||
(unless (string-equal "ok" x) (error "%s" x)))
|
||||
|
||||
;; Tramp versions integrated into Emacs.
|
||||
(add-to-list
|
||||
|
Loading…
Reference in New Issue
Block a user