From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: fns-*.el and load-history Date: Mon, 01 Apr 2002 19:36:52 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200204020036.g320art30447@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017711394 14607 127.0.0.1 (2 Apr 2002 01:36:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2002 01:36:34 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16sDDu-0003nU-00 for ; Tue, 02 Apr 2002 03:36:34 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16sDPL-0003hE-00 for ; Tue, 02 Apr 2002 03:48:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sCbg-0000jU-00; Mon, 01 Apr 2002 19:57:04 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16sCIB-0006rP-00 for ; Mon, 01 Apr 2002 19:36:55 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g320art30447; Mon, 1 Apr 2002 19:36:53 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2312 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2312 Is there any reason why we have this funny lib-src/fns-.el plus symbol-file-load-history-loaded plus some code to write/read the load-history to/from that file ? Why not do (setq load-history (copy-sequence (purecopy load-history))) at the end of loadup.el so that the history is (mostly) in purespace. That seems both simpler and more efficient (in my case at least fns-*.el is pretty much always loaded anyway, but with the current scheme it's not in pure space). Stefan PS: the `copy-sequence' is because the spine of load-history is destructively modified with setcar/setcdr when re-loading a file.