Mercurial > hg > xemacs-beta
annotate lisp/version.el @ 793:e38acbeb1cae
[xemacs-hg @ 2002-03-29 04:46:17 by ben]
lots o' fixes
etc/ChangeLog: New file.
Separated out all entries for etc/ into their own ChangeLog.
Includes entries for the following files:
etc/BABYL, etc/BETA, etc/CHARSETS, etc/DISTRIB, etc/Emacs.ad,
etc/FTP, etc/GNUS-NEWS, etc/GOATS, etc/HELLO, etc/INSTALL,
etc/MACHINES, etc/MAILINGLISTS, etc/MSDOS, etc/MYTHOLOGY, etc/NEWS,
etc/OXYMORONS, etc/PACKAGES, etc/README, etc/TUTORIAL,
etc/TUTORIAL.de, etc/TUTORIAL.ja, etc/TUTORIAL.ko, etc/TUTORIAL.se,
etc/aliases.ksh, etc/altrasoft-logo.xpm, etc/check_cygwin_setup.sh,
etc/custom/example-themes/europe-theme.el,
etc/custom/example-themes/ex-custom-file,
etc/custom/example-themes/example-theme.el, etc/e/eterm.ti,
etc/edt-user.doc, etc/enriched.doc, etc/etags.1, etc/gnuserv.1,
etc/gnuserv.README, etc/package-index.LATEST.gpg,
etc/package-index.LATEST.pgp, etc/photos/jan.png, etc/recycle.xpm,
etc/refcard.tex, etc/sample.Xdefaults, etc/sample.emacs,
etc/sgml/CATALOG, etc/sgml/HTML32.dtd, etc/skk/SKK.tut.E,
etc/smilies/Face_ase.xbm, etc/smilies/Face_ase2.xbm,
etc/smilies/Face_ase3.xbm, etc/smilies/Face_smile.xbm,
etc/smilies/Face_weep.xbm, etc/sounds, etc/toolbar,
etc/toolbar/workshop-cap-up.xpm, etc/xemacs-ja.1, etc/xemacs.1,
etc/yow.lines, etc\BETA, etc\NEWS, etc\README, etc\TUTORIAL,
etc\TUTORIAL.de, etc\check_cygwin_setup.sh, etc\sample.init.el,
etc\unicode\README, etc\unicode\mule-ucs\*, etc\unicode\other\*
unicode/unicode-consortium/8859-16.TXT: New file.
mule/english.el: Define this charset now, since a bug was fixed that formerly
prevented it.
mule/ethio-util.el: Fix compile errors involving Unicode `characters', which should be
integers.
Makefile.in.in: Always include gui.c, to fix compile error when TTY-only.
EmacsFrame.c, abbrev.c, alloc.c, buffer.c, buffer.h, bytecode.c, bytecode.h, callint.c, callproc.c, casetab.c, casetab.h, charset.h, chartab.c, chartab.h, cmds.c, console-msw.c, console-msw.h, console-tty.c, console-x.c, console-x.h, console.c, console.h, data.c, database.c, device-gtk.c, device-msw.c, device-x.c, device.c, device.h, dialog-msw.c, doc.c, doprnt.c, dumper.c, dynarr.c, editfns.c, eldap.c, eldap.h, elhash.c, elhash.h, emacs.c, eval.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, event-unixoid.c, events.c, events.h, extents.c, extents.h, faces.c, faces.h, file-coding.c, file-coding.h, fileio.c, filelock.c, fns.c, frame-gtk.c, frame-msw.c, frame-tty.c, frame-x.c, frame.c, frame.h, free-hook.c, general-slots.h, glyphs-eimage.c, glyphs-gtk.c, glyphs-msw.c, glyphs-widget.c, glyphs-x.c, glyphs.c, glyphs.h, gpmevent.c, gtk-xemacs.c, gui-msw.c, gui-x.c, gui-x.h, gui.c, gui.h, gutter.c, gutter.h, indent.c, input-method-xlib.c, insdel.c, keymap.c, keymap.h, lisp-disunion.h, lisp-union.h, lisp.h, lread.c, lrecord.h, lstream.c, lstream.h, marker.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, menubar.c, minibuf.c, mule-canna.c, mule-ccl.c, mule-charset.c, mule-wnnfns.c, native-gtk-toolbar.c, objects-msw.c, objects-tty.c, objects-x.c, objects.c, objects.h, opaque.c, opaque.h, postgresql.c, postgresql.h, print.c, process-unix.c, process.c, process.h, rangetab.c, rangetab.h, redisplay-gtk.c, redisplay-msw.c, redisplay-output.c, redisplay-tty.c, redisplay-x.c, redisplay.c, scrollbar-gtk.c, scrollbar-msw.c, scrollbar-x.c, scrollbar.c, scrollbar.h, search.c, select-gtk.c, select-x.c, sound.c, specifier.c, specifier.h, strftime.c, symbols.c, symeval.h, syntax.h, text.c, text.h, toolbar-common.c, toolbar-msw.c, toolbar.c, toolbar.h, tooltalk.c, tooltalk.h, ui-gtk.c, ui-gtk.h, undo.c, vm-limit.c, window.c, window.h: Eliminate XSETFOO. Replace all usages with wrap_foo().
Make symbol->name a Lisp_Object, not Lisp_String *. Eliminate
nearly all uses of Lisp_String * in favor of Lisp_Object, and
correct macros so most of them favor Lisp_Object.
Create new error-behavior ERROR_ME_DEBUG_WARN -- output warnings,
but at level `debug' (usually ignored). Use it when instantiating
specifiers, so problems can be debugged. Move
log-warning-minimum-level into C so that we can optimize
ERROR_ME_DEBUG_WARN.
Fix warning levels consistent with new definitions.
Add default_ and parent fields to char table; not yet implemented.
New fun Dynarr_verify(); use for further error checking on Dynarrs.
Rearrange code at top of lisp.h in conjunction with dynarr changes.
Fix eifree(). Use Eistrings in various places
(format_event_object(), where_is_to_char(), and callers thereof)
to avoid fixed-size strings buffers. New fun write_eistring().
Reindent and fix GPM code to follow standards.
Set default MS Windows font to Lucida Console (same size as
Courier New but less interline spacing, so more lines fit).
Increase default frame size on Windows to 50 lines. (If that's too
big for the workspace, the frame will be shrunk as necessary.)
Fix problem with text files with no newlines (). (Change
`convert-eol' coding system to use `nil' for autodetect,
consistent with make-coding-system.)
Correct compile warnings in vm-limit.c.
Fix handling of reverse-direction charsets to avoid errors when
opening (e.g.) mule-ucs/lisp/reldata/uiso8859-6.el.
Recode some object printing methods to use write_fmt_string()
instead of a fixed buffer and sprintf.
Turn on display of png comments as warnings (level `info'), now
that they're unobtrusive.
Revamped the sound documentation.
Fixed bug in redisplay w.r.t. hscroll/truncation/continuation
glyphs causing jumping up and down of the lines, since they're
bigger than the line size. (It was seen most obviously when
there's a horizontal scroll bar, e.g. do C-h a glyph or something
like that.) The problem was that the glyph-contrib-p setting on
glyphs was ignored even if it was set properly, which it wasn't
until now.
author | ben |
---|---|
date | Fri, 29 Mar 2002 04:49:13 +0000 |
parents | 023b83f4e54b |
children | 151d438d2d55 |
rev | line source |
---|---|
428 | 1 ;; version.el --- Record version number of Emacs. |
2 | |
3 ;; Copyright (C) 1985, 1991-1994, 1997 Free Software Foundation, Inc. | |
4 | |
5 ;; Maintainer: XEmacs Development Team | |
6 ;; Keywords: internal, dumped | |
7 | |
8 ;; This file is part of XEmacs. | |
9 | |
10 ;; XEmacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; XEmacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
613 | 21 ;; along with XEmacs; see the file COPYING. If not, write to the |
428 | 22 ;; Free Software Foundation Inc., 59 Temple Place - Suite 330, |
23 ;; Boston, MA 02111-1307, USA. | |
24 | |
25 ;;; Synched up with: FSF 19.34. | |
26 | |
27 ;;; Commentary: | |
28 | |
29 ;; This file is dumped with XEmacs. | |
30 | |
31 ;;; Code: | |
32 | |
33 (defconst xemacs-betaname | |
34 (and emacs-beta-version (format "(beta%d)" emacs-beta-version)) | |
35 "Non-nil when this is a test (beta) version of XEmacs. | |
36 Warning, this variable did not exist in XEmacs versions prior to 20.3") | |
37 | |
38 (defconst emacs-version | |
444 | 39 (format "%d.%d %s%s%s%s" |
40 emacs-major-version | |
41 emacs-minor-version | |
42 (if emacs-patch-level | |
43 (format "(patch %d)" emacs-patch-level) | |
44 "") | |
45 (if xemacs-betaname | |
46 (concat " " xemacs-betaname) | |
47 "") | |
48 (if xemacs-codename | |
49 (concat " \"" xemacs-codename "\"") | |
50 "") | |
51 " XEmacs Lucid") | |
428 | 52 "Version numbers of this version of XEmacs.") |
53 | |
54 (if (featurep 'infodock) | |
55 (require 'id-vers)) | |
56 | |
57 ;; Moved to C code as of XEmacs 20.3 | |
58 ;(defconst emacs-major-version | |
59 ; (progn (or (string-match "^[0-9]+" emacs-version) | |
60 ; (error "emacs-version unparsable")) | |
61 ; (string-to-int (match-string 0 emacs-version))) | |
62 ; "Major version number of this version of Emacs, as an integer. | |
63 ;Warning, this variable did not exist in Emacs versions earlier than: | |
64 ; FSF Emacs: 19.23 | |
65 ; XEmacs: 19.10") | |
66 | |
67 ;; Moved to C code as of XEmacs 20.3 | |
68 ;(defconst emacs-minor-version | |
69 ; (progn (or (string-match "^[0-9]+\\.\\([0-9]+\\)" emacs-version) | |
70 ; (error "emacs-version unparsable")) | |
71 ; (string-to-int (match-string 1 emacs-version))) | |
72 ; "Minor version number of this version of Emacs, as an integer. | |
73 ;Warning, this variable did not exist in Emacs versions earlier than: | |
74 ; FSF Emacs: 19.23 | |
75 ; XEmacs: 19.10") | |
76 | |
77 (defconst emacs-build-time (current-time-string) | |
78 "Time at which Emacs was dumped out.") | |
79 | |
80 (defconst emacs-build-system (system-name)) | |
81 | |
82 (defun emacs-version (&optional arg) | |
83 "Return string describing the version of Emacs that is running. | |
84 When called interactively with a prefix argument, insert string at point. | |
85 Don't use this function in programs to choose actions according | |
86 to the system configuration; look at `system-configuration' instead." | |
87 (interactive "p") | |
88 (save-match-data | |
89 (let ((version-string | |
90 (format | |
91 "XEmacs %s %s(%s%s) of %s %s on %s" | |
92 (substring emacs-version 0 (string-match " XEmacs" emacs-version)) | |
93 (if (not (featurep 'infodock)) | |
94 "[Lucid] " | |
95 "") | |
96 system-configuration | |
97 (cond ((or (and (fboundp 'featurep) | |
98 (featurep 'mule)) | |
99 (memq 'mule features)) ", Mule") | |
100 (t "")) | |
101 (substring emacs-build-time 0 | |
102 (string-match " *[0-9]*:" emacs-build-time)) | |
103 (substring emacs-build-time | |
104 (string-match "[0-9]*$" emacs-build-time)) | |
105 emacs-build-system))) | |
106 (cond | |
107 ((null arg) version-string) | |
108 ((eq arg 1) (message "%s" version-string)) | |
109 (t (insert version-string)))))) | |
110 | |
111 ;; from emacs-vers.el | |
112 (defun emacs-version>= (major &optional minor patch) | |
113 "Return true if the Emacs version is >= to the given MAJOR, MINOR, | |
114 and PATCH numbers. | |
115 The MAJOR version number argument is required, but the other arguments | |
116 argument are optional. Only the Non-nil arguments are used in the test." | |
117 (let ((emacs-patch (or emacs-patch-level emacs-beta-version -1))) | |
118 (cond ((> emacs-major-version major)) | |
119 ((< emacs-major-version major) nil) | |
120 ((null minor)) | |
121 ((> emacs-minor-version minor)) | |
122 ((< emacs-minor-version minor) nil) | |
123 ((null patch)) | |
124 ((>= emacs-patch patch))))) | |
125 | |
126 ;;; We hope that this alias is easier for people to find. | |
127 (define-function 'version 'emacs-version) | |
128 | |
129 ;; Put the emacs version number into the `pure[]' array in a form that | |
130 ;; `what(1)' can extract from the executable or a core file. We don't | |
131 ;; actually need this to be pointed to from lisp; pure objects can't | |
132 ;; be GCed. | |
444 | 133 (concat "\n@" "(#)" (emacs-version) |
134 "\n@" "(#)" "Configuration: " | |
135 system-configuration "\n") | |
428 | 136 |
137 ;;Local variables: | |
138 ;;version-control: never | |
139 ;;End: | |
140 | |
141 ;;; version.el ends here |