Use explicit mechanism to link variables into the Edwin package, so
authorChris Hanson <org/chris-hanson/cph>
Mon, 22 May 2000 13:25:38 +0000 (13:25 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 22 May 2000 13:25:38 +0000 (13:25 +0000)
that IMAIL can be reloaded.

v7/src/imail/imail.pkg
v7/src/imail/load.scm

index f9daa87d0a0fba14aceba495a6b793975fe09995..93c000f37cadf952b27cf6de06e02a90aea1efd7 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail.pkg,v 1.38 2000/05/21 00:03:03 cph Exp $
+;;; $Id: imail.pkg,v 1.39 2000/05/22 13:25:33 cph Exp $
 ;;;
 ;;; Copyright (c) 2000 Massachusetts Institute of Technology
 ;;;
         "imail-top"
         "imail-summary")
   (parent (edwin))
+  #|
   (export (edwin)
          edwin-command$imail
          edwin-command$imail-add-flag
          edwin-variable$imail-summary-mode-hook
          edwin-variable$imail-summary-pop-up-message
          edwin-variable$imail-summary-show-date
-         edwin-variable$imail-summary-subject-width))
\ No newline at end of file
+         edwin-variable$imail-summary-subject-width)
+  |#
+  )
\ No newline at end of file
index 12a697023694b7e2271fc13f381594c8e9825cda..38f2f8fbc713c8d0450ee169c9e4a68f691a6a10 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: load.scm,v 1.5 2000/01/18 20:58:11 cph Exp $
+;;; $Id: load.scm,v 1.6 2000/05/22 13:25:38 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
 (with-working-directory-pathname (directory-pathname (current-load-pathname))
   (lambda ()
     (fluid-let ((*allow-package-redefinition?* #t))
-      (package/system-loader "imail" '() 'QUERY))))
\ No newline at end of file
+      (package/system-loader "imail" '() 'QUERY))))
+
+;; Kludge necessary to allow reloading of this package.
+(for-each (let ((from (->environment '(EDWIN IMAIL)))
+               (to (->environment '(EDWIN))))
+           (lambda (name)
+             (if (lexical-unreferenceable? to name)
+                 (environment-link-name to from name)
+                 (lexical-assignment to name (lexical-reference from name)))))
+         '(edwin-command$imail
+           edwin-command$imail-add-flag
+           edwin-command$imail-continue
+           edwin-command$imail-create-folder
+           edwin-command$imail-delete-backward
+           edwin-command$imail-delete-folder
+           edwin-command$imail-delete-forward
+           edwin-command$imail-delete-message
+           edwin-command$imail-expunge
+           edwin-command$imail-first-message
+           edwin-command$imail-forward
+           edwin-command$imail-get-new-mail
+           edwin-command$imail-input
+           edwin-command$imail-kill-flag
+           edwin-command$imail-last-message
+           edwin-command$imail-mail
+           edwin-command$imail-next-flagged-message
+           edwin-command$imail-next-message
+           edwin-command$imail-next-undeleted-message
+           edwin-command$imail-output
+           edwin-command$imail-previous-flagged-message
+           edwin-command$imail-previous-message
+           edwin-command$imail-previous-undeleted-message
+           edwin-command$imail-quit
+           edwin-command$imail-reply
+           edwin-command$imail-resend
+           edwin-command$imail-save-folder
+           edwin-command$imail-search
+           edwin-command$imail-select-message
+           edwin-command$imail-summary
+           edwin-command$imail-summary-by-flags
+           edwin-command$imail-summary-by-recipients
+           edwin-command$imail-summary-quit
+           edwin-command$imail-summary-select-message
+           edwin-command$imail-toggle-header
+           edwin-command$imail-undelete-backward
+           edwin-command$imail-undelete-forward
+           edwin-command$imail-undelete-previous-message
+           edwin-mode$imail
+           edwin-mode$imail-summary
+           edwin-variable$imail-default-dont-reply-to-names
+           edwin-variable$imail-default-imap-mailbox
+           edwin-variable$imail-default-imap-server
+           edwin-variable$imail-default-user-id
+           edwin-variable$imail-delete-after-output
+           edwin-variable$imail-dont-reply-to-names
+           edwin-variable$imail-ignored-headers
+           edwin-variable$imail-kept-headers
+           edwin-variable$imail-message-filter
+           edwin-variable$imail-mode-hook
+           edwin-variable$imail-primary-folder
+           edwin-variable$imail-reply-with-re
+           edwin-variable$imail-summary-highlight-message
+           edwin-variable$imail-summary-mode-hook
+           edwin-variable$imail-summary-pop-up-message
+           edwin-variable$imail-summary-show-date
+           edwin-variable$imail-summary-subject-width))
\ No newline at end of file