Commit 421e2fb7 authored by Michael Albinus's avatar Michael Albinus
Browse files

* lisp/net/trampver.el: Simplify version check.

parent a84c3810
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment