Re: Making Leo a package

2008-04-01 Thread Kayvan A. Sylvan
On Tue, Apr 01, 2008 at 09:04:48AM -0700, Edward K. Ream wrote: P.S. The docs say it is possible to set os.environ['DISTUTILS_DEBUG'] = 'any-non-empty-string' in order to enable debugging. In fact, setting os.environ is non-trivial. Isn't this just a matter of doing this in Linux at the

Re: Making Leo a package

2008-04-01 Thread Kayvan A. Sylvan
On Tue, Apr 01, 2008 at 08:34:20PM +0300, Ville M. Vainio wrote: Or if you are using IPython with 'sh' profile (ipython -p sh), you can do %env DISTUTILS_DEBUG=t After that, all ipython sessions have that environment variable automatically. Cool! That's a cross-platform suggestion, then,

@nosent file problem (was: Re: Making Leo a package)

2008-04-01 Thread Kayvan A. Sylvan
On Tue, Apr 01, 2008 at 09:14:56PM +0300, Ville M. Vainio wrote: They are stored in a pickleshare database that IPython uses for all persistent stuff. Explore the ~/_ipython/db directory. Observant reader may guess that it contains pickles ;-). If you want the contents of the database in a

Re: @nosent file problem (was: Re: Making Leo a package)

2008-04-01 Thread Kayvan A. Sylvan
On Tue, Apr 01, 2008 at 03:34:28PM -0700, Kayvan A. Sylvan wrote: This led me to try a test case: A simple file with a single node (H denotes the headline and B denotes the body below): H: @nosent foo B: Direct text in body pane. Aha! Changing the above file to this fixes the issue: H

Unit testing problem

2008-04-04 Thread Kayvan A. Sylvan
Hi fellow Leo enthusiasts, I am playing with unit testing some of my python code. I created two buttons: test and run-all-tests. The code is as follows: === test === import leoTest leoTest.doTests(c, all=False) === end test === === run-all-tests === import leoTest leoTest.doTests(c, all=True)

Re: Unit testing problem

2008-04-05 Thread Kayvan A. Sylvan
On Sat, Apr 05, 2008 at 08:08:10AM -0700, Edward K. Ream wrote: The fixes to this, and several other unit testing problems are on the trunk. Verified. Works perfectly. Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Leo 4.4.8 final is on the trunk. Pls test

2008-04-06 Thread Kayvan A. Sylvan
On Sun, Apr 06, 2008 at 05:46:37PM +0300, Ville M. Vainio wrote: On Sun, Apr 6, 2008 at 4:08 PM, Edward K. Ream [EMAIL PROTECTED] wrote: I wonder whether pygtk installation broke this... Should I hold 4.4.8 final until you resolve this? No. It was PyGtk installation that broke it

Re: A more philosophical question

2008-04-10 Thread Kayvan A. Sylvan
playing, ad infinitum. I get all the power of IPython (tab completion of class elements, etc.) alongside my Leo environment. I want to publicly thank Edward and Ville for their work on integrating Leo and IPython. ILeo makes programming in python very fun! -- Kayvan A. Sylvan | Proud

Bug with unreferenced sections and File-Exit

2008-04-11 Thread Kayvan A. Sylvan
: undefined section and saved: leo_file.leo and in the console window, you see undefined section: ... However, the application is still running. The only way to really quit is to click No to the Save dialog. ---Kayvan -- Kayvan A. Sylvan | Proud husband

Re: Eureka!!! Unified nodes

2008-04-14 Thread Kayvan A. Sylvan
On Sun, Apr 13, 2008 at 06:31:37AM -0700, Edward K. Ream wrote: It appears that Leo will, relatively soon, move to the unified-node world. Compatibility with existing code and scripts should be no big deal. Indeed, unified nodes will contain .v and .t ivars, inited in the ctor as follows:

Bicycle Repair Man integration with Leo

2008-04-15 Thread Kayvan A. Sylvan
Hmmm... The link here: http://c2.com/cgi-bin/wiki?BicycleRepairMan and the bicyclerepairman documentation seem to give some hints about how to do this: How is integration with an editor done? The files in the ide-integration folder shows how. Basically BicycleRepairMan needs the location of the

Re: Vim branch - Testers needed

2008-04-17 Thread Kayvan A. Sylvan
on the Code tab, then click on the List Branches link and you will see a list of all current branches. Clicking on one takes you to a summary page with instructions for getting a copy of the branch. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc

Re: Get comments from @doc sections in derived file created via @root?

2008-04-18 Thread Kayvan A. Sylvan
On Fri, Apr 18, 2008 at 04:14:48PM -0500, Edward K. Ream wrote: The fix is on the bzr trunk. There were several bugs: apparently few people are using @root nodes. Most people start with @thin, and that is what I recommend for you too. It depends on the way that the @root using document is

Re: Get comments from @doc sections in derived file created via @root?

2008-04-18 Thread Kayvan A. Sylvan
On Fri, Apr 18, 2008 at 04:14:48PM -0500, Edward K. Ream wrote: The fix is on the bzr trunk. There were several bugs: apparently few people are using @root nodes. Most people start with @thin, and that is what I recommend for you too. I tested the new @root handling code, and it indeed

Re: Get comments from @doc sections in derived file created via @root?

2008-04-19 Thread Kayvan A. Sylvan
On Sat, Apr 19, 2008 at 07:51:46AM -0500, Edward K. Ream wrote: The trunk contains what I hope is a fix for the stylesheet-path problem. It works for me, but conceivably there could be permutations of rst3 options that would break. We shall see. Thank you! This fixes a long-standing

Problem with using ILeo with multiple files

2008-04-20 Thread Kayvan A. Sylvan
I was working with Leo + IPython (latest from bzr) and pushing expressions to IPython using Alt-i and I start getting these messages: AttributeError: Commands instance has no attribute 'frame' exception executing command Traceback (most recent call last): File

Re: Python Refactoring integration

2008-04-23 Thread Kayvan A. Sylvan
On Tue, Apr 22, 2008 at 07:47:56AM -0700, Edward K. Ream wrote: The following is just thinking out loud. Anyone (including Kayvan) should feel free to ignore it :-) Somehow this project has got my attention. I like puzzles, and besides, why should Kayvan have all the fun :-) The more, the

Re: Time to retire Leo 3.x?

2008-04-26 Thread Kayvan A. Sylvan
case. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan, | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | my beautiful Queen.| Robin Gregory (2/28/92) --~--~-~--~~~---~--~~ You

Re: Printing a .leo file / export to html

2008-05-05 Thread Kayvan A. Sylvan
On Mon, May 05, 2008 at 03:15:49PM +0300, Ville M. Vainio wrote: I don't have plugins menu automatically, but opening leoSettings.leo brought it up... Hmmm... So you must have a bad @enabled-plugins in your myLeoSettings Compare against the one in LeoSettings and set it up accordingly.

Re: Sax-graph branch has merged with the trunk

2008-05-06 Thread Kayvan A. Sylvan
On Tue, May 06, 2008 at 01:11:46PM -0500, Edward K. Ream wrote: On Tue, May 6, 2008 at 12:00 PM, Edward K. Ream [EMAIL PROTECTED] wrote: All unit tests pass on XP. I'll run unit tests on Linux soon. At present 9 gui-related tests fail on my Ubuntu box. This is likely a problem with my

Re: How are fonts now on Linux in the trunk?

2008-05-06 Thread Kayvan A. Sylvan
On Tue, May 06, 2008 at 10:30:48AM -0700, Edward K. Ream wrote: Has anyone had trouble with unreadable fonts on Linux with the brand new trunk code? Not I. When I went to check the trunk on my Ubuntu machine I found that the fonts were unreadable. However, they are also unreadable on my

Re: Unexpected behavior from @thin nodes.

2008-05-06 Thread Kayvan A. Sylvan
On Tue, May 06, 2008 at 08:39:50AM -0700, dswheeler wrote: 2) I'm currently using leo on an existing project and trying to import existing files into leo for refactoring. The file in question is named template.txt and contains html markup and macro expansion placeholders. I used

menu already exists: Recent Files

2008-05-10 Thread Kayvan A. Sylvan
I'm seeing new log message menu already exists: Recent Files upon startup now. I assume this is normal/expected now (with the Recent Files changes)? Best regards, ---Kayvan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: menu already exists: Recent Files

2008-05-11 Thread Kayvan A. Sylvan
On Sun, May 11, 2008 at 11:01:58AM -0500, Terry Brown wrote: The forth problem is the one Kayvan reported, I think that may go away with the reversion for problem 1. It's fixed now. By the way, my myLeoSettings.leo does not contain any @menu node, it's very minimalistic, containing only a

Re: sorting and bizare bzr

2008-05-13 Thread Kayvan A. Sylvan
On Tue, May 13, 2008 at 06:10:24PM -0500, Edward K. Ream wrote: On Tue, May 13, 2008 at 2:43 PM, Terry Brown [EMAIL PROTECTED] wrote: sax-graph changes for sort-siblings had broken priority sorting in cleo, a trivial fix is applied to the trunk now. Thanks, Terry. I got it. I

Re: sorting and bizare bzr

2008-05-13 Thread Kayvan A. Sylvan
On Tue, May 13, 2008 at 07:15:24PM -0500, Terry Brown wrote: Seems odd. Here's the top of `bar log` on my copy of the trunk: revno: 405 Look at https://code.launchpad.net/leo-editor/ Trunk is at revision 399.

Re: tkhtml in leo demo

2008-05-14 Thread Kayvan A. Sylvan
my first programs in High School, by submitting punch card decks of Fortran progarms which would be run in batches nightly and then the output would be given to me the next day. You had a typewriter and a paper punch? Such luxury! :-) -- Kayvan A. Sylvan | Proud husband of | Father

Re: leo-as-an-editor branch merged with trunk

2008-05-20 Thread Kayvan A. Sylvan
On Tue, May 20, 2008 at 03:11:16PM -0500, Kent Tenney wrote: Getting there, now Leo starts, clicking on a menu produces the following message in an Error in background function window I can also reproduce this. Best regards, ---Kayvan

Re: Cleo icons won't work on linux

2008-05-21 Thread Kayvan A. Sylvan
On Wed, May 21, 2008 at 09:13:35AM -0500, Terry Brown wrote: ImageTk is a separate package in Ubuntu, I think Leo requires both PIL (package python-imaging) and the package python-imaging-tk. Yes. I have Leo working perfectly for me on Ubuntu 8.04 and needed to install python-imaging-tk Best

Re: does leo support large project

2008-05-27 Thread Kayvan A. Sylvan
On Tue, May 27, 2008 at 03:08:51PM -0500, Kent Tenney wrote: As such, adding sentinels or any type of workflow specific to Leo will not gain acceptance. I disagree, sort of. Most of the time, when I slurp a big bunch of files into LEO for study and annotation, I am doing it only for myself.

Re: Example code in LEO: New Sudoku puzzle solver

2008-05-27 Thread Kayvan A. Sylvan
On Tue, May 27, 2008 at 02:52:33PM -0500, Edward K. Ream wrote: On Tue, May 27, 2008 at 12:56 PM, Kayvan A. Sylvan [EMAIL PROTECTED] My sudoku solver uses only one clever technique: what I call row or column conflicts. The idea is that an assignment of one value to a cell may make

Problem with SilverCity on Fedora 9

2008-06-08 Thread Kayvan A. Sylvan
... -- Ran 11 tests in 0.079s OK I don't know how I can start to debug this. I can probably reproduce it in a VMWare fresh install of Fedora 9 as well. Any ideas for how to proceed? ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan

Re: Can Not Load Aspell?

2008-06-08 Thread Kayvan A. Sylvan
The aspell settings are only needed for Windows. for Unix-like operating systems, it should just auto-detect that aspell is installed, I believe. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To

Latest LEO from bzr: Can not expand/collapse nodes

2008-06-10 Thread Kayvan A. Sylvan
Clicking on any node in the headings pane that has child nodes produces an error like this one: Error: 10 type 'exceptions.TypeError' Exception in Tk callback Function: function tag_bindCallback at 0x02001AB0 (type: type 'function') Args: (Tkinter.Event instance at 0x013F4C88,) Event type:

Re: Is it time to require Python 2.4 ?

2008-06-23 Thread Kayvan A. Sylvan
On Mon, Jun 23, 2008 at 08:06:01AM -0700, Edward K. Ream wrote: I am thinking it may be time to require Python 2.4. This would give Leo access to decorators and other good features. Does anyone have any objections to this? Having recently upgraded my last remaining ancient Fedora Core

Help-About Leo traceback

2008-06-28 Thread Kayvan A. Sylvan
Help - About Leo throws this exception (latest bzr checkout): exception executing command Traceback (most recent call last): File c:\leo\leo\core\leoCommands.py, line 311, in doCommand val = command(event) File c:\leo\leo\core\leoCommands.py, line 5617, in about

Re: g.pr created on the trunk

2008-07-11 Thread Kayvan A. Sylvan
On Thu, Jul 10, 2008 at 11:15:49AM -0700, Edward K. Ream wrote: In the meantime, g.pr seems to work well. Please use g.pr instead of print from now on. BTW, g.pr has a newline keyword, which if set to False will emulate print with a trailing comma. Is it possible to do something like

Getting Leo running on Fedora 10

2008-12-03 Thread Kayvan A. Sylvan
have a very short script (~/bin/leo): #!/bin/sh exec python ~/src/leo/leo/core/runLeo.py ${1+$@} So I can now run leo filename or leo --gui=qt I will probably add more to this thread as I run into more issues and solutions. Best regards, ---Kayvan -- Kayvan A. Sylvan

Interesting: study-shows-digg-freezes-innovation-among-its-users

2008-12-15 Thread Kayvan A. Sylvan
- Forwarded message from Bill Stewart bill.stew...@pobox.com - http://io9.com/358492/study-shows-digg-freezes-innovation-among-its-users By Annalee Newitz, 7:40 AM on Wed Feb 20 2008, 2,485 views Transparently-shared ideas, like those that circulate on popular social networks such as

Re: Interesting: study-shows-digg-freezes-innovation-among-its-users

2009-01-05 Thread Kayvan A. Sylvan
Find scripts did not prevent e from inventing script buttons. Creativity has nothing to do with being in a group, and everything to do with solving juicy problems. I have no opinion about the role of a group in finding such problems. The social aspects of creativity are well worth

Re: @enabled-plugins in leoDocs.leo

2009-01-14 Thread Kayvan A. Sylvan
, -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan, | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | my beautiful Queen.| Robin Gregory (2/28/92) --~--~-~--~~~---~--~~ You received

Re: @enabled-plugins in leoDocs.leo

2009-01-14 Thread Kayvan A. Sylvan
On Wed, Jan 14, 2009 at 06:07:08PM -0600, Terry Brown wrote: On Wed, 14 Jan 2009 16:01:51 -0800 Kayvan A. Sylvan kay...@sylvan.com wrote: How about this simplification? Each @enabled-plugins node adds to (does not replace!!) the current plugin list. Each @enabled-plugins

Re: Gone for a few days

2009-04-14 Thread Kayvan A. Sylvan
On Tue, Apr 14, 2009 at 10:13:04AM -0700, Edward K. Ream wrote: I'll be away from Leo for a few more days at least, in all probability. I haven't forgotten you, and will return when I can. Some important things have been happening to me. Good things, but I have no energy for Leo just