Actions in Glamour

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Actions in Glamour

abergel
Hi!

I am experiencing a situation which is either unintuitive or reflects a bug.
Consider the following script
-=-=-=-=-=-=-=-=-=
| browser |
browser := GLMFinder new.
browser text
        act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
browser openOn: 'hello world'
-=-=-=-=-=-=-=-=-=

If start to type in it, and trigger the action, an inspector on the string 'hello world' is open, no matter what I typed.

Is there anything obvious that I do not see?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Actions in Glamour

Tudor Girba-2
Hi,



On Sep 6, 2011, at 20:14, Alexandre Bergel <[hidden email]> wrote:

> Hi!
>
> I am experiencing a situation which is either unintuitive or reflects a bug.
> Consider the following script
> -=-=-=-=-=-=-=-=-=
> | browser |
> browser := GLMFinder new.
> browser text
>    act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
> browser openOn: 'hello world'
> -=-=-=-=-=-=-=-=-=
>
> If start to type in it, and trigger the action, an inspector on the string 'hello world' is open, no matter what I typed.
>
> Is there anything obvious that I do not see?

Yes :)

v will be populated with the entity, not the selection.

You should use "prez selection".

Cheers,
Doru

>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Actions in Glamour

abergel
I think you meant 'prez text' and not 'prez selection'.
I found another strange behavior, likely to be a bug.

Try:
-=-=-=-=-=-=
| browser |
browser := GLMFinder new.
browser text
        act: [:prez :v | prez text inspect ] on: $i entitled: 'Inspect'.
browser openOn: 'hello world'
-=-=-=-=-=-=

If you type something and press cmd-i then you open an inspector on what you have typed.
Now, do a cut and paste in the textpane, and press cmd-i. You have an inspector on 'hello world', no matter what you have cut&pasted.

Is this a bug?

Cheers,
Alexandre



On 6 Sep 2011, at 15:32, Tudor Girba wrote:

> Hi,
>
>
>
> On Sep 6, 2011, at 20:14, Alexandre Bergel <[hidden email]> wrote:
>
>> Hi!
>>
>> I am experiencing a situation which is either unintuitive or reflects a bug.
>> Consider the following script
>> -=-=-=-=-=-=-=-=-=
>> | browser |
>> browser := GLMFinder new.
>> browser text
>>   act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
>> browser openOn: 'hello world'
>> -=-=-=-=-=-=-=-=-=
>>
>> If start to type in it, and trigger the action, an inspector on the string 'hello world' is open, no matter what I typed.
>>
>> Is there anything obvious that I do not see?
>
> Yes :)
>
> v will be populated with the entity, not the selection.
>
> You should use "prez selection".
>
> Cheers,
> Doru
>
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Actions in Glamour

Tudor Girba-2
Sorry, it is: selectedText.

Doru


On 6 Sep 2011, at 20:42, Alexandre Bergel wrote:

> I think you meant 'prez text' and not 'prez selection'.
> I found another strange behavior, likely to be a bug.
>
> Try:
> -=-=-=-=-=-=
> | browser |
> browser := GLMFinder new.
> browser text
> act: [:prez :v | prez text inspect ] on: $i entitled: 'Inspect'.
> browser openOn: 'hello world'
> -=-=-=-=-=-=
>
> If you type something and press cmd-i then you open an inspector on what you have typed.
> Now, do a cut and paste in the textpane, and press cmd-i. You have an inspector on 'hello world', no matter what you have cut&pasted.
>
> Is this a bug?
>
> Cheers,
> Alexandre
>
>
>
> On 6 Sep 2011, at 15:32, Tudor Girba wrote:
>
>> Hi,
>>
>>
>>
>> On Sep 6, 2011, at 20:14, Alexandre Bergel <[hidden email]> wrote:
>>
>>> Hi!
>>>
>>> I am experiencing a situation which is either unintuitive or reflects a bug.
>>> Consider the following script
>>> -=-=-=-=-=-=-=-=-=
>>> | browser |
>>> browser := GLMFinder new.
>>> browser text
>>>  act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
>>> browser openOn: 'hello world'
>>> -=-=-=-=-=-=-=-=-=
>>>
>>> If start to type in it, and trigger the action, an inspector on the string 'hello world' is open, no matter what I typed.
>>>
>>> Is there anything obvious that I do not see?
>>
>> Yes :)
>>
>> v will be populated with the entity, not the selection.
>>
>> You should use "prez selection".
>>
>> Cheers,
>> Doru
>>
>>>
>>> Cheers,
>>> Alexandre
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Every thing has its own flow."





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Actions in Glamour

Tudor Girba-2
Regarding copy paste, indeed it seems that pasting a text does not update the port. Please open a ticket.

Doru


On 6 Sep 2011, at 22:47, Tudor Girba wrote:

> Sorry, it is: selectedText.
>
> Doru
>
>
> On 6 Sep 2011, at 20:42, Alexandre Bergel wrote:
>
>> I think you meant 'prez text' and not 'prez selection'.
>> I found another strange behavior, likely to be a bug.
>>
>> Try:
>> -=-=-=-=-=-=
>> | browser |
>> browser := GLMFinder new.
>> browser text
>> act: [:prez :v | prez text inspect ] on: $i entitled: 'Inspect'.
>> browser openOn: 'hello world'
>> -=-=-=-=-=-=
>>
>> If you type something and press cmd-i then you open an inspector on what you have typed.
>> Now, do a cut and paste in the textpane, and press cmd-i. You have an inspector on 'hello world', no matter what you have cut&pasted.
>>
>> Is this a bug?
>>
>> Cheers,
>> Alexandre
>>
>>
>>
>> On 6 Sep 2011, at 15:32, Tudor Girba wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> On Sep 6, 2011, at 20:14, Alexandre Bergel <[hidden email]> wrote:
>>>
>>>> Hi!
>>>>
>>>> I am experiencing a situation which is either unintuitive or reflects a bug.
>>>> Consider the following script
>>>> -=-=-=-=-=-=-=-=-=
>>>> | browser |
>>>> browser := GLMFinder new.
>>>> browser text
>>>> act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
>>>> browser openOn: 'hello world'
>>>> -=-=-=-=-=-=-=-=-=
>>>>
>>>> If start to type in it, and trigger the action, an inspector on the string 'hello world' is open, no matter what I typed.
>>>>
>>>> Is there anything obvious that I do not see?
>>>
>>> Yes :)
>>>
>>> v will be populated with the entity, not the selection.
>>>
>>> You should use "prez selection".
>>>
>>> Cheers,
>>> Doru
>>>
>>>>
>>>> Cheers,
>>>> Alexandre
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow."
>
>
>
>

--
www.tudorgirba.com

"Reasonable is what we are accustomed with."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Actions in Glamour

abergel
#701

Alexandre

On 6 Sep 2011, at 18:12, Tudor Girba wrote:

> Regarding copy paste, indeed it seems that pasting a text does not update the port. Please open a ticket.
>
> Doru
>
>
> On 6 Sep 2011, at 22:47, Tudor Girba wrote:
>
>> Sorry, it is: selectedText.
>>
>> Doru
>>
>>
>> On 6 Sep 2011, at 20:42, Alexandre Bergel wrote:
>>
>>> I think you meant 'prez text' and not 'prez selection'.
>>> I found another strange behavior, likely to be a bug.
>>>
>>> Try:
>>> -=-=-=-=-=-=
>>> | browser |
>>> browser := GLMFinder new.
>>> browser text
>>> act: [:prez :v | prez text inspect ] on: $i entitled: 'Inspect'.
>>> browser openOn: 'hello world'
>>> -=-=-=-=-=-=
>>>
>>> If you type something and press cmd-i then you open an inspector on what you have typed.
>>> Now, do a cut and paste in the textpane, and press cmd-i. You have an inspector on 'hello world', no matter what you have cut&pasted.
>>>
>>> Is this a bug?
>>>
>>> Cheers,
>>> Alexandre
>>>
>>>
>>>
>>> On 6 Sep 2011, at 15:32, Tudor Girba wrote:
>>>
>>>> Hi,
>>>>
>>>>
>>>>
>>>> On Sep 6, 2011, at 20:14, Alexandre Bergel <[hidden email]> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> I am experiencing a situation which is either unintuitive or reflects a bug.
>>>>> Consider the following script
>>>>> -=-=-=-=-=-=-=-=-=
>>>>> | browser |
>>>>> browser := GLMFinder new.
>>>>> browser text
>>>>> act: [:prez :v | v inspect ] on: $i entitled: 'Inspect'.
>>>>> browser openOn: 'hello world'
>>>>> -=-=-=-=-=-=-=-=-=
>>>>>
>>>>> If start to type in it, and trigger the action, an inspector on the string 'hello world' is open, no matter what I typed.
>>>>>
>>>>> Is there anything obvious that I do not see?
>>>>
>>>> Yes :)
>>>>
>>>> v will be populated with the entity, not the selection.
>>>>
>>>> You should use "prez selection".
>>>>
>>>> Cheers,
>>>> Doru
>>>>
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>> --
>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>> Alexandre Bergel  http://www.bergel.eu
>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow."
>>
>>
>>
>>
>
> --
> www.tudorgirba.com
>
> "Reasonable is what we are accustomed with."
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev