Re: Please test the docks branch

2019-09-06 Thread Chris George

>
>
> Back in an hour or so.
>
> I love linux.
>
> Chris
>

And I am back.

What did I miss?

Fresh install of OS and all critical apps. I even took the time to do a 
backup of my home folder because it was getting a little crufty.

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/ffe7077e-25af-4612-b190-8ed4d6784105%40googlegroups.com.


Re: Why f-strings are better

2019-09-06 Thread Edward K. Ream
On Friday, September 6, 2019 at 2:14:09 PM UTC-5, Edward K. Ream wrote:

PEP 498 , tells why, clearly, and 
> in detail.
>

The PEP doesn't explicitly mention that pylint and pyflakes check the 
expressions in f-strings. 

My tests show that pyflakes finds "local" misspellings.  pylint finds 
"global" misspellings by checking attributes of classes and modules.  This 
is great news.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/49fa0abf-1cab-4712-872f-2b6a1d0aa552%40googlegroups.com.


Re: Please test the docks branch

2019-09-06 Thread Chris George
Leo 6.1-devel, devel branch, build c46acee108
2019-09-06 07:32:05 -0500
Python 3.7.4, PyQt version 5.13.0
linux

That was so much fun to track down.

I am in the hospital still on my laptop. It was using a testbed I had 
installed via pip in pyenv.

Same result with the above.

Next up: a complete reinstall of my OS including a different distribution.

Back in an hour or so.

I love linux.

Chris



On Friday, September 6, 2019 at 12:31:30 PM UTC-7, Edward K. Ream wrote:
>
> On Fri, Sep 6, 2019 at 10:56 AM Chris George  > wrote:
>
> Leo 6.0-final, build 0aeeb6fdcb
>>
>
> Huh?  The new code is in Leo 6.1-devel.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c338f3b1-118d-4979-993a-85b109f14c82%40googlegroups.com.


Re: Please test the docks branch

2019-09-06 Thread Edward K. Ream
On Fri, Sep 6, 2019 at 10:07 AM Brian Theado  wrote:

I found some strange behavior when launching leo with a non-existent file
> on the command line.
>

Thanks for this testing.  I'll fix it immediately.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3PGoiEFUSEHo3_Pqu1HVtyj0rLwkcv9h9fST5mwz9SgA%40mail.gmail.com.


Why f-strings are better

2019-09-06 Thread Edward K. Ream
PEP 498 , tells why, clearly, and 
in detail.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5ed10413-ce8f-4e9d-9932-61b6b50a51f3%40googlegroups.com.


Re: Please test the docks branch

2019-09-06 Thread Brian Theado
I found some strange behavior when launching leo with a non-existent file
on the command line. If I don't give any files on the command line or if I
give the path to an existing file, then it is fine. But with the new file
on command line, the tips windows appears and leo is still running, but
there is no other window and I can only exit by hitting ctrl-c. This is on
linux.

I used git bisect and found the bad behavior is introduced by
commit 313f9e99af.

Let me know if you can't reproduce the issue and I can help more.

On Fri, Sep 6, 2019 at 10:28 AM Edward K. Ream  wrote:

>
>
> On Fri, Sep 6, 2019 at 8:33 AM Edward K. Ream  wrote:
>
>> The docks branch improves how Leo handles docks. This is #1318
>> .
>>
>> - Bug fix: The VR pane is moveable whenever --init-docks is in effect.
>> - The `@bool` @bool use-vr-dock  is no longer used.
>> - The VR pane is hidden for new windows.
>>
>> The code changes are small, but this code must be considered experimental.
>>
>
> I have just merged docks into pyzo (not devel). All seems well.
>
> *Important*: Leo will use the dock layout in the first loaded .leo file
> for new windows.  So if you don't want all of pyzo's docks in new windows,
> hide them in your first-loaded .leo file.
>
> Edward
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/CAMF8tS1FYozr4BENU%3Dp-N9nLjqhMTFwWTCp%2BCfzf%2BuQMQbLBeg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8CxRWJAEbPrkNNXndvR99bkgB0418SE1G4reL4eO5tn11Q%40mail.gmail.com.


Re: Please test the docks branch

2019-09-06 Thread Edward K. Ream
On Fri, Sep 6, 2019 at 8:33 AM Edward K. Ream  wrote:

> The docks branch improves how Leo handles docks. This is #1318
> .
>
> - Bug fix: The VR pane is moveable whenever --init-docks is in effect.
> - The `@bool` @bool use-vr-dock  is no longer used.
> - The VR pane is hidden for new windows.
>
> The code changes are small, but this code must be considered experimental.
>

I have just merged docks into pyzo (not devel). All seems well.

*Important*: Leo will use the dock layout in the first loaded .leo file for
new windows.  So if you don't want all of pyzo's docks in new windows, hide
them in your first-loaded .leo file.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1FYozr4BENU%3Dp-N9nLjqhMTFwWTCp%2BCfzf%2BuQMQbLBeg%40mail.gmail.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread Edward K. Ream


On Friday, September 6, 2019 at 7:50:10 AM UTC-5, rengel wrote:

Never met somebody before, who is so open to suggestions..., love it!
>

I already strongly prefer f-strings :-)

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/e4b9491f-b888-46b2-9bf0-afd9f251474d%40googlegroups.com.


Please test the docks branch

2019-09-06 Thread Edward K. Ream
The docks branch improves how Leo handles docks. This is #1318 
. 

- Bug fix: The VR pane is moveable whenever --init-docks is in effect.
- The `@bool` @bool use-vr-dock  is no longer used.
- The VR pane is hidden for new windows.

The code changes are small, but this code must be considered experimental.

If you rearrange your docks, please test and report any problems.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b5d5475d-3d06-443b-b575-6e928cfc3dcf%40googlegroups.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread rengel
On Friday, September 6, 2019 at 12:58:29 PM UTC+2, Edward K. Ream wrote:
>
>
>
> On Fri, Sep 6, 2019 at 5:25 AM rengel > 
> wrote:
>
>> BTW:
>>  
>>
>>> It's a matter of preference, and I'm pretty stuck in my ways.
>>>
>>
>> 'Matter of prefernce', ok, but the second part isn't even an excuse
>>
>
> With your nudges, I'll use f-strings in new code.
>
>
Never met somebody before, who is so open to suggestions..., love it!

Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/37a68c7a-50c7-4660-b961-08af7d80ba3b%40googlegroups.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread jkn


On Friday, September 6, 2019 at 11:10:01 AM UTC+1, rengel wrote:
>
> Faster or not faster? As programmers we don't need to speculate, do we? We 
> can benchmark...
> https://cito.github.io/blog/f-strings/
>
> Reinhard
>
>
I wasn't speculating, I was recalling ... someone who had benchmarked and 
found it much slower.

It looks like a new opcode has been added in 3.6 or so to improve matters 
(a lot, perhaps) - hurrah!

Jon N

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/755029e4-ffcb-46c9-a3b7-f3b09a868ec5%40googlegroups.com.


Re: leoVUE issues

2019-09-06 Thread Edward K. Ream
On Fri, Sep 6, 2019 at 5:44 AM Austin(Xu) Wang  wrote:

> Dear Leo User,
>
> Just in case you are also a leoVUE user.. I need some help on two issues.
>

Glad to see you are testing.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3Jo8MmuPeumB%2BHvqTyR3yDXATCA64Bm1V_VtfeGJo3Jg%40mail.gmail.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread Edward K. Ream
On Fri, Sep 6, 2019 at 5:25 AM rengel  wrote:

> BTW:
>
>
>> It's a matter of preference, and I'm pretty stuck in my ways.
>>
>
> 'Matter of prefernce', ok, but the second part isn't even an excuse
>

With your nudges, I'll use f-strings in new code.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1nFH6vixMxQAtL4WuwGey4ep0Lvm63pyjMv7JVuLbauQ%40mail.gmail.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread Edward K. Ream
On Fri, Sep 6, 2019 at 5:10 AM rengel  wrote:

> Faster or not faster? As programmers we don't need to speculate, do we? We
> can benchmark...
> https://cito.github.io/blog/f-strings/
>

Thanks for this.  Good to know.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS37gpdgw87Djwca9698giRyNbo2mYGrr2A0y_w3ZUoo8w%40mail.gmail.com.


leoVUE issues

2019-09-06 Thread Austin(Xu) Wang
Dear Leo User,

Just in case you are also a leoVUE user.. I need some help on two issues.

https://github.com/kaleguy/leovue/issues/8
https://github.com/kaleguy/leovue/issues/9

The two issues are quite similar, some valid leo directives @auto, @clean, 
@language rest make leoVUE display abnormal.


PS.
I managed to run leoVUE on my android mobile. So I can sync with remote git 
repo and browse the .leo file using leoVUE on mobile wherever I go.

BR,Austin





-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/34c666bc-c66d-4189-8c2a-d8e62ba84e89%40googlegroups.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread rengel
BTW:
 

> It's a matter of preference, and I'm pretty stuck in my ways.
>

'Matter of prefence', ok, but the second part isn't even an excuse - given 
the pace you embrace one new technology after another... ;-)
I'm a little older than you and made the switch a year ago - easy, and 
quite a relief.

Reinhard

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/285db304-4ea5-4174-93ee-b3826604d54a%40googlegroups.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread rengel
Faster or not faster? As programmers we don't need to speculate, do we? We 
can benchmark...
https://cito.github.io/blog/f-strings/

Reinhard

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d395d751-a447-48de-a811-eb8ca64edc41%40googlegroups.com.


Re: Flatten pushed commits in devel?!?

2019-09-06 Thread Edward K. Ream
On Thu, Sep 5, 2019 at 4:31 PM Edward K. Ream  wrote:

> Don't panic.  This is only a test.  I created the rebase-test branch as
> follows:
>
> git checkout -b rebase-test
> git push origin rebase-test
> git rebase *master* --strategy-option=*theirs*
>
> The last line took almost 10 minutes.  In this branch, gitk show all work
> since July 6 (the last commit to master) in a flat, linear, list of
> commits. Note that "theirs" has a reversed meaning from merges.
>

I did push this briefly to origin, but then I thought better of it and
deleted the branch.

I you want to recreate what I did, you will find two or three conflicts,
all involving the same deleted file.  To resolve the conflict, do git rm
.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1D-%2BdXEdUm2wZr-O5OcK662r4abd7VTQPDwRb-67JYUw%40mail.gmail.com.


Re: generate HTML from .txt via @rst node

2019-09-06 Thread Edward K. Ream
On Thu, Sep 5, 2019 at 12:18 PM Austin(Xu) Wang  wrote:

> On Thursday, September 5, 2019 at 8:04:54 PM UTC+7, Edward K. Ream wrote:
>
>>
>> cd leo/doc/html
>> make html (or make clean)
>>
>
> I am using auto node for generating rst file for now.
>
> @auto index.rst
>
> The children are chapters, sub-chapters...So far so good, without using
> the rst3 command.
>

Glad to hear it.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2Bq1CODVAN7%2B-vLhreuT7-CpMNwEzgdmQd9BZYYPOdeg%40mail.gmail.com.


Re: An excellent new code pattern: reprs compatible with g.printObj

2019-09-06 Thread Edward K. Ream
On Thu, Sep 5, 2019 at 4:31 AM jkn  wrote:

> IIUC, f-string formatting is *significantly* slower than old-style
percentage usage.

Hmm. Somebody else says its faster.  I would think it would be slower,
because it has to eval the arg.

> personally I too have not rushed to change in my own code...

I agree. f-strings add nothing new.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3exR0d-xfKXU8Bx%3DDUeakTG0uRBjPkjYuR654UGoqXqA%40mail.gmail.com.