Skip to content

Commit 1e70a32

Browse files
Merge pull request #54 from mohamed-barakat/devel
use Max' code suggestion for overwriting GAP's standard Display method
2 parents 6fac13d + 3c3ee4b commit 1e70a32

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CapAndHomalg"
22
uuid = "c4774649-1891-41ea-a883-87141804c57c"
33
authors = ["Mohamed Barakat <[email protected]>"]
4-
version = "1.4.4"
4+
version = "1.4.5"
55

66
[deps]
77
GAP = "c863536a-3901-11e9-33e7-d5cd0df7b904"

deps/homalg-project.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ global PACKAGES_BASED_ON_CAP = [
147147
"QPA2",
148148
"SubcategoriesForCAP",
149149
"Toposes",
150-
"WrapperCategories",
151150
"ZariskiFrames",
152151
]
153152

@@ -189,6 +188,7 @@ global PACKAGES_DEPRECATED = [
189188
"QuotientCategories",
190189
"StableCategories",
191190
"TriangulatedCategories",
191+
"WrapperCategories",
192192
]
193193

194194
"""

src/CapAndHomalg.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ function __init__()
192192
## needed by the variable HOMALG_IO_Singular below
193193
LoadPackage("RingsForHomalg")
194194

195-
SizeScreen( [ 2^12 ] )
196-
197195
## loading IO_ForHomalg now suppresses its banner later
198196
LoadPackage("IO_ForHomalg")
199197

src/conversions.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,16 @@ export SizeScreen
8686
global SIZE_SCREEN_ORIGINAL = SizeScreen()
8787

8888
export SIZE_SCREEN_ORIGINAL
89+
90+
## Max' code suggestion for overwriting GAP's standard Display method
91+
function Display(obj::GapObj)
92+
return print(String(GAP.Globals.StringDisplayObj(obj)))
93+
end
94+
95+
export Display
96+
97+
function InfoOfInstalledOperationsOfCategory(obj::GapObj)
98+
Display(InfoStringOfInstalledOperationsOfCategory(obj))
99+
end
100+
101+
export InfoOfInstalledOperationsOfCategory

0 commit comments

Comments
 (0)