diff options
| author | Gerd Moellmann | 2000-09-04 12:04:29 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-04 12:04:29 +0000 |
| commit | bb970e67218b241717e3539126ae8f88e950151c (patch) | |
| tree | 1b04b396466551a5e507eab0fbe9233a9e7b54fc /src | |
| parent | 7a3d0e0ee0e561ba9b27e46bcb8e1c6bd5230679 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | src/lread.c | 10 |
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 @@ | |||
| 1 | 2000-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 | |||
| 1 | 2000-09-04 Miles Bader <miles@gnu.org> | 6 | 2000-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\ | |||
| 3543 | them."); | 3543 | them."); |
| 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\ |
| 3548 | When Emacs loads a compiled Lisp file, it reads the first 512 bytes\n\ | ||
| 3549 | from the file, and matches them against this regular expression.\n\ | ||
| 3550 | When the regular expression matches, the file is considered to be safe\n\ | ||
| 3551 | to 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 | ||