On Wednesday, October 17, 2012 5:18:57 AM UTC-7, Edward K. Ream wrote:
>
> On Tue, Oct 9, 2012 at 7:50 PM, F.S. <[email protected] <javascript:>> 
> wrote:  

> It is probably not too hard to create an Emacs mode for Leo? With Leo's 
> core outlining and Python scripting capability integrated with Emacs power 
> in basic editing and countless modes. 
>
> Are you familiar with the "Leo and Emacs" chapter? 
> http://webpages.charter.net/edreamleo/emacs.html 
> This makes Leo outlines accessible from emacs. 
>
>
Yes I have read through that and the Leo Pymacs interface code. I 
understand the scripting interface is there. But one still needs to bridge 
the gap between basic text editing and outline editing inside Emacs. 

Furthermore, much of Leo could be considered an emacs mode: I (or 
> others) have moved ideas from Emacs to Leo.  Dynamic abbreviations are 
> only the latest in a long line of improvements inspired by emacs. 
>
> Yes that was great but do you plan to fix the inconsistencies with Emacs? 
I understand Leo's strength in outlining and scripting. Fixing all the 
basic editing/gui problems may seem trivial or burdensome. If you plan to 
perfect Leo editing as well the desire for an Emacs interface could be less 
urgent. Here are a few I have encountered and believe should be fixed for 
better keyboard editing experience:

Kill-line:  in Leo kills the whole line, not just from point to line end. 
Consecutive kills should be put together so that they can all be yanked at 
once.
Yank: only yank the most recent out of the kill-line. Should be able to 
yank consecutive kill lines. Also yanked texts are currently highlighted 
which means one has to get rid of the selection first before continuing 
typing. Is there a M-Y as well so that we can reach deeper into the 
kill-ring?
Mark: I couldn't get mark to work so I have no way to select text from 
 keyboard instead of using a mouse.

Also for dabbrev, Emacs uses some kind of proximity measure so that if you 
use M-/ you get the best completion choice right away, and you can cycle 
through other choices by pressing M-/ again. C-M-/ gets you the longest 
common prefix and a choice menu if you press the keys again.

Scroll: outline pane still rescrolls when I save.

But you might have been asking whether it would be possible to do a 
> "Leo" mode in elisp within emacs itself.  That would be a *big* 
> project.  The major tasks: 
>
>
No I was thinking of the Leo "server" mode approach. But thanks for 
sketching out the porting approach as that illuminates where the important 
pieces/interfaces are at. And I am glad that you do have an interest in 
getting Leo to Emacs users. I started a wiki page on github:
https://github.com/fspeech/mcleo/wiki/Planning

Unfortunately I am not a power user of Emacs or Leo. I am just very 
interested in getting the best IDE experience out of the two, which I 
believe is powerful and unique among all the IDEs out there. Anyone who is 
interested in getting Emacs and Leo to work together are welcome to edit 
the page and contribute ideas. And of course your help/advice will be 
critical if this is going to get anywhere.

Right now I am still trying to get the big picture right: how do we 
interface with the outline structure in Emacs? Suppose we have one buffer 
corresponding to the body pane in Leo, this buffer will be constantly 
refreshed as we switch the current node in focus. Different node may work 
in different Emacs mode. Hopefully constantly switching editing mode is 
well tolerated by Emacs. 

Pymacs also seems dated. Emacs now has built-in support for transaction 
queues for communicating with async subprocesses.
 

> -**Important**:  I would be happy if some power emacs and Leo user 
> actually did all this.  It would ensure that Leo would achieve some 
> kind of immortality :-)  But I am not the one to do this.  I can't 
> bear to look at elisp code, much less write and debug it. 
>
> Edward 
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/leo-editor/-/m7nBy_iUTTQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to