[Cuis-dev] Missing method SHTextStylerST80>>convertedAndStyledText

Bernhard Pieber bernhard at pieber.com
Thu Sep 24 02:24:31 PDT 2026


Hi Juan,

Yes, the method is still used in StyledTextEditor (in StyledTextModel>>#convertAndStyleIfNeededWith:)

To reproduce:
Feature require: 'StyledTextInstaller'

This opens the window Styled Text Editor Documentation. At the bottom it says:

History

You can find out a little bit about the history of the Styled Text Editor by looking at the feature documents. There is one for done features. You can open them be doing the following in a workspace:

StyledTextInstaller new openStyledTextEditorFeatures

This results in a MessageNotUnderstood: SHTextStylerST80>>convertedAndStyledText.

Reintroducing it does fix the MNU. However, the paragraph style Smalltalk code does not work as intended anyway, as it does no syntax colouring. I will try to find out which change broke it.

Cheers,
Bernhard

> Am 23.09.2026 um 22:52 schrieb Juan Vuletich via Cuis-dev <cuis-dev at lists.cuis.st>:
>
> Hi Bernhard,
>
> I checked the update #7721. At that point, in the base image, the object stored in the 'formattedText' instance variable didn't change during formatting (it is still that way). So there was no need to ask for it again. The other two methods changed in #7721 were modified not to call #convertedAndStyledText.
>
> Do you think it is still needed for StyledTextEditor? Reintroducing it will make styling in STE work ok?
>
> Thanks,
>
> On 2026-09-22 6:07 PM, Bernhard Pieber via Cuis-dev wrote:
>
>> Hi,
>>
>> StyledTextEditor calls the method convertedAndStyledText on SHTextStylerST80 which does not exist in the latest image anymore.
>>
>> It was easy to find out it was removed in [7721-Cleanup-JuanVuletich-2025Nov28-07h39m-jmv.001.cs.st](http://7721-cleanup-juanvuletich-2025nov28-07h39m-jmv.001.cs.st/):
>> grep convertedAndStyledText CoreUpdates/*
>>
>> However, neither the changes nor the sources file contain the original method:
>> Cuis-Smalltalk-Dev % grep convertedAndStyledText CuisImage/Cuis7.9-8206.changes
>> Cuis-Smalltalk-Dev % grep convertedAndStyledText CuisImage/Cuis7.8.sources
>> Cuis-Smalltalk-Dev %
>>
>> With the following git command I was able to find the source code of the original method:
>> git log -G"convertedAndStyledText" -p -- CuisImage/Cuis*.sources | grep -B 1 -A 15 "^\+\s*convertedAndStyledText"
>>
>> !SHTextStyler methodsFor: 'accessing' stamp: 'jmv 4/3/2023 15:43:28'!
>> convertedAndStyledText
>> ^ formattedText! !
>>
>> It just returns the instance variable formattedText.
>>
>> Should we reintroduce the method convertedAndStyledText or add the accessor formattedText and change the call in StyledTextEditor to use the latter instead of convertedAndStyledText?
>>
>> If the former should we use the original stamp 'jmv 4/3/2023 15:43:28' or a new one?
>>
>> Opinions?
>>
>> Cheers,
>> Bernhard
>
> --
> Juan Vuletich
> [www.cuis.st](http://www.cuis.st/)
> github.com/jvuletich
> researchgate.net/profile/Juan-Vuletich
> independent.academia.edu/JuanVuletich
> patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260924/77b33dc4/attachment.htm>


More information about the Cuis-dev mailing list