<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>> <span style="font-size:12pt">I'm rather for enclosing the result in quotes so as to make them a comment.</span></p>
<div><br>
</div>
<div>But this would break all reevaluability features. You could not any longer print-it 6*7 and then inspect-it the result.</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
<p></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Tobias Pape <Das.Linux@gmx.de><br>
<b>Gesendet:</b> Freitag, 10. Januar 2020 15:03:18<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] inserting the results of doit in code highlighted contexts</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi<br>
> On 10.01.2020, at 13:20, Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de> wrote:<br>
> <br>
> Hi Eliot! :-)<br>
> <br>
> Do I understand your desire correctly?<br>
> <br>
> Given the input<br>
> 6 * 7<br>
> after pressing <cmd>p, you would like the editor to contain<br>
> 6 * 7. 42<br>
> (instead of the current result,<br>
> 6 * 7 42<br>
> )?<br>
<br>
I'm rather for enclosing the result in quotes so as to make them a comment.<br>
<br>
Best regards<br>
        -Tobias<br>
<br>
<br>
> <br>
> This could indeed improve the styling in certain scenarios:<br>
> Compare<br>
> <br>
> against<br>
> <br>
> . However, this would only improve the current situation in a very limited number of scenarios, that is, iff #printIt returns an evaluable string (see also this thread). In other scenarios, no improvement would be achieved again:<br>
> <br>
> <br>
> does not look better than<br>
> <br>
> . So provided that I understand you correctly, I personally would rather dislike your proposal. Also, it might be confusing if printIt "changes your code". :)<br>
> <br>
> Rather, I would like to resume the discussion from Morphic-ct.1586. I think it addresses the same issue, the missstyling of printIt results. Maybe, TextAttributes should indeed have a volatile flag for this purpose, to skip them while copying the text somewhere
 else ...<br>
> <br>
> Best,<br>
> Christoph<br>
> <br>
> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Eliot Miranda <eliot.miranda@gmail.com><br>
> Gesendet: Donnerstag, 9. Januar 2020 18:46 Uhr<br>
> An: The general-purpose Squeak developers list<br>
> Betreff: [squeak-dev] inserting the results of doit in code highlighted contexts<br>
>  <br>
> Hi All,<br>
> <br>
>     let me suggest that the SmalltalkEditor i nests a period at the beginning of a printIt result if the last non-whitespace character of the doit expression was not a period.  That way the result will be correctly highlighted if the doit is.<br>
> _,,,^..^,,,_<br>
> best, Eliot<br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>