A new version of ToolBuilder-Morphic was added to project The Inbox:
http://source.squeak.org/inbox/ToolBuilder-Morphic-kfr.155.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-kfr.155
Author: kfr
Time: 6 January 2016, 11:38:05.814914 pm
UUID: 43f3809b-ca19-4e70-a321-702dc2e0762a
Ancestors: ToolBuilder-Morphic-cmm.154
Restore use of preference syntaxHighlightingAsYouType
=============== Diff against ToolBuilder-Morphic-cmm.154 ===============
Item was changed:
----- Method: PluggableTextMorphPlus>>okToStyle (in category 'testing') -----
okToStyle
+ ^ styler
- ^ styler
ifNil:[false]
+ ifNotNil: [:s | s class syntaxHighlightingAsYouType
+ ifTrue:[model aboutToStyle: s]
+ ifFalse:[false]]!
- ifNotNil: [:s | model aboutToStyle: s]!
There's already such preference, which does exactly the same thing. It's
called #syntaxHighlightingAsYouType.
It looks like its senders have been removed from the image for some
reason.
Levente
On Sat, 9 Jan 2016, commits(a)source.squeak.org wrote:
> A new version of ShoutCore was added to project The Inbox:
> http://source.squeak.org/inbox/ShoutCore-kfr.55.mcz
>
> ==================== Summary ====================
>
> Name: ShoutCore-kfr.55
> Author: kfr
> Time: 6 January 2016, 8:49:46.186914 pm
> UUID: bd33aa70-60b2-48ee-adee-31db9e5d3ab7
> Ancestors: ShoutCore-ul.54
>
> Add preference to turn syntax highlighting on or off
>
> =============== Diff against ShoutCore-ul.54 ===============
>
> Item was changed:
> SHTextStyler subclass: #SHTextStylerST80
> instanceVariableNames: 'classOrMetaClass workspace font parser formatAssignments environment sourceMap processedSourceMap pixelHeight attributesByPixelHeight parseAMethod'
> + classVariableNames: 'SubduedSyntaxHighlights SyntaxHighlighting SyntaxHighlightingAsYouType SyntaxHighlightingAsYouTypeAnsiAssignment SyntaxHighlightingAsYouTypeLeftArrowAssignment'
> - classVariableNames: 'SubduedSyntaxHighlights SyntaxHighlightingAsYouType SyntaxHighlightingAsYouTypeAnsiAssignment SyntaxHighlightingAsYouTypeLeftArrowAssignment'
> poolDictionaries: ''
> category: 'ShoutCore-Styling'!
> SHTextStylerST80 class
> instanceVariableNames: 'styleTable textAttributesByPixelHeight'!
>
> !SHTextStylerST80 commentStamp: 'tween 8/27/2004 10:55' prior: 0!
> I style Smalltalk methods and expressions.
>
> My 'styleTable' class instance var holds an array ofArrays which control how each token is styled/coloured. See my defaultStyleTable class method for its structure.
> My styleTable can be changed by either modifying the defaultStyleTable class method and then executing SHTextStylerST80 initialize ; or by giving me a new styleTable through my #styleTable: class method.
>
> My 'textAttributesByPixelSize' class instance var contains a dictionary of dictionaries.
> The key is a pixelSize and the value a Dictionary from token type Symbol to TextAttribute array.
> It is created/maintained automatically.
>
> I also install these 3 preferences when my class initialize method is executed....
> #syntaxHighlightingAsYouType - controls whether methods are styled in browsers
> #syntaxHighlightingAsYouTypeAnsiAssignment - controls whether assignments are formatted to be :=
> #syntaxHighlightingAsYouTypeLeftArrowAssignment - controls whether assignments are formatted to be _
>
> I reimplement #unstyledTextFrom: so that TextActions are preserved in the unstyled text
>
>
>
>
>
>
> !
> SHTextStylerST80 class
> instanceVariableNames: 'styleTable textAttributesByPixelHeight'!
>
> Item was added:
> + ----- Method: SHTextStylerST80 class>>syntaxHighlighting (in category 'preferences') -----
> + syntaxHighlighting
> + <preference: 'syntaxHighlighting'
> + category: 'browsing'
> + description: 'Enable, or disable, Shout - Syntax Highlighting. When enabled, code in Browsers and Workspaces is styled to reveal its syntactic structure.'
> + type: #Boolean>
> + ^SyntaxHighlighting ifNil: [true]!
>
> Item was added:
> + ----- Method: SHTextStylerST80 class>>syntaxHighlighting: (in category 'preferences') -----
> + syntaxHighlighting: aBoolean
> + SyntaxHighlighting := aBoolean.!
>
>
>
A new version of ToolBuilder-Morphic was added to project The Inbox:
http://source.squeak.org/inbox/ToolBuilder-Morphic-kfr.155.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-kfr.155
Author: kfr
Time: 6 January 2016, 8:56:21.394914 pm
UUID: ee2e96ee-e6c0-4b84-b608-a206f08f50f3
Ancestors: ToolBuilder-Morphic-cmm.154
Turn syntax highlighting on or off according to preference
=============== Diff against ToolBuilder-Morphic-cmm.154 ===============
Item was changed:
----- Method: PluggableTextMorphPlus>>okToStyle (in category 'testing') -----
okToStyle
+ ^ styler
- ^ styler
ifNil:[false]
+ ifNotNil: [:s | s class syntaxHighlighting
+ ifTrue:[model aboutToStyle: s]
+ ifFalse:[false]]!
- ifNotNil: [:s | model aboutToStyle: s]!
A new version of ShoutCore was added to project The Inbox:
http://source.squeak.org/inbox/ShoutCore-kfr.55.mcz
==================== Summary ====================
Name: ShoutCore-kfr.55
Author: kfr
Time: 6 January 2016, 8:49:46.186914 pm
UUID: bd33aa70-60b2-48ee-adee-31db9e5d3ab7
Ancestors: ShoutCore-ul.54
Add preference to turn syntax highlighting on or off
=============== Diff against ShoutCore-ul.54 ===============
Item was changed:
SHTextStyler subclass: #SHTextStylerST80
instanceVariableNames: 'classOrMetaClass workspace font parser formatAssignments environment sourceMap processedSourceMap pixelHeight attributesByPixelHeight parseAMethod'
+ classVariableNames: 'SubduedSyntaxHighlights SyntaxHighlighting SyntaxHighlightingAsYouType SyntaxHighlightingAsYouTypeAnsiAssignment SyntaxHighlightingAsYouTypeLeftArrowAssignment'
- classVariableNames: 'SubduedSyntaxHighlights SyntaxHighlightingAsYouType SyntaxHighlightingAsYouTypeAnsiAssignment SyntaxHighlightingAsYouTypeLeftArrowAssignment'
poolDictionaries: ''
category: 'ShoutCore-Styling'!
SHTextStylerST80 class
instanceVariableNames: 'styleTable textAttributesByPixelHeight'!
!SHTextStylerST80 commentStamp: 'tween 8/27/2004 10:55' prior: 0!
I style Smalltalk methods and expressions.
My 'styleTable' class instance var holds an array ofArrays which control how each token is styled/coloured. See my defaultStyleTable class method for its structure.
My styleTable can be changed by either modifying the defaultStyleTable class method and then executing SHTextStylerST80 initialize ; or by giving me a new styleTable through my #styleTable: class method.
My 'textAttributesByPixelSize' class instance var contains a dictionary of dictionaries.
The key is a pixelSize and the value a Dictionary from token type Symbol to TextAttribute array.
It is created/maintained automatically.
I also install these 3 preferences when my class initialize method is executed....
#syntaxHighlightingAsYouType - controls whether methods are styled in browsers
#syntaxHighlightingAsYouTypeAnsiAssignment - controls whether assignments are formatted to be :=
#syntaxHighlightingAsYouTypeLeftArrowAssignment - controls whether assignments are formatted to be _
I reimplement #unstyledTextFrom: so that TextActions are preserved in the unstyled text
!
SHTextStylerST80 class
instanceVariableNames: 'styleTable textAttributesByPixelHeight'!
Item was added:
+ ----- Method: SHTextStylerST80 class>>syntaxHighlighting (in category 'preferences') -----
+ syntaxHighlighting
+ <preference: 'syntaxHighlighting'
+ category: 'browsing'
+ description: 'Enable, or disable, Shout - Syntax Highlighting. When enabled, code in Browsers and Workspaces is styled to reveal its syntactic structure.'
+ type: #Boolean>
+ ^SyntaxHighlighting ifNil: [true]!
Item was added:
+ ----- Method: SHTextStylerST80 class>>syntaxHighlighting: (in category 'preferences') -----
+ syntaxHighlighting: aBoolean
+ SyntaxHighlighting := aBoolean.!
Eliot Miranda uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-eem.320.mcz
==================== Summary ====================
Name: Graphics-eem.320
Author: eem
Time: 9 January 2016, 8:58:44.935792 am
UUID: 805d5995-61ee-409d-9c05-b7f7de330942
Ancestors: Graphics-tpr.319
categorize two uncategorized methods
=============== Diff against Graphics-tpr.319 ===============
Item was changed:
+ ----- Method: Bitmap>>asByteArray (in category 'converting') -----
- ----- Method: Bitmap>>asByteArray (in category 'as yet unclassified') -----
asByteArray
"Faster way to make a byte array from me.
copyFromByteArray: makes equal Bitmap."
| f bytes hack |
f := Form extent: 4@self size depth: 8 bits: self.
bytes := ByteArray new: self size * 4.
hack := Form new hackBits: bytes.
Smalltalk isLittleEndian ifTrue:[hack swapEndianness].
hack copyBits: f boundingBox
from: f
at: (0@0)
clippingBox: hack boundingBox
rule: Form over
fillColor: nil
map: nil.
"f displayOn: hack."
^ bytes.
!
Item was changed:
+ ----- Method: Bitmap>>copy (in category 'copying') -----
- ----- Method: Bitmap>>copy (in category 'as yet unclassified') -----
copy
^self clone!
Eliot Miranda uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-eem.625.mcz
==================== Summary ====================
Name: Monticello-eem.625
Author: eem
Time: 9 January 2016, 9:00:45.546083 am
UUID: 6a0eca24-2c18-4b96-a55e-28ebccba212b
Ancestors: Monticello-mt.624
Make browse versions go through ToolSet hence, avoiding having to hunt throguh the current change set when finding versions of deleted methods.
=============== Diff against Monticello-mt.624 ===============
Item was changed:
----- Method: MCCodeTool>>browseVersions (in category 'menus') -----
browseVersions
+ "Create and schedule a message set browser on all versions of the currently selected message selector."
+ (ToolSet
+ browseVersionsOf: self selectedClassOrMetaClass
+ selector: self selectedMessageName) ifNil: [self changed: #flash]!
- "Create and schedule a message set browser on all versions of the
- currently selected message selector."
-
- | class selector compiledMethod |
- class := self selectedClassOrMetaClass.
- selector := self selectedMessageName.
- compiledMethod := class compiledMethodAt: selector ifAbsent: [ ^self ].
- VersionsBrowser
- browseVersionsOf: compiledMethod
- class: class theNonMetaClass
- meta: class isMeta
- category: self selectedMessageCategoryName
- selector: selector!
Hi Doru,
On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
> Hi,
>
> If I execute the following code in the latest Pharo image:
>
> Object subclass: #A
> instanceVariableNames: ''
> classVariableNames: ''
> package: 'AA'.
> Object subclass: #B
> instanceVariableNames: ''
> classVariableNames: ''
> package: 'AA'.
> a := A new.
> b := B new.
> a become: b.
> a class
>
> ==> “A".
>
> In a pre-Spur image, I used to get “B”. Is this a bug, or is there a
> change I am not aware of?
>
> Cheers,
> Doru
>
Looks like a bug to me. I'll fix it asap.
>
>
> --
> www.tudorgirba.com
> www.feenk.com
>
> "Things happen when they happen,
> not when you talk about them happening."
>
>
>
--
_,,,^..^,,,_
best, Eliot
Whilst attempting to update my (spur) image in order to be able to save the HandMorph>dragging related change I mentioned recently I discovered that we’ve broken something in the update stream again.
As it gets to Kernel.spur-dtl.850 things start to complain; an MC merge window appears but I cannot use the ‘all newer’ etc options. Selecting the first clash and hitting ‘Reject’ works enough to let me reject all the changes - which looks sensible since they seem to be older than the in-image versions - and then continue the merge. This repeats many times.
Any attempt to use ‘All Newer’ et al. opens a dNU in MCConflict>isRemoteNewer because ‘self localDefinition’ is nil and of course does not understand #fullTimeStamp.
Sigh.
tim
--
tim Rowledge; tim(a)rowledge.org; http://www.rowledge.org/tim
Fractured Idiom:- VENI, VIDI, VICE - I came, I saw, I partied.
Changes to Trunk (http://source.squeak.org/trunk.html) in the last 24 hours:
http://lists.squeakfoundation.org/pipermail/packages/2016-January/009241.ht…
Name: Kernel-eem.976
Ancestors: Kernel-eem.975
Fix regression due to accidental reversion <blush>.
=============================================
http://lists.squeakfoundation.org/pipermail/packages/2016-January/009242.ht…
Name: Tools-eem.660
Ancestors: Tools-pre.659
Make most uses of VersionBrowser>>browseVersionsOf:... go throguh ToolSet and make StandardToolSet search for missing methods in the current change set, avoiding having to hunt throguh the current change set when finding versions of deleted methods in mehtod lists such as Recent Submissions.
=============================================