From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#2061: 23.0.60; Add preference to force load of Elisp files when they are newer than corresponding byte-compiled file Date: Mon, 26 Jan 2009 09:45:50 +0100 Message-ID: References: <18813.7599.138907.415045@hungover.brentg.com> Reply-To: Juanma Barranquero , 2061@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233003476 18237 80.91.229.12 (26 Jan 2009 20:57:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2009 20:57:56 +0000 (UTC) Cc: 2061@emacsbugs.donarmstrong.com To: Brent Goodrick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 26 21:59:06 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 1LRYXq-0002RE-7R for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jan 2009 21:58:59 +0100 Original-Received: from localhost ([127.0.0.1]:44478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRYWY-0006iJ-8r for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jan 2009 15:57:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRWpY-0002Tv-1a for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2009 14:09:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRWpW-0002RQ-BH for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2009 14:09:07 -0500 Original-Received: from [199.232.76.173] (port=52398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRWpW-0002QL-1H for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2009 14:09:06 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:51837) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRVIx-0004FM-IQ for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2009 12:31:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRNSI-00055a-L7 for bug-gnu-emacs@gnu.org; Mon, 26 Jan 2009 04:08:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0Q93TFd004775; Mon, 26 Jan 2009 01:03:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0Q8t4x6002468; Mon, 26 Jan 2009 00:55:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juanma Barranquero Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 26 Jan 2009 08:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2061 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2061-submit@emacsbugs.donarmstrong.com id=B2061.12329595641054 (code B ref 2061); Mon, 26 Jan 2009 08:55:04 +0000 Original-Received: (at 2061) by emacsbugs.donarmstrong.com; 26 Jan 2009 08:46:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0Q8jul1001044 for <2061@emacsbugs.donarmstrong.com>; Mon, 26 Jan 2009 00:45:58 -0800 Original-Received: by ewy3 with SMTP id 3so6893308ewy.1 for <2061@emacsbugs.donarmstrong.com>; Mon, 26 Jan 2009 00:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iM4l+CelFXcLG+gaWHo/TwZZB3byok4x8zHRJHfyb6M=; b=koAsPx+rZAtyznpX2Jw/si4m8k3oA2CnMW9tzKZ8g0TOpJOL28zSpUlHaDKi9jSE2L Qpo2nawi1ZxB5RUaH1gQ98qtLPOkBQNek627nuwAVil1Hf6jNy8oJ29pW1XdwGqb9rGg BGn17YKDszzqa4Au8/T3CG//9A2yOHM2PrLUY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rhh0WRZ7jbtDYaUFnlyrJf79LBPxgnL5VRDS6tmLvk2iqKuf0vCma3WOxeq6JiuiYP wqAVUA9vBDQ/Yenb3CG6SIaYSU9P7zA3ySpVp1bIxArhFI8hH5vQ7iBbyNkkfY6QKgF6 6Helx2nYiCWD74u4k44j6AgIF8dJ/jw3pQyh4= Original-Received: by 10.210.41.14 with SMTP id o14mr854703ebo.22.1232959550444; Mon, 26 Jan 2009 00:45:50 -0800 (PST) In-Reply-To: <18813.7599.138907.415045@hungover.brentg.com> X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Mon, 26 Jan 2009 14:09:07 -0500 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:24575 Archived-At: On Mon, Jan 26, 2009 at 03:19, Brent Goodrick wrote: > When would the user ever prefer to load the .elc file after having > modified the .el file? Whenever he saves the .el file, but the modifications aren't finished (perhaps they don't even compile). In general, if Emacs loads the .el file when it is newer, you lose the ability to decide whether you want the .el or the .elc. If Emacs always loads the .elc (if present), you can decide you want the new code loaded, by compiling the .el. > I could hack around this by fset'ing `load' to be my own function that > removes the .elc file when the .el file is found to be newer, but that > is an expensive operation involving calling such functions such as > locate-file-internal to find both .el and .elc files, testing their > modification date-time stamps, etc., operations that the `load' C > function performs already. Isn't easier just to compile the .el file? If you're developing or modifying a package, and want to try it at once, create a macro to compile it as soon as you save it... Juanma