Commit f80c9f43 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(emacs-major-version, emacs-minor-version): string-to-int -> string-to-number.

parent 2d24dbb5
2007-02-28 Stefan Monnier <monnier@iro.umontreal.ca>
* version.el (emacs-major-version, emacs-minor-version):
string-to-int -> string-to-number.
2007-02-28 Juanma Barranquero <lekktu@gmail.com>
 
* help.el (where-is): Fail gracefully when not passed a command.
......@@ -32,13 +32,13 @@ Version numbers of this version of Emacs.")
(defconst emacs-major-version
(progn (string-match "^[0-9]+" emacs-version)
(string-to-int (match-string 0 emacs-version)))
(string-to-number (match-string 0 emacs-version)))
"Major version number of this version of Emacs.
This variable first existed in version 19.23.")
(defconst emacs-minor-version
(progn (string-match "^[0-9]+\\.\\([0-9]+\\)" emacs-version)
(string-to-int (match-string 1 emacs-version)))
(string-to-number (match-string 1 emacs-version)))
"Minor version number of this version of Emacs.
This variable first existed in version 19.23.")
......@@ -92,5 +92,5 @@ to the system configuration; look at `system-configuration' instead."
;;version-control: never
;;End:
;;; arch-tag: e60dc445-6218-4a4c-a7df-f15a818642a0
;; arch-tag: e60dc445-6218-4a4c-a7df-f15a818642a0
;;; version.el ends here
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