aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-04 12:04:29 +0000
committerGerd Moellmann2000-09-04 12:04:29 +0000
commitbb970e67218b241717e3539126ae8f88e950151c (patch)
tree1b04b396466551a5e507eab0fbe9233a9e7b54fc /src
parent7a3d0e0ee0e561ba9b27e46bcb8e1c6bd5230679 (diff)
downloademacs-bb970e67218b241717e3539126ae8f88e950151c.tar.gz
emacs-bb970e67218b241717e3539126ae8f88e950151c.zip
(syms_of_lread): Make Vbytecomp_version_regexp a Lisp
variable; recognize Emacs 19 elc files.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/lread.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0b6d54a8db8..6dbbad6dea9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-09-04 Gerd Moellmann <gerd@gnu.org>
2
3 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
4 variable; recognize Emacs 19 elc files.
5
12000-09-04 Miles Bader <miles@gnu.org> 62000-09-04 Miles Bader <miles@gnu.org>
2 7
3 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face 8 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
diff --git a/src/lread.c b/src/lread.c
index 2e618633ae3..cb682b2f2ae 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3543,8 +3543,14 @@ incompatible byte codes can make Emacs crash when it tries to execute\n\
3543them."); 3543them.");
3544 load_dangerous_libraries = 0; 3544 load_dangerous_libraries = 0;
3545 3545
3546 Vbytecomp_version_regexp = build_string ("^;;;.in Emacs version"); 3546 DEFVAR_LISP ("bytecomp-version-regexp", &Vbytecomp_version_regexp,
3547 staticpro (&Vbytecomp_version_regexp); 3547 "Regular expression matching safe to load compiled Lisp files.\n\
3548When Emacs loads a compiled Lisp file, it reads the first 512 bytes\n\
3549from the file, and matches them against this regular expression.\n\
3550When the regular expression matches, the file is considered to be safe\n\
3551to load. See also `load-dangerous-libraries'.");
3552 Vbytecomp_version_regexp
3553 = build_string ("^;;;.\\(in Emacs\\|emacs\\) version");
3548 3554
3549 /* Vsource_directory was initialized in init_lread. */ 3555 /* Vsource_directory was initialized in init_lread. */
3550 3556