|
|
1.1 root 1: ;; Record version number of Emacs.
2: ;; Copyright (C) 1985 Richard M. Stallman.
3:
4: ;; This file is part of GNU Emacs.
5:
6: ;; GNU Emacs is distributed in the hope that it will be useful,
7: ;; but WITHOUT ANY WARRANTY. No author or distributor
8: ;; accepts responsibility to anyone for the consequences of using it
9: ;; or for whether it serves any particular purpose or works at all,
10: ;; unless he says so in writing. Refer to the GNU Emacs General Public
11: ;; License for full details.
12:
13: ;; Everyone is granted permission to copy, modify and redistribute
14: ;; GNU Emacs, but only under the conditions described in the
15: ;; GNU Emacs General Public License. A copy of this license is
16: ;; supposed to have been given to you along with GNU Emacs so you
17: ;; can know your rights and responsibilities. It should be in a
18: ;; file named COPYING. Among other things, the copyright notice
19: ;; and this notice must be preserved on all copies.
20:
21:
22: ;; The following line is modified automatically
23: ;; by loading inc-version.el, each time a new Emacs is dumped.
24: (defconst emacs-version "17.61.0"
25: "Version numbers of this version of Emacs.")
26:
27: (defconst emacs-build-time (current-time-string)
28: "Time at which Emacs was dumped out.")
29:
30: (defun emacs-version ()
31: "\
32: Return string describing the version of Emacs that is running."
33: (interactive)
34: (if (interactive-p)
35: (message "%s" (emacs-version))
36: (format "GNU Emacs %s of %s %s"
37: emacs-version
38: (substring emacs-build-time 0
39: (string-match " *[0-9]*:" emacs-build-time))
40: (substring emacs-build-time (string-match "[0-9]*$" emacs-build-time)))))
41:
42: ;;Local variables:
43: ;;version-control: never
44: ;;End:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.