From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#3892: corrupting load-in-progress value with "let" Date: Thu, 23 Jul 2009 20:08:39 -0400 Message-ID: <42A7787D-BA88-4613-BE99-F02C44904A1C@raeburn.org> References: <47712C91-B427-4C1C-8731-F8BE9463A4A3@raeburn.org> Reply-To: Ken Raeburn , 3892@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248394673 31749 80.91.229.12 (24 Jul 2009 00:17:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2009 00:17:53 +0000 (UTC) Cc: 3892@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 02:17:45 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MU8To-0005FR-9E for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 02:17:44 +0200 Original-Received: from localhost ([127.0.0.1]:53242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU8Tn-0006BX-LY for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 20:17:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU8Ti-0006BI-EL for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 20:17:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU8Td-0006B6-10 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 20:17:37 -0400 Original-Received: from [199.232.76.173] (port=52591 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU8Tc-0006B3-Qy for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 20:17:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37258) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MU8Tc-0006r9-8F for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 20:17:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6O0HUuv027736; Thu, 23 Jul 2009 17:17:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6O0F4xS027085; Thu, 23 Jul 2009 17:15:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ken Raeburn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 24 Jul 2009 00:15:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3892 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3892-submit@emacsbugs.donarmstrong.com id=B3892.124839413726191 (code B ref 3892); Fri, 24 Jul 2009 00:15:04 +0000 Original-Received: (at 3892) by emacsbugs.donarmstrong.com; 24 Jul 2009 00:08:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from raeburn.org (splat.raeburn.org [69.25.196.39]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6O08j5l026182 for <3892@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 17:08:46 -0700 Original-Received: from [10.0.0.172] (squish.raeburn.org [10.0.0.172]) by raeburn.org (8.14.3/8.14.1) with ESMTP id n6O08dcM006583; Thu, 23 Jul 2009 20:08:39 -0400 (EDT) In-Reply-To: X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 23 Jul 2009 20:17:37 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29597 Archived-At: On Jul 21, 2009, at 14:44, Ken Raeburn wrote: > On Jul 21, 2009, at 12:27, Stefan Monnier wrote: >> I think we should drop the counter altogether, and use specbind >> instead. > > Much simpler, yes, and it looks like nothing in the C code cares > about the numeric value either. > Thanks for the suggestion; I'll revise my patch. I'm working on the revised patch, but it occurs to me that this way, some broken bit of code could set load-in-progress to t at some point when nothing is being loaded, and it will never become nil again unless explicitly reset. I'm not sure that's right either. I think I kind of like the behavior that while code can temporarily override it, the correct state will be restored from the C code any time it changes (file loading starts or completes). A related issue: If we're changing the way it's set, should we retain the constraint that load-in-progress can only (appear to) hold boolean values, or let it hold any Lisp value instead? Ken