diff options
| author | Stefan Monnier | 2003-05-18 03:30:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-18 03:30:07 +0000 |
| commit | 11810d78df92fdb95e0e802c339bf08899f419e4 (patch) | |
| tree | 8998669f37ddc9afa1b0b919c016128fcde6f626 /src | |
| parent | 0916e95698dba93dbb7e0578f0184873c20fcc3c (diff) | |
| download | emacs-11810d78df92fdb95e0e802c339bf08899f419e4.tar.gz emacs-11810d78df92fdb95e0e802c339bf08899f419e4.zip | |
(Fload): Print a message if package is obsolete.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c index 73345d30001..525e045b029 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Lisp parsing and input streams. | 1 | /* Lisp parsing and input streams. |
| 2 | Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 97, 98, 99, 2000, 2001 | 2 | Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 97, 98, 99, 2000, 01, 2003 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -941,6 +941,11 @@ Return t if file exists. */) | |||
| 941 | message_with_string ("Loading %s...done", file, 1); | 941 | message_with_string ("Loading %s...done", file, 1); |
| 942 | } | 942 | } |
| 943 | 943 | ||
| 944 | if (!NILP (Fequal (build_string ("obsolete"), | ||
| 945 | Ffile_name_nondirectory | ||
| 946 | (Fdirectory_file_name (Ffile_name_directory (found)))))) | ||
| 947 | message_with_string ("Package %s is obsolete", file, 1); | ||
| 948 | |||
| 944 | return Qt; | 949 | return Qt; |
| 945 | } | 950 | } |
| 946 | 951 | ||
| @@ -2363,7 +2368,7 @@ read1 (readcharfun, pch, first_in_list) | |||
| 2363 | c = 0; | 2368 | c = 0; |
| 2364 | else if (c == (CHAR_CTL | '?')) | 2369 | else if (c == (CHAR_CTL | '?')) |
| 2365 | c = 127; | 2370 | c = 127; |
| 2366 | 2371 | ||
| 2367 | if (c & CHAR_SHIFT) | 2372 | if (c & CHAR_SHIFT) |
| 2368 | { | 2373 | { |
| 2369 | /* Shift modifier is valid only with [A-Za-z]. */ | 2374 | /* Shift modifier is valid only with [A-Za-z]. */ |