Document reserved keys
[emacs.git] / lisp / net / trampver.el
blob1a7727820ef64bdb9f4b06fc791362ad8892181b
1 ;;; trampver.el --- Transparent Remote Access, Multiple Protocol -*- lexical-binding:t -*-
2 ;;; lisp/trampver.el. Generated from trampver.el.in by configure.
4 ;; Copyright (C) 2003-2018 Free Software Foundation, Inc.
6 ;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
7 ;; Maintainer: Michael Albinus <michael.albinus@gmx.de>
8 ;; Keywords: comm, processes
9 ;; Package: tramp
10 ;; Version: 2.3.3.26.1
12 ;; This file is part of GNU Emacs.
14 ;; GNU Emacs is free software: you can redistribute it and/or modify
15 ;; it under the terms of the GNU General Public License as published by
16 ;; the Free Software Foundation, either version 3 of the License, or
17 ;; (at your option) any later version.
19 ;; GNU Emacs is distributed in the hope that it will be useful,
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;; GNU General Public License for more details.
24 ;; You should have received a copy of the GNU General Public License
25 ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
27 ;;; Code:
29 ;; In the Tramp GIT repository, the version number and the bug report
30 ;; address are auto-frobbed from configure.ac, so you should edit that
31 ;; file and run "autoconf && ./configure" to change them. Emacs
32 ;; version check is defined in macro AC_EMACS_INFO of aclocal.m4;
33 ;; should be changed only there.
35 ;;;###tramp-autoload
36 (defconst tramp-version "2.3.3.26.1"
37 "This version of Tramp.")
39 ;;;###tramp-autoload
40 (defconst tramp-bug-report-address "tramp-devel@gnu.org"
41 "Email address to send bug reports to.")
43 (defun tramp-repository-get-version ()
44 "Try to return as a string the repository revision of the Tramp sources."
45 (let ((dir (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 Emacs version.
56 (let ((x (if (>= emacs-major-version 24)
57 "ok"
58 (format "Tramp 2.3.3.26.1 is not fit for %s"
59 (when (string-match "^.*$" (emacs-version))
60 (match-string 0 (emacs-version)))))))
61 (unless (string-match "\\`ok\\'" x) (error "%s" x)))
63 ;; Tramp versions integrated into Emacs.
64 (add-to-list
65 'customize-package-emacs-version-alist
66 '(Tramp ("2.0.55" . "22.1") ("2.0.57" . "22.2") ("2.0.58-pre" . "22.3")
67 ("2.1.15" . "23.1") ("2.1.18-23.2" . "23.2")
68 ("2.1.20" . "23.3") ("2.1.21-pre" . "23.4")
69 ("2.2.3-24.1" . "24.1") ("2.2.3-24.1" . "24.2") ("2.2.6-24.3" . "24.3")
70 ("2.2.9-24.4" . "24.4") ("2.2.11-24.5" . "24.5")
71 ("2.2.13.25.1" . "25.1") ("2.2.13.25.2" . "25.2")
72 ("2.2.13.25.2" . "25.3")
73 ("2.3.3.26.1" . "26.1")))
75 (add-hook 'tramp-unload-hook
76 (lambda ()
77 (unload-feature 'trampver 'force)))
79 (provide 'trampver)
81 ;;; trampver.el ends here
83 ;; Local Variables:
84 ;; mode: Emacs-Lisp
85 ;; coding: utf-8
86 ;; End: