aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-06-15 21:03:37 +0000
committerdos-reis <gdr@axiomatics.org>2013-06-15 21:03:37 +0000
commit078a728917e03bd210824de99ee2bdec6c520aa5 (patch)
tree3ec662e919fa166ab6f36fef9cbad6a3378d02e8
parent7303361dd90960937f442ae36818ef3ab933ff31 (diff)
downloadopen-axiom-078a728917e03bd210824de99ee2bdec6c520aa5.tar.gz
Intern temporary names for HT pages.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/boot/tokens.boot1
-rw-r--r--src/interp/br-saturn.boot16
3 files changed, 14 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 626f47f9..744e0454 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
2013-06-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
+ * boot/tokens.boot (importSymbol): New builtin.
+ * interp/br-saturn.boot (htpMakeEmptyPage): Use it.
+
+2013-06-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
* interp/database.boot (dbConstructorDefault): New accessor.
(getCategoryConstructorDefault): New.
* interp/define.boot (makeCategoryAlist): Use it.
diff --git a/src/boot/tokens.boot b/src/boot/tokens.boot
index fa340275..f8f7bc9e 100644
--- a/src/boot/tokens.boot
+++ b/src/boot/tokens.boot
@@ -298,6 +298,7 @@ for i in [ _
["functionSymbol?", "FBOUNDP"] , _
["gensym", "GENSYM"] , _
["genvar", "GENVAR"] , _
+ ["importSymbol", "IMPORT"] , _
["inert?", "KEYWORDP"] , _
["integer?","INTEGERP"] , _
["LAST", "last"] , _
diff --git a/src/interp/br-saturn.boot b/src/interp/br-saturn.boot
index 34764f70..6f55c992 100644
--- a/src/interp/br-saturn.boot
+++ b/src/interp/br-saturn.boot
@@ -580,9 +580,9 @@ htInitPageNoScroll(propList, :options) ==
$saturnContextMenuLines := nil
title := IFCAR options
$curPage :=
- $standard => htpMakeEmptyPage(propList)
+ $standard => htpMakeEmptyPage propList
nil
- if $saturn then $saturnPage := htpMakeEmptyPage(propList)
+ if $saturn then $saturnPage := htpMakeEmptyPage propList
$newPage := true
$htLineList := nil
if title then
@@ -596,19 +596,19 @@ htInitPageNoScroll(propList, :options) ==
htInitPageNoHeading(propList) ==
--start defining a hyperTeX page
$curPage :=
- $standard => htpMakeEmptyPage(propList)
- if $saturn then $saturnPage := htpMakeEmptyPage(propList)
+ $standard => htpMakeEmptyPage propList
+ if $saturn then $saturnPage := htpMakeEmptyPage propList
$newPage := true
$htLineList := nil
page()
--------------------> NEW DEFINITION <--------------------------
-htpMakeEmptyPage(propList,:options) ==
- name := IFCAR options or gensym()
+htpMakeEmptyPage propList ==
+ name := gensym()
+ importSymbol name
if not $saturn then
$activePageList := [name, :$activePageList]
- val := vector [name, nil, nil, nil, nil, nil, propList, nil]
- symbolValue(name) := val
+ symbolValue(name) := vector [name, nil, nil, nil, nil, nil, propList, nil]
--=======================================================================
-- Redefinitions from br-con.boot