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 20:51:53 -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 1186966121 14816 80.91.229.12 (13 Aug 2007 00:48:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2007 00:48:41 +0000 (UTC) Cc: rgm@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 02:48:39 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 1IKO6o-0003Rm-RA for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2007 02:48:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKO6o-0004fp-1P for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 20:48:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKO6l-0004fc-5f for emacs-devel@gnu.org; Sun, 12 Aug 2007 20:48:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKO6i-0004eI-N9 for emacs-devel@gnu.org; Sun, 12 Aug 2007 20:48:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKO6i-0004dt-Fr for emacs-devel@gnu.org; Sun, 12 Aug 2007 20:48:32 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKO6i-0003lZ-5C for emacs-devel@gnu.org; Sun, 12 Aug 2007 20:48:32 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IKO9x-0000HA-DN; Sun, 12 Aug 2007 20:51:53 -0400 In-reply-to: (message from Stefan Monnier on Sun, 12 Aug 2007 00:50:27 -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:76413 Archived-At: > I think it would be better to check at the beginning of loading the file > rather than at the end. Why would that matter? So that it won't actually load the version that causes trouble. With semantic, that causes hangs, right? > That is possible by searching for "(defvar VARIABLE", > evaluating the sexp that comes next, and looking at its value. That sounds like a lot of work for very little benefit: currently files are loaded by doing an `fopen' and then reading and parsing directly from there, so it's never put into a buffer where a search could take place. It won't be a big loss to read the whole file and search it before loading it, if we only do it for a few recognized file names.