<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 1, 2015 at 1:05 PM, Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ParagraphEditor is in ST-80, so not part of this package.  Speaking of<br>
that, is a corresponding change to ParagraphEditor necessary?  Is<br>
ParagraphEditor intended to be purged at some point?<br></blockquote><div><br></div><div>Not necessarily.  People use it as a way of reducing footprint.  Whether we can afford to keep it going long term is debatable but so far people like David Lewis have done a good job of keeping it working.  So by all means fix compare to clipboard therein.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Sun, Feb 1, 2015 at 1:06 PM,  &lt;<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>&gt; wrote:<br>
&gt; Chris Muller uploaded a new version of Morphic to project The Trunk:<br>
&gt; <a href="http://source.squeak.org/trunk/Morphic-cmm.756.mcz" target="_blank">http://source.squeak.org/trunk/Morphic-cmm.756.mcz</a><br>
&gt;<br>
&gt; ==================== Summary ====================<br>
&gt;<br>
&gt; Name: Morphic-cmm.756<br>
&gt; Author: cmm<br>
&gt; Time: 1 February 2015, 1:06:11.045 pm<br>
&gt; UUID: c1553853-472d-45ca-a182-c07497c6f7a9<br>
&gt; Ancestors: Morphic-cmm.755<br>
&gt;<br>
&gt; - Present the comparison to clipboard text from the context of paste-modification, since that is what the user is determining whether to do with the clipboard contents.<br>
&gt; - Make the same change to ParagraphEditor, for consistency.<br>
&gt;<br>
&gt; =============== Diff against Morphic-cmm.755 ===============<br>
&gt;<br>
&gt; Item was changed:<br>
&gt;   ----- Method: TextEditor&gt;&gt;compareToClipboard (in category &#39;menu messages&#39;) -----<br>
&gt;   compareToClipboard<br>
&gt; +       &quot;If any text is selected, present the modifications that would be made to it if the clipboard contents were pasted over it.  If no text is selected, present the differences betwen the entire pane&#39;s contents and the clipboard text.&quot;<br>
&gt; +       | subjectText proposedText |<br>
&gt; +       subjectText := self selection string ifEmpty: [ paragraph text string ].<br>
&gt; +       proposedText := self clipboardText string.<br>
&gt; +       subjectText = proposedText ifTrue: [^ self inform: &#39;Exact match&#39;].<br>
&gt; +       (StringHolder new<br>
&gt; +               textContents:<br>
&gt; +                       (TextDiffBuilder<br>
&gt; +                               buildDisplayPatchFrom: subjectText<br>
&gt; +                               to: proposedText)) openLabel: &#39;Differences with Clipboard Text&#39;!<br>
&gt; -       &quot;Check to see if whether the receiver&#39;s text is the same as the text currently on the clipboard, and inform the user.&quot;<br>
&gt; -       | s1 s2 |<br>
&gt; -       s1 := self clipboardText string.<br>
&gt; -       s2 := self selection string.<br>
&gt; -       s1 = s2 ifTrue: [^ self inform: &#39;Exact match&#39;].<br>
&gt; -<br>
&gt; -       (StringHolder new textContents:<br>
&gt; -               (TextDiffBuilder buildDisplayPatchFrom: s1 to: s2))<br>
&gt; -               openLabel: &#39;Comparison to Clipboard Text&#39;!<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">best,<div>Eliot</div></div>
</div></div>