From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brent Goodrick Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.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: Sun, 25 Jan 2009 18:19:27 -0800 Message-ID: <18813.7599.138907.415045@hungover.brentg.com> Reply-To: Brent Goodrick , 2061@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232937833 15421 80.91.229.12 (26 Jan 2009 02:43:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2009 02:43:53 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 26 03:45:07 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 1LRHTC-0001dh-Nf for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jan 2009 03:45:03 +0100 Original-Received: from localhost ([127.0.0.1]:37808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRHRv-0000oW-3H for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 21:43:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRHRl-0000lU-95 for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2009 21:43:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRHRk-0000l5-8I for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2009 21:43:32 -0500 Original-Received: from [199.232.76.173] (port=46110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRHRk-0000l1-1P for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2009 21:43:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52035) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRHRj-0003hd-8e for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2009 21:43:31 -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 n0Q2hTAe006154; Sun, 25 Jan 2009 18:43:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0Q2P4oG001363; Sun, 25 Jan 2009 18:25:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Brent Goodrick Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 26 Jan 2009 02:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2061 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123293638132391 (code B ref -1); Mon, 26 Jan 2009 02:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 26 Jan 2009 02:19:41 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0Q2Jbje032372 for ; Sun, 25 Jan 2009 18:19:38 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:48961) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LRH32-0003xO-OS for emacs-pretest-bug@gnu.org; Sun, 25 Jan 2009 21:18:00 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LRH4X-0000nZ-Bj for emacs-pretest-bug@gnu.org; Sun, 25 Jan 2009 21:19:36 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.247]:28675) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRH4W-0000nK-RC for emacs-pretest-bug@gnu.org; Sun, 25 Jan 2009 21:19:33 -0500 Original-Received: by rv-out-0708.google.com with SMTP id k29so6698020rvb.6 for ; Sun, 25 Jan 2009 18:19:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:content-transfer-encoding:message-id:date:to:subject :x-mailer; bh=8ojJROLaxt+6KSq7XKZDIVh8NqsxcPtsat0N+JnfF18=; b=MhytClgczWpTKjMHgYndthdNGQTYwaZuQR8fI2tdswlKihBSVNZrqsf6WUITsnCyKQ jj1rcb8syADlkShb+ReujgVmkzyntZqgJExtYe6hHEz/sA/BkEUWNxhO7SJIVdCXZmVN 0s3YGEB3fMnh9ZSwiFPFdWHylWxofUuaTAKQw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:subject:x-mailer; b=tkxuJy1URTG0irdz+uz4bHDzEGiqouOLfBrQbUET74LHDCfecWLVIJxmFqpuuOz/HM DorOLvXkWJP/rQTZRUPnHj2+gTCM9XFupONi3AR1jOE2NVilUk/fTBsXvdZtBUjXqomM gyXv1b7N753RsN4JjTy9eB4FltQgFhO8WsW/o= Original-Received: by 10.141.101.16 with SMTP id d16mr1257498rvm.208.1232936370949; Sun, 25 Jan 2009 18:19:30 -0800 (PST) Original-Received: from hungover.brentg.com.thisisbogus.com ([76.14.208.3]) by mx.google.com with ESMTPS id b8sm29490340rvf.9.2009.01.25.18.19.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Jan 2009 18:19:30 -0800 (PST) X-Mailer: VM viewmail-609 under 23.0.60.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 25 Jan 2009 21:43:32 -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:24548 gmane.emacs.pretest.bugs:23770 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: The load function will load a .elc file even if the .el file is newer than the .elc file. There are warnings issued, but it is likely that the message is lost in the ton of messages that usually are emitted, especially during Emacs invocation. When would the user ever prefer to load the .elc file after having modified the .el file? My suggestion is to add a customizable preference variable called, say, load-prefer-newer-lisp-files (that needs a better name), that is recognized by the load function (defined in C code). When load-prefer-newer-lisp-files is non-nil, and when there is a .el and .elc file, and when the .el file is newer than the .elc file, it loads the .el file and not the .elc file (and possibly emits a warning of this action). Having it be a customizable preference variable avoids surprising other users who are used to the existing behavior. 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. Hence, why I think it is best to change the load function to allow for both approaches via a preference variable. Thanks! Brent If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/brentg/emacs_from_source/install/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.11) of 2009-01-25 on hungover Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--with-x-toolkit' '--prefix=/home/brentg/emacs_from_source/install'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-netsplit-mode: t desktop-save-mode: t iswitchb-mode: t erc-ring-mode: t erc-services-mode: t erc-networks-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t display-time-mode: t shell-dirtrack-mode: t delete-selection-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: 1 transient-mark-mode: t abbrev-mode: t Recent input: C-p C-p C-p C-p M-f M-f SPC f o r m C-e M-b M-f SPC t h e SPC . e l SPC f i l e SPC i n t o SPC a SPC . e l c SPC f i l e C-d C-a M-q C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-e C-b SPC f o r SPC d e m o n s t r a t i o n SPC p u r o p o o s e s C-a C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n M-f M-f M-f M-f M-f M-f M-f M-f M-f M-f M-f M-f M-b M-b M-b M-b f o r SPC M-f M-f M-q M-f M-f C-b , SPC w h i c h SPC i s SPC SPC a SPC l i C-SPC M-b M-b M-b w r o n g SPC b e c a u s e SPC t h e SPC . e l c SPC f i l e SPC d o e s SPC i n e d e e d SPC e x i s t M-q C-a C-n C-n C-n C-n C-n C-n M-f M-f M-f M-f M-f M-f M-f M-f M-f M-f C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-c C-c y e s M-SPC M-x r e p p o r t M-P Recent messages: /home/brentg/.authin: 100% (398/398) 334 VXNlcm5hbWU6 334 UGFzc3dvcmQ6 235 2.7.0 Accepted 250 2.1.0 OK k41sm12274699rvb.3 250 2.1.5 OK k41sm12274699rvb.3 354 Go ahead k41sm12274699rvb.3 250 2.0.0 OK 1232907223 k41sm12274699rvb.3 221 2.0.0 closing connection k41sm12274699rvb.3 Sending...done