From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Recognizing obsolete external package versions Date: Sun, 12 Aug 2007 00:15:23 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1186892006 17613 80.91.229.12 (12 Aug 2007 04:13:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 04:13:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 06:13:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IK4pQ-0008JZ-2k for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 06:13:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IK4pP-0000bl-Cm for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 00:13:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IK4oE-0007WB-D2 for emacs-devel@gnu.org; Sun, 12 Aug 2007 00:12:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IK4oC-0007Ut-V9 for emacs-devel@gnu.org; Sun, 12 Aug 2007 00:12:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IK4oC-0007Uh-EE for emacs-devel@gnu.org; Sun, 12 Aug 2007 00:12:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IK4oB-0003KP-Ka for emacs-devel@gnu.org; Sun, 12 Aug 2007 00:12:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IK4rL-0006Xp-2l; Sun, 12 Aug 2007 00:15:23 -0400 In-reply-to: (message from Glenn Morris on Fri, 10 Aug 2007 17:15:11 -0400) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76371 Archived-At: That code seems basically right except that I would rather it avoid calling eval. It should give the name of a variable, and the values that are bad. I think it would be better to check at the beginning of loading the file rather than at the end. That is possible by searching for "(defvar VARIABLE", evaluating the sexp that comes next, and looking at its value. That would require detecting the file by its name rather than by a feature it provides.