Re: Heads up: PR #3597 rewrites Leos save, save-as and save-to commands!

2023-10-12 Thread Edward K. Ream
On Monday, October 9, 2023 at 2:10:24 AM UTC-5 Edward K. Ream wrote:

> PR #3597  rewrites 
c.save, c.saveAs, and c.saveTo.

This PR has been merged into devel. Please report any problems immediately.

I have just rescheduled Leo 6.7.5 for Friday, October 27. This will give us 
all more time for testing, and will give Félix more time to report any last 
quirps before he releases leoJS.

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/4164f76d-e9df-4039-a9b3-54f9a4bd21fen%40googlegroups.com.


Re: Heads up: PR #3597 rewrites Leos save, save-as and save-to commands!

2023-10-09 Thread Edward K. Ream
On Mon, Oct 9, 2023 at 1:40 PM Félix  wrote:

> Thanks, I'll have leojs mimic those changes.


You're welcome. Thomas has many interesting comments on the PR. I'll work
on them next.

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/CAMF8tS3xiGY2_8ZVNZ%2B2gzXihqX0Nby33wvO6SZ0-6O6ogc3Yw%40mail.gmail.com.


Re: Heads up: PR #3597 rewrites Leos save, save-as and save-to commands!

2023-10-09 Thread Félix
Thanks, I'll have leojs mimic those changes.

Félix

On Monday, October 9, 2023 at 3:10:24 AM UTC-4 Edward K. Ream wrote:

> PR #3597  rewrites 
> c.save, c.saveAs, and c.saveTo. This project started out with a report 
> about a quirp. I quickly realized that the existing code was intolerably 
> complex.
>
>
> *Removing an Easter Egg*
>
>
> c.saveTo contains the following Easter Egg (bizarre code):
>
>
> if not fileName:  
>
> fileName = ''.join(c.k.givenArgs)
>
>
> Neither Leo's core nor official plugins use this egg. Furthermore, the 
> existing "fileName" kwarg to all three methods renders the hack unnecessary.
>
>
> *Summary*
>
>
> The PR fixes hard-to-see inconsistencies in c.save, c.saveAs, and 
> c.saveTo. This PR should be the basis of leoJS's save command.
>
> This work is potentially dangerous! I'll wait at least several days before 
> merging this PR. 
>
> Imo, removing the Easter Egg does not constitute a significant breaking 
> change to Leo's API. But we'll see who howls :-)
>
> Please review the PR 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/32395122-ff4d-48ff-8f7e-1185514fdd8en%40googlegroups.com.


Heads up: PR #3597 rewrites Leos save, save-as and save-to commands!

2023-10-09 Thread Edward K. Ream
 

PR #3597  rewrites 
c.save, c.saveAs, and c.saveTo. This project started out with a report 
about a quirp. I quickly realized that the existing code was intolerably 
complex.


*Removing an Easter Egg*


c.saveTo contains the following Easter Egg (bizarre code):


if not fileName:  

fileName = ''.join(c.k.givenArgs)


Neither Leo's core nor official plugins use this egg. Furthermore, the 
existing "fileName" kwarg to all three methods renders the hack unnecessary.


*Summary*


The PR fixes hard-to-see inconsistencies in c.save, c.saveAs, and c.saveTo. 
This PR should be the basis of leoJS's save command.

This work is potentially dangerous! I'll wait at least several days before 
merging this PR. 

Imo, removing the Easter Egg does not constitute a significant breaking 
change to Leo's API. But we'll see who howls :-)

Please review the PR 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/7a18ed3f-b515-4de9-9f8b-54010d8d6781n%40googlegroups.com.