changeset 51066:0c125011ae21

(Fload): Print a message if package is obsolete.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 18 May 2003 03:30:07 +0000
parents 35933dc8e248
children a8a706365aaf
files src/lread.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Sun May 18 03:01:22 2003 +0000
+++ b/src/lread.c	Sun May 18 03:30:07 2003 +0000
@@ -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 @@
 	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 @@
 	      c = 0;
 	    else if (c == (CHAR_CTL | '?'))
 	      c = 127;
-
+	    
 	    if (c & CHAR_SHIFT)
 	      {
 		/* Shift modifier is valid only with [A-Za-z].  */