(uniquify-ask-about-buffer-names-p): Remove, unused (bug#21037)
[emacs.git] / lisp / net / trampver.el
blob2f575f93037160e5d94e4b25855c8f26674f495e
1 ;;; trampver.el --- Transparent Remote Access, Multiple Protocol
2 ;;; lisp/trampver.el. Generated from trampver.el.in by configure.
4 ;; Copyright (C) 2003-2015 Free Software Foundation, Inc.
6 ;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
7 ;; Keywords: comm, processes
8 ;; Package: tramp
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25 ;;; Code:
27 ;; In the Tramp GIT repository, the version number and the bug report
28 ;; address are auto-frobbed from configure.ac, so you should edit that
29 ;; file and run "autoconf && ./configure" to change them. (X)Emacs
30 ;; version check is defined in macro AC_EMACS_INFO of aclocal.m4;
31 ;; should be changed only there.
33 ;;;###tramp-autoload
34 (defconst tramp-version "2.2.13-pre"
35 "This version of Tramp.")
37 ;;;###tramp-autoload
38 (defconst tramp-bug-report-address "tramp-devel@gnu.org"
39 "Email address to send bug reports to.")
41 (defun tramp-repository-get-version ()
42 "Try to return as a string the repository revision of the Tramp sources."
43 (unless (featurep 'xemacs)
44 (let ((dir
45 (funcall 'locate-dominating-file (locate-library "tramp") ".git")))
46 (when dir
47 (with-temp-buffer
48 (let ((default-directory (file-name-as-directory dir)))
49 (and (zerop
50 (ignore-errors
51 (call-process "git" nil '(t nil) nil "rev-parse" "HEAD")))
52 (not (zerop (buffer-size)))
53 (replace-regexp-in-string "\n" "" (buffer-string)))))))))
55 ;; Check for (X)Emacs version.
56 (let ((x (if (or (>= emacs-major-version 22)
57 (and (featurep 'xemacs)
58 (= emacs-major-version 21)
59 (>= emacs-minor-version 4)))
60 "ok"
61 (format "Tramp 2.2.13-pre is not fit for %s"
62 (when (string-match "^.*$" (emacs-version))
63 (match-string 0 (emacs-version)))))))
64 (unless (string-match "\\`ok\\'" x) (error "%s" x)))
66 (add-hook 'tramp-unload-hook
67 (lambda ()
68 (unload-feature 'trampver 'force)))
70 (provide 'trampver)
72 ;;; trampver.el ends here
74 ;; Local Variables:
75 ;; mode: Emacs-Lisp
76 ;; coding: utf-8
77 ;; End: