[plt-scheme] get caret position in text%

From: Robby Findler (robby at cs.uchicago.edu)
Date: Mon Jun 2 14:06:19 EDT 2008

No problem!

I've updated the docs to clarify that (in SVN).

Thanks,
Robby

On Mon, Jun 2, 2008 at 12:22 PM, Martin DeMello <martindemello at gmail.com> wrote:
> Ah, thanks! Sorry for being slow :) I do think the docs should be
> clearer that the "current selection" defaults to the caret if there is
> no selection.
>
> martin
>
> On Mon, Jun 2, 2008 at 10:18 AM, Robby Findler <robby at cs.uchicago.edu> wrote:
>> You want to combine position-paragraph (which is below) with
>> get-start-position and get-end-position.
>>
>> Robby
>>
>> On Mon, Jun 2, 2008 at 11:46 AM, Martin DeMello <martindemello at gmail.com> wrote:
>>> I went through the docs, and couldn't find anything relating to the
>>> caret. I found the following methods containing 'paragraph':
>>>
>>> last-paragraph
>>> line-paragraph
>>> paragraph-end-line
>>> paragraph-end-position
>>> paragraph-start-line
>>> paragraph-start-position
>>> position-paragraph
>>> set-paragraph-alignment
>>> set-paragraph-margins
>>>
>>> of which only last-paragraph doesn't take an argument.
>>>
>>> martin
>>>
>>> On Mon, Jun 2, 2008 at 4:20 AM, Robby Findler <robby at cs.uchicago.edu> wrote:
>>>> If you want the line and column according to the soft line breaks,
>>>> look at the methods with the name "line" in them and if you want the
>>>> line and column according only to where newlines are in the buffer,
>>>> look for methods with the name "paragraph".
>>>>
>>>> http://docs.plt-scheme.org/gui/text_.html
>>>>
>>>> Robby
>>>>
>>>> On Mon, Jun 2, 2008 at 12:15 AM, Martin DeMello <martindemello at gmail.com> wrote:
>>>>> How do I get the row and column the caret is currently at in a text% widget?
>>>>>
>>>>> martin
>>>>> _________________________________________________
>>>>>  For list-related administrative tasks:
>>>>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>


Posted on the users mailing list.