From 11810d78df92fdb95e0e802c339bf08899f419e4 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 18 May 2003 03:30:07 +0000 Subject: [PATCH] (Fload): Print a message if package is obsolete. --- src/lread.c | 9 +++++++-- 1 file 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 @@ /* Lisp parsing and input streams. - Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 97, 98, 99, 2000, 2001 + Copyright (C) 1985, 86, 87, 88, 89, 93, 94, 95, 97, 98, 99, 2000, 01, 2003 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -941,6 +941,11 @@ Return t if file exists. */) message_with_string ("Loading %s...done", file, 1); } + if (!NILP (Fequal (build_string ("obsolete"), + Ffile_name_nondirectory + (Fdirectory_file_name (Ffile_name_directory (found)))))) + message_with_string ("Package %s is obsolete", file, 1); + return Qt; } @@ -2363,7 +2368,7 @@ read1 (readcharfun, pch, first_in_list) c = 0; else if (c == (CHAR_CTL | '?')) c = 127; - + if (c & CHAR_SHIFT) { /* Shift modifier is valid only with [A-Za-z]. */ -- 2.39.2