67159ee: a rewrite of leomail.py plugin

2017-02-28 Thread Edward K. Ream
The leomail plugin reads .mbox mail archive files into a tree of Leo nodes. 
This saves a lot of work.

Google " archive to mbox" for instructions on 
generating .mbox files.

The new code contains the following improvements:

1. It works with both Python 2 and 3. *The old code could corrupt .leo 
files* by including strings that the sax parser barfed on. The new code 
appears safe to use. The conversion involved tricky details in libraries, 
as well as the usual cursed bytes/string/unicode issues.

2. The new code organizes messages by threads.  Messages that start with 
"re:" become children of the node that started the thread.

3. Better warning and informational messages, and a better docstring.

Edward

P.S. I may add code that strips off cruft.

EKR

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Rev 112b14f: unl:// syntax creates clickable links between .leo files

2017-02-28 Thread Largo84
Good, finally figured out what that means, so I created a '@button 
get-unl`. That places the UNL in the log pane. What script command would 
copy it to the clipboard?

On Monday, February 27, 2017 at 3:11:14 PM UTC-5, Edward K. Ream wrote:
>
>
> ​Use p.get_UNL​(), in an @command or @button node. Here are some tested 
> examples:
>
> g.es(p.get_UNL(with_proto=True)) 
>
> yields:
>
> unl://C:\Users\edreamleo\ekr.leo#@button%20get_UNL:8
>
> Setting with_proto=False (the default) gives:
>
> C:\Users\edreamleo\ekr.leo#@button get_UNL:8
>
> 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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Abbreviation default text

2017-02-28 Thread 'Terry Brown' via leo-editor
You could file an enhancement request, not sure how high the priority would be. 
Currently you can use  to enter a blank value for the field, and 
 to keep the default value for the field (because 
right-arrow clears the selection range).  With your change you'd have to 
explicitly blank (backspace, I suppose) default text you didn't want to remain.
Cheers -Terry
  From: Largo84 
 To: leo-editor  
 Sent: Tuesday, February 28, 2017 1:24 PM
 Subject: Abbreviation default text
   
Here's another abbreviation question. Is there a way to populate the variable 
field with default text that remains after moving to the next field? For 
example:
foobar;;=Use <|foo|> and <|bar|> in a sentence.
When the abbreviation is expanded (executed) the text `foo` is highlighted and 
I can add new text to replace it, then hit `,,` and go the the next field and 
`bar` is selected. Is it possible to leave `foo` and `bar` in place as defaults 
without having to retype them?
If not, would this be an appropriate enhancement request?
Rob...-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


   

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Abbreviation default text

2017-02-28 Thread Largo84
Just answered my own question. Instead of typing text to replace the 
default, simply press right arrow key before `,,` to advance to the next 
field.


On Tuesday, February 28, 2017 at 2:24:30 PM UTC-5, Largo84 wrote:
>
> Here's another abbreviation question. Is there a way to populate the 
> variable field with default text that remains after moving to the next 
> field? For example:
>
> foobar;;=Use <|foo|> and <|bar|> in a sentence.
>
> When the abbreviation is expanded (executed) the text `foo` is highlighted 
> and I can add new text to replace it, then hit `,,` and go the the next 
> field and `bar` is selected. Is it possible to leave `foo` and `bar` in 
> place as defaults without having to retype them?
>
> If not, would this be an appropriate enhancement request?
>
> Rob...
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
It works, thanks!

On Tuesday, February 28, 2017 at 12:27:48 PM UTC-5, Terry Brown wrote:
>
> Ok, \\n should work in 9e9539d, there was special handling of \n in the 
> code already that made \newcommand etc. impossible.  I think it unavoidably 
> breaks theoretically possible abbreviations in people's local settings, but 
> (a) they probably don't exist, and (b) better that than have the code 
> unable to represent text needed for a demonstrated use case (\newcommand 
> etc. in LaTeX).
>
> Cheers -Terry
>
> --
> *From:* Largo84 >
> *To:* leo-editor > 
> *Cc:* terry_...@yahoo.com 
> *Sent:* Tuesday, February 28, 2017 10:10 AM
> *Subject:* Re: How to escape \n in abbreviations?
>
> Yes, and I also tried '\n' and "\n" to no avail.
>
> Rob.
>
> On Tuesday, February 28, 2017 at 10:52:58 AM UTC-5, Terry Brown wrote:
>
> Sorry, didn't read carefully enough.  Have you tried \\n ?
>
> Cheers -Terry
>
> --
> *From:* Largo84 
> *To:* leo-editor  
> *Sent:* Tuesday, February 28, 2017 9:47 AM
> *Subject:* Re: How to escape \n in abbreviations?
>
> That doesn't really answer the question. I use the `\:` syntax often to 
> create new lines in abbreviations as you demonstrate. What I need is the 
> text output to be `\n`. I need to somehow escape the `\n` such that when 
> executed it doesn't generate a new line and strip out the `\n' string 
> literal.
>
> Rob
>
> On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:
>
>
>
> leo-editor/leo/config/ leoSettings.leo#@settings--> Abbreviations-->@data 
> global-abbreviations 
>
> illustrates this: 
>
> # type html;; to insert template and ,, to select next <|placeholder|> 
> html;;= 
> \: 
> \:<|title|> 
> \: 
> \: 
> \: 
> \: 
> \:<|content|> 
> \: 
> \: 
>
> -- 
> 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+...@ googlegroups.com.
> To post to this group, send email to leo-e...@googlegroups.com.
>
> Visit this group at https://groups.google.com/ group/leo-editor 
> .
> For more options, visit https://groups.google.com/d/ optout 
> .
>
>
>
>
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Abbreviation default text

2017-02-28 Thread Largo84
Here's another abbreviation question. Is there a way to populate the 
variable field with default text that remains after moving to the next 
field? For example:

foobar;;=Use <|foo|> and <|bar|> in a sentence.

When the abbreviation is expanded (executed) the text `foo` is highlighted 
and I can add new text to replace it, then hit `,,` and go the the next 
field and `bar` is selected. Is it possible to leave `foo` and `bar` in 
place as defaults without having to retype them?

If not, would this be an appropriate enhancement request?

Rob...

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: [OT-GAOTD] Aml Pages 9.78 - Aml Pages keeps all your information in a form of tree.

2017-02-28 Thread ne1uno
I should have mentioned, there is a portable versions available
and, also, a menu item to make a portable version.
I assume this just creates local ini file or whatever else it needs
pulled from far flung directories 
nobody but the program would know how to find.

I often look for and would try or use a portable version.
these days, many will want to know if there is an app version.
ePIM does have one, not sure about AML Pages.
there is a python android app creator
has anyone tried to build Leo for phone or tablet?

just tried the mobile version of groups on desktop
so much quicker and less busy, but doesn't seem to have a reply button.

On Monday, February 27, 2017 at 7:34:05 PM UTC-5, ne1uno wrote:
>
> https://www.giveawayoftheday.com/aml-pages-9-78/
>
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
Ok, \\n should work in 9e9539d, there was special handling of \n in the code 
already that made \newcommand etc. impossible.  I think it unavoidably breaks 
theoretically possible abbreviations in people's local settings, but (a) they 
probably don't exist, and (b) better that than have the code unable to 
represent text needed for a demonstrated use case (\newcommand etc. in LaTeX).
Cheers -Terry

  From: Largo84 
 To: leo-editor  
Cc: terry_n_br...@yahoo.com
 Sent: Tuesday, February 28, 2017 10:10 AM
 Subject: Re: How to escape \n in abbreviations?
   
Yes, and I also tried '\n' and "\n" to no avail.
Rob.

On Tuesday, February 28, 2017 at 10:52:58 AM UTC-5, Terry Brown wrote:
Sorry, didn't read carefully enough.  Have you tried \\n ?
Cheers -Terry
  From: Largo84 
 To: leo-editor  
 Sent: Tuesday, February 28, 2017 9:47 AM
 Subject: Re: How to escape \n in abbreviations?
  
That doesn't really answer the question. I use the `\:` syntax often to create 
new lines in abbreviations as you demonstrate. What I need is the text output 
to be `\n`. I need to somehow escape the `\n` such that when executed it 
doesn't generate a new line and strip out the `\n' string literal.
Rob

On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:


leo-editor/leo/config/ leoSettings.leo#@settings--> Abbreviations-->@data 
global-abbreviations

illustrates this:

# type html;; to insert template and ,, to select next <|placeholder|>
html;;=
\:
\:<|title|>
\:
\:
\:
\:
\:<|content|>
\:
\:


-- 
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+...@ googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/ group/leo-editor.
For more options, visit https://groups.google.com/d/ optout.


   


   

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
Done

On Tuesday, February 28, 2017 at 11:35:24 AM UTC-5, Edward K. Ream wrote:
>
>
> ​Please file an enhancement request.
>
> 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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Edward K. Ream
On Tue, Feb 28, 2017 at 10:10 AM, Largo84  wrote:

> Yes, and I also tried '\n' and "\n" to no avail.
>

​Please file an enhancement request.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
Yes, and I also tried '\n' and "\n" to no avail.

Rob.

On Tuesday, February 28, 2017 at 10:52:58 AM UTC-5, Terry Brown wrote:
>
> Sorry, didn't read carefully enough.  Have you tried \\n ?
>
> Cheers -Terry
>
> --
> *From:* Largo84 >
> *To:* leo-editor > 
> *Sent:* Tuesday, February 28, 2017 9:47 AM
> *Subject:* Re: How to escape \n in abbreviations?
>
> That doesn't really answer the question. I use the `\:` syntax often to 
> create new lines in abbreviations as you demonstrate. What I need is the 
> text output to be `\n`. I need to somehow escape the `\n` such that when 
> executed it doesn't generate a new line and strip out the `\n' string 
> literal.
>
> Rob
>
> On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:
>
>
>
> leo-editor/leo/config/ leoSettings.leo#@settings--> Abbreviations-->@data 
> global-abbreviations 
>
> illustrates this: 
>
> # type html;; to insert template and ,, to select next <|placeholder|> 
> html;;= 
> \: 
> \:<|title|> 
> \: 
> \: 
> \: 
> \: 
> \:<|content|> 
> \: 
> \: 
>
> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to leo-e...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A sprint (real or virtual) about Leo 5.6

2017-02-28 Thread Offray Vladimir Luna Cárdenas



On 28/02/17 10:39, Edward K. Ream wrote:



On Tue, Feb 28, 2017 at 9:35 AM, Offray Vladimir Luna Cárdenas 
mailto:off...@riseup.net>> wrote:


Just for curiosity, I wonder if the Babel approach taken by
org-mode is client sever [1]. I have the "feeling" is not, but I
have not still read the papers.

[1] https://www.jstatsoft.org/article/view/v046i03


​I would consult Babels​docs 
, not some academic paper ;-)




Thanks. I will read both ;-).

Offray

--
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
Sorry, didn't read carefully enough.  Have you tried \\n ?
Cheers -Terry
  From: Largo84 
 To: leo-editor  
 Sent: Tuesday, February 28, 2017 9:47 AM
 Subject: Re: How to escape \n in abbreviations?
   
That doesn't really answer the question. I use the `\:` syntax often to create 
new lines in abbreviations as you demonstrate. What I need is the text output 
to be `\n`. I need to somehow escape the `\n` such that when executed it 
doesn't generate a new line and strip out the `\n' string literal.
Rob

On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:


leo-editor/leo/config/ leoSettings.leo#@settings--> Abbreviations-->@data 
global-abbreviations

illustrates this:

# type html;; to insert template and ,, to select next <|placeholder|>
html;;=
\:
\:<|title|>
\:
\:
\:
\:
\:<|content|>
\:
\:


-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


   

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread Largo84
That doesn't really answer the question. I use the `\:` syntax often to 
create new lines in abbreviations as you demonstrate. What I need is the 
text output to be `\n`. I need to somehow escape the `\n` such that when 
executed it doesn't generate a new line and strip out the `\n' string 
literal.

Rob

On Tuesday, February 28, 2017 at 9:05:59 AM UTC-5, Terry Brown wrote:
>
>
>
> leo-editor/leo/config/leoSettings.leo#@settings-->Abbreviations-->@data 
> global-abbreviations 
>
> illustrates this: 
>
> # type html;; to insert template and ,, to select next <|placeholder|> 
> html;;= 
> \: 
> \:<|title|> 
> \: 
> \: 
> \: 
> \: 
> \:<|content|> 
> \: 
> \: 
>
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A sprint (real or virtual) about Leo 5.6

2017-02-28 Thread Edward K. Ream
On Tue, Feb 28, 2017 at 9:35 AM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:

> Just for curiosity, I wonder if the Babel approach taken by org-mode is
> client sever [1]. I have the "feeling" is not, but I have not still read
> the papers.
>
> [1] https://www.jstatsoft.org/article/view/v046i03
>
​I would consult Babels​ docs ,
not some academic paper ;-)

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: console error - execute_script can not find gnx:

2017-02-28 Thread Edward K. Ream
​​
On Tue, Feb 28, 2017 at 6:16 AM, Edward K. Ream  wrote:

On Mon, Feb 27, 2017 at 7:27 PM, lewis  wrote:
>
>> After the commit ef31ebe7d989 - This button fails:
>> ​ [snip]
>>
>

> ​g.extractExecutableString needs a rethink.
>>
> ​
Done at Rev 24864e6. It passes all tests, but is more experimental than
usual. Please report any problems immediately.

The new code adds a new g.composeScript helper, called by the
goto-global-line logic. By itself, it's harmless. It's an example of a new
principle for me:

*Prefer small helpers to keyword arguments*

The effect of this principle is to reduce or eliminate catchall
functions/methods. These are really hard to debug and test.

However, there appear to be problems instantiating supposedly "pristine"
copies of the AtFile class. On closer examination, that's not all that
surprising. The init logic for AtFile does way too much.  I'd rather not
open that can of worms now, but I may not have a choice.

This may be related to Importer unit tests create both @clean and @file
. In my experience,
these supposedly minor problems can be symptoms of far more serious issues.
I must figure out what is happening before 5.5 b1.

As my brother Speed would say, progress is slow but slow ;-)

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A sprint (real or virtual) about Leo 5.6

2017-02-28 Thread Offray Vladimir Luna Cárdenas
Just for curiosity, I wonder if the Babel approach taken by org-mode is 
client sever [1]. I have the "feeling" is not, but I have not still read 
the papers.


[1] https://www.jstatsoft.org/article/view/v046i03

Cheers,

Offray


On 28/02/17 10:20, Edward K. Ream wrote:
On Tue, Feb 28, 2017 at 6:50 AM, john lunzer > wrote:


On Monday, February 27, 2017 at 9:11:08 AM UTC-5, Edward K. Ream
wrote:


If we're looking forward Leo should go with the full client/server
based shell. This will facilitate a fully interactive Leo
environment. I think anything less would hamper future efforts
toward interactivity. This should also help knock out IPython
integration issues. Two birds with one (larger) stone.


​I agree.  I asked the question as part of due diligence.

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 post to this group, send email to leo-editor@googlegroups.com 
.

Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A sprint (real or virtual) about Leo 5.6

2017-02-28 Thread Edward K. Ream
On Tue, Feb 28, 2017 at 6:50 AM, john lunzer  wrote:

> On Monday, February 27, 2017 at 9:11:08 AM UTC-5, Edward K. Ream wrote:
>

If we're looking forward Leo should go with the full client/server based
> shell. This will facilitate a fully interactive Leo environment. I think
> anything less would hamper future efforts toward interactivity. This should
> also help knock out IPython integration issues. Two birds with one (larger)
> stone.
>

​I agree.  I asked the question as part of due diligence.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: [OT-GAOTD] Aml Pages 9.78 - Aml Pages keeps all your information in a form of tree.

2017-02-28 Thread Edward K. Ream
On Mon, Feb 27, 2017 at 6:34 PM, ne1uno  wrote:

​Interesting graphics.  Maybe Leo's promotional materials could look
something like that.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to escape \n in abbreviations?

2017-02-28 Thread 'Terry Brown' via leo-editor
On Mon, 27 Feb 2017 22:45:40 -0800 (PST)
Largo84  wrote:

> Suppose I create an abbreviation for a LaTex construct such as:
> 
> newcom;;=\newcommand{\SomethingNew}{<|INSERT-TEXT|>}
> 
> When executed, the `\n` is interpreted as a Python line feed and I
> end up with:

leo-editor/leo/config/leoSettings.leo#@settings-->Abbreviations-->@data 
global-abbreviations

illustrates this:

# type html;; to insert template and ,, to select next <|placeholder|>
html;;=
\:
\:<|title|>
\:
\:
\:
\:
\:<|content|>
\:
\:

i.e. lines starting with \: are appended to the abbreviation (with a \n
between each).

Cheers -Terry

> ewcommand{...
> 
> How can I escape the `\n` so that it doesn't create a line feed, but
> the string literal value of `\n`? I looked here 
> , but didn't see
> anything helpful.
> 
> Rob...
> 

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A sprint (real or virtual) about Leo 5.6

2017-02-28 Thread john lunzer
On Monday, February 27, 2017 at 9:11:08 AM UTC-5, Edward K. Ream wrote:
>
> - Support for pyzo's client/server based shell.  It this needed? Do 
> valuespace or python_console plugins suffice? I suspect pyzo's architecture 
> is better, but I'm not sure how much better.
>
> Edward
>

If we're looking forward Leo should go with the full client/server based 
shell. This will facilitate a fully interactive Leo environment. I think 
anything less would hamper future efforts toward interactivity. This should 
also help knock out IPython integration issues. Two birds with one (larger) 
stone.

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: console error - execute_script can not find gnx:

2017-02-28 Thread Edward K. Ream
On Mon, Feb 27, 2017 at 7:27 PM, lewis  wrote:

> After the commit ef31ebe7d989 - This button fails:
> ​ [snip]
>

​Thanks for this report. ​

​​
​g.extractExecutableString needs a rethink. The present code will extract
code in *any *language, except reStructuredText and markdown.

But that's overkill, and wrong. A cff verifies that Leo presently calls
g.getScript only when we are about to execute *python* code.  Hardly
surprising.

This is good news.  ​​g.extractExecutableString can be simplified.  It will
return all and *only *lines under the control of @language python.
Furthermore, it will assume @language python initially.  This will kill
several birds with one stone:

- No more spurious "can not execute multiple languages" message.
- Simplifies the code.
- Allows python code to be freely intermixed with comments in *any* other
language.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.