version.el 1.7 KB

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