Re: mangled leo files

2008-03-05 Thread Terry Brown
On Wed, 5 Mar 2008 00:03:54 -0800 (PST) Lon [EMAIL PROTECTED] wrote: The second case is just a slight variation with the node v7 moved down to be a child of v5. There are no clones created. The saved file, which appears to have cloned nodes when reopened, is here:

Re: Failed unit tests on Linux

2008-03-05 Thread Terry Brown
On Wed, 5 Mar 2008 08:26:04 -0800 (PST) Edward K. Ream [EMAIL PROTECTED] wrote: I suspect recent Python/Tkinter bugs are causing the X crash. Really, this kind of crash should never arise with normal Python bugs. Oddly enough I have a similar issue. I'm getting seg. faults and sometimes

Re: Failed unit tests on Linux

2008-03-06 Thread Terry Brown
On Thu, 6 Mar 2008 08:14:05 -0800 (PST) Edward K. Ream [EMAIL PROTECTED] wrote: ...to repeat, 2.5.2 + Tk 8.5.1 is working fine for me, so I don't really have any problem to fix. Exactly how did you do the install. Did you do a source install? Did you install Tk 8.5.1 first? First I

Re: Terry Brown's changes now in the trunk

2008-03-23 Thread Terry Brown
On Sat, 22 Mar 2008 14:52:20 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: Exception _tkinter.TclError: 'can\'t unset PY_VAR18: no such variable' in bound method TkPickleVar.__del__ of cleo.TkPickleVar instance at 0x02636 418 ignored Fixed in the leo.tb branch. Terry, please fix

Re: Terry Brown's changes now in the trunk

2008-03-24 Thread Terry Brown
On Mon, 24 Mar 2008 06:16:20 -0500 Kent Tenney [EMAIL PROTECTED] wrote: Terry, please fix this directly in the trunk. Thanks. Not sure how I'd do that. Merge the trunk into (my local copy of) my branch and then push it back? I can do that? My understanding is that you merge

Re: Terry Brown's changes now in the trunk

2008-03-25 Thread Terry Brown
Ok - finally got the fix for the ignored Tk variable exception at startup on to the trunk - log message didn't make so much sense because of the order I did things in, will avoid that hiccup next time. It was a very trivial change :-) Cheers -Terry On Mon, 24 Mar 2008 10:30:11 -0500 Edward K.

Re: Terry Brown's changes now in the trunk

2008-03-26 Thread Terry Brown
On Wed, 26 Mar 2008 05:28:03 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: However, I got the following when I chose find-next-todo: type 'exceptions.AttributeError': 'tuple' object has no attribute 'has_key' Hmm, I've tidied the code so that that function uses cleo's attribute getting

plugins' menu entries missing

2008-03-26 Thread Terry Brown
Just noticed some plugins (rst3, graphed) which place entries in some of the standard menus aren't placing those entries there now. Alt-X write-restructured-text works, so I think the plugin's installed no problem (it's in the plugins menu too), but its normal Write restructured text entry in

Re: Making Leo a package

2008-04-01 Thread Terry Brown
On Tue, 1 Apr 2008 08:14:01 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: def finalize_options (self): # This method (and its pliant slaves, like 'finalize_unix()', # 'finalize_other()', and 'select_scheme()') is where the default Hmm, a formatted paragraph of narrative text

Re: cleo loses its settings at depth 7

2008-04-02 Thread Terry Brown
On Wed, 2 Apr 2008 01:47:44 -0700 (PDT) Nik [EMAIL PROTECTED] wrote: I have the following strange problem with cleo plugin. My cleo settings on nodes at depth 7 are not permenant. Strange indeed, I'll look into it, thanks. Cheers -Terry

Re: cleo feature or bug

2008-04-03 Thread Terry Brown
On Thu, 3 Apr 2008 02:01:29 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: When right clicking on the icon box the headline is not selected if cleo is in use. I'll change that so that it does, seeing I always use cleo I didn't know the behavior was different without it :) if you right click

Re: Making Leo a package

2008-04-03 Thread Terry Brown
On Thu, 3 Apr 2008 08:47:17 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: Actually, I should create an official branch. I just realized that what I have done (create a local branch of the trunk) is dangerous: if I forget and push that branch we will not be happy. Not sure if you've

Re: bzr branches everywhere :-)

2008-04-03 Thread Terry Brown
On Thu, 3 Apr 2008 15:31:17 -0700 (PDT) thyrsus [EMAIL PROTECTED] wrote: The only trouble I've had is in the LeoPyRef.leo file. I use a local non-vcs copy of LeoPyRef.leo and LeoPluginsRef.leo, just using them as a way to edit the @thin files anyway. bzr status unknown:

Re: cleo feature or bug

2008-04-03 Thread Terry Brown
On Thu, 3 Apr 2008 07:29:30 -0500 Terry Brown [EMAIL PROTECTED] wrote: if you right click on cleos icon when the headline is not selected, it is not removed. That's true for icons in general, right click removal only works when the node's selected. But I think it makes sense

Re: cleo feature or bug

2008-04-03 Thread Terry Brown
On Thu, 3 Apr 2008 18:29:44 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: But storing positions always makes me nervous. It is not usually a good idea. Edward, should I `bzr send` you the change? Please commit your changes to the trunk. Thanks. Um, ok, I pushed the position

Re: cleo feature or bug

2008-04-05 Thread Terry Brown
A comment on the term icon. Really to be clear we need to say user-icon or status-icon. The status icon being the content/clone/dirty/marked indicator that Leo's had for much longer than it's had user-icons. The rclickicon hook currently only runs off the status-icon, I don't think any hooks

bug: @auto won't read file in newly created .leo file

2008-04-05 Thread Terry Brown
Leo's running, so I create a new outline with File-New Then I save as in a location where foo.py exists. The I create a node '@auto foo.py' Then I use File-Read/Write-Read @auto (with that node selected) Leo says it can't read it. I close the leo file, re-open in from the recent files menu

Re: using rst3 plugin

2008-04-05 Thread Terry Brown
On Sat, 05 Apr 2008 21:59:13 -0500 John Griessen [EMAIL PROTECTED] wrote: I'm generating rest based html pages OK, and am looking at css details, so I have a coding style question from a newbie leo user. How will it work if I create nodes for the .css files and give them the @auto

Re: Headline user-icons

2008-04-07 Thread Terry Brown
On Mon, 7 Apr 2008 06:11:22 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: So maybe bobjack's high level container thing should have status.marked, status.dirty, etc. attributes/methods, and while the Tk interface uses an icon to show those, another interface might not. Sorry I'm

Re: Cleo icons won't work on linux

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 03:21:12 -0700 (PDT) marko [EMAIL PROTECTED] wrote: Running leo under python 2.4 solves the problem. Probably Python Imaging Library (PIL) and the ImageTk module aren't installed from 2.5's point of view, but are available to 2.4. Cheers -Terry

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 06:31:37 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: DAG's are used in 3-D cad formats. This is interesting stuff. Blender is a very cool 3D rendering system, here's a page describing its outliner: http://wiki.blender.org/index.php/Manual/The_Outliner And...

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 05:20:54 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: - Unified nodes are *precisely* the nodes contemplated in the graph world. /me grins Recall that a key part in my rejection of the graph world was a realization that iterators in any graph world are much more

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 13:18:04 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: P.S. As a matter of symmetry, a unified node could contain a list of the node's parents. This is not necessary: it is analogous to double-linking a linked list. Unnecessary, but a big speed boost (at the cost

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 16:44:04 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: So, how do you iterate through a set of clones? You could search the whole tree of course, any maybe iterating through clones is uncommon enough that this would be ok. Or not? No, it's *much* easier than

Re: Eureka!!! Unified nodes

2008-04-14 Thread Terry Brown
On Mon, 14 Apr 2008 08:09:00 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: 6. It looks like the new code will work unchanged in both the DAG and graph worlds. This is great. I was never really a fan of the previous great graph aha that graphs could be represented in trees, anything can be

Re: Eureka!!! Unified nodes

2008-04-14 Thread Terry Brown
On Mon, 14 Apr 2008 01:17:37 -0700 (PDT) derwisch [EMAIL PROTECTED] wrote: What about unknownAttributes of vnodes and tnodes? What will the distinction in future be? I think the way to retain the context distinctions you get from vnodes will be through position dependent rendering of nodes.

Re: Eureka!!! Unified nodes

2008-04-14 Thread Terry Brown
On Mon, 14 Apr 2008 10:01:16 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: So the (non-urgent) issue I see is how could cyclic graphs be included in a Leo outline that was mostly DAG, in some way that Leo knows that from this node and beyond cycles may occur. I said previously that

Re: Eureka!!! Unified nodes

2008-04-14 Thread Terry Brown
On Mon, 14 Apr 2008 10:04:30 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: I think the way to retain the context distinctions you get from vnodes will be through position dependent rendering of nodes. You might need to inspect p.stack to work out the context the node is displayed in. I

Re: bzr revision 214

2008-04-15 Thread Terry Brown
On Tue, 15 Apr 2008 09:43:42 +0300 Ville M. Vainio [EMAIL PROTECTED] wrote: You should never push no another branch - you should always do merge instead. Push is essentially a copy operation that makes the target branch the same as the source branch. I learned that lesson. But, and this is

Re: vnodes, tnodes, and unknownAttributes

2008-04-15 Thread Terry Brown
On Tue, 15 Apr 2008 10:20:18 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Clone marks Now is the time to mention another piece of the puzzle. In order to set the clone mark, (unified) nodes must contain another ivar. Provocatively, let us call this ivar n.vUa. (It will probably be

Re: bzr merge experiences

2008-04-20 Thread Terry Brown
On Sun, 20 Apr 2008 15:04:04 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: Creating the sax-graph branch was interesting. There was quite a bit of manual work involved. I've found the visual merging utility kdiff3 quite useful. If you have a bzr conflict which generates foo.THIS,

Re: bzr repo's changes, how to create branches, checkouts, commit?

2008-04-22 Thread Terry Brown
On Mon, 21 Apr 2008 19:07:56 -0500 John Griessen [EMAIL PROTECTED] wrote: Until newbies know enough about bzr, they need to do bzr branch URL-of-central-repos local-dir-for-branch Bear in mind though that that creates the need to push back to the launchpad branches. As I demonstrated a

Re: bzr repo's leo development workflows

2008-04-22 Thread Terry Brown
On Tue, 22 Apr 2008 10:08:27 -0500 John Griessen [EMAIL PROTECTED] wrote: 4. Decide to go ahead with a merge at a time agreed by developers. cd trunk bzr pull bzr merge ../leo-jg (resolve any conflicts) bzr commit -m leo-jg changed install docs bzr

Re: Sax-Graph branch - Cleo attributes support?

2008-04-22 Thread Terry Brown
On Tue, 22 Apr 2008 10:11:30 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Apparently our emails crossed on the net. Your statements are exactly as I understand the situation, and exactly as I intend the situation to be. Criss-cross emails, like criss-cross merges, only less troublesome :)

Re: Sax-Graph branch - Cleo attributes support?

2008-04-22 Thread Terry Brown
On Tue, 22 Apr 2008 14:40:57 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Given that you can arrive at the same node by different paths, I think a fully populated stack gives plugins a valuable tool for determining context, so I don't think it's just an internal implementation detail.

Re: @auto should set language?

2008-04-24 Thread Terry Brown
On Thu, 24 Apr 2008 06:05:12 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: I assume you are asking about .css files specifically, and not generally about any unknown file type for which there is no @auto importer. Yes and no, I was thinking that for any file name/extension that can be mapped

recent file list demangling

2008-04-24 Thread Terry Brown
[This has nothing to do with the recent recent files list bug] A long time irritation for me has been tkinter's dumb decision to force all paths returned by the file selection dialog into canonical form, so when I navigate to /home/tbrown/Desktop/some/thing.leo it gets changed to

Re: recent file list demangling

2008-04-24 Thread Terry Brown
On Thu, 24 Apr 2008 11:49:40 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: What do you think? This could be a nice addition to Leo. I have clicked the Todo button in my email client, which as previously (long ago) described copies the email to a folder where leo will find it and suck it into

Re: Leo: a self-sustaining system

2008-04-24 Thread Terry Brown
On Thu, 24 Apr 2008 10:30:25 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: It seems to me that Leo fits this description perfectly, and possibly even extends it. What do you think? I'm not sure - PyPy is a python interpreter which can create itself from its own source code. So I guess

Re: recent file list demangling

2008-04-24 Thread Terry Brown
On Thu, 24 Apr 2008 11:49:40 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: I wonder if there is a way to generalize this script. The new @ifhostname setting would allow you to specify the munges for any machine. Oh. I have it: put a representation of the patterns in an @data node, say

Re: Possible recent file bug

2008-04-24 Thread Terry Brown
Ha, just upgraded to trunk and my recent files list truncated from ca. 15 to 3 entries. So I want to blame the recent recent files bug fix, whereas others will want to blame my recent files demangling script. I can't see how it can have been responsible. How are files removed from the recent

Re: Possible recent file bug

2008-04-24 Thread Terry Brown
On Thu, 24 Apr 2008 20:21:11 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: See leoPy.leo: Code--Core classes...--@thin leoConfig.py--class configClass--Reading and writing .leoRecentFiles.txt (g.app.config) I read through that without working out when entries are removed from the list, I'm

Re: Possible recent file bug

2008-04-24 Thread Terry Brown
And is there also an inconsistency between the paths used by readRecentFiles and writeRecentFilesFile, one uses a passed in parameter localConfigFile and the other uses the path to the current file (plus they share two paths in common)? Ironically I chose to look at this rather than an older

Re: Time to retire Leo 3.x?

2008-04-26 Thread Terry Brown
On Sat, 26 Apr 2008 05:56:18 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: In the unlikely event that 5 years from now someone wants to convert old derived files, they can download Leo 4.4.x to do the conversion. XSLT also makes XML to XML conversions very easy. Cheers -Terry

Re: parents problems

2008-04-28 Thread Terry Brown
On Mon, 28 Apr 2008 08:18:28 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: Indeed, no iterator in Leo uses the .parents list. Not even the clone iterator? I guess not, if .parents is a set, i.e. unordered. Although I'm sure the unposted long posting on why getting rid of the parents

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

2008-05-06 Thread Terry Brown
On Tue, 6 May 2008 10:30:48 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: Has anyone had trouble with unreadable fonts on Linux with the brand new trunk code? I haven't seen any problems with sax-graph branched as of this morning, I'm using 8.04, but Tk 8.5 rather than the default 8.4.

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

2008-05-06 Thread Terry Brown
On Tue, 6 May 2008 13:13:06 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: I haven't seen any problems with sax-graph branched as of this morning, I'm using 8.04, but Tk 8.5 rather than the default 8.4. Did you rebuild Python from sources? Just installing Tk 8.5 has no effect on my box.

myLeoSettings.leo read twice?

2008-05-09 Thread Terry Brown
Seems to me that if you run leo like this: cd /home/tbrown python /home/tbrown/path/path/leo/src/leo.py Leo says load dir: /mnt/usr2/bkup/tb_usr1/home/tbrown/path/path/leo/src global config dir: /mnt/usr2/bkup/tb_usr1/home/tbrown/path/path/leo/config home dir: /home/tbrown reading

Re: myLeoSettings.leo read twice?

2008-05-09 Thread Terry Brown
On Fri, 9 May 2008 12:22:43 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Leo will read myLeoSettings.leo twice if that's the file you are actually opening. It's not worth fixing. It's not the file I'm actually opening, it's $HOME/myLeoSettings.leo and $PWD/myLeoSettings.leo (using $PWD as

tweaking @auto

2008-05-09 Thread Terry Brown
Re @auto - I find I prefer __init__ defined in the body text of the class node, rather than its own node. Because the docs. for ivars belong (according to epydoc, and I agree) in the class docstring, not the __init__ docstring, and it's easier to keep them in sync. if they're in the same

Re: recetFilesStatic crash

2008-05-10 Thread Terry Brown
On Sat, 10 May 2008 04:39:03 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: File C:\bobjack\mod_rclick\leo\src\leoMenu.py, line 1611, in deleteRecentFil esMenuItems len(self.c.recentFilesStatic)+len(self.c.recentFiles)) AttributeError: Commands instance has no attribute

Re: recetFilesStatic crash

2008-05-10 Thread Terry Brown
Terry Brown [EMAIL PROTECTED] wrote: On Sat, 10 May 2008 04:39:03 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: File C:\bobjack\mod_rclick\leo\src\leoMenu.py, line 1611, in deleteRecentFil esMenuItems len(self.c.recentFilesStatic)+len(self.c.recentFiles)) AttributeError

Re: menu already exists: Recent Files

2008-05-11 Thread Terry Brown
On Sun, 11 May 2008 02:31:51 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: Terry Other problems with Recent Files mods. The first problem is that if people have customized @menus in myLeoSettings then the changes to @menu Recent Files will not be seen. Hmm, given that, perhaps the

Re: menu already exists: Recent Files

2008-05-11 Thread Terry Brown
r399 I just upped some fixes for the repeated menu, sort clears list, and myLeoSettings hides menus problems with the recent recent files changes. r400 made leoSettings.leo a fixedWindow fixed 'just a 0 entry' glitch in recent file list Cheers -Terry

Re: menu already exists: Recent Files

2008-05-11 Thread Terry Brown
On Sun, 11 May 2008 11:26:32 -0700 Kayvan A. Sylvan [EMAIL PROTECTED] 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. Thanks. Actually it wasn't related to what bobjack reported, it was related to me

r401 after-auto and initinclass

2008-05-11 Thread Terry Brown
r401 I added an after-auto hook, expected that to be hard but turns out it's trivial :-) Also a plugin initinclass.py which moves the __init__ into the class def'n after an @auto file loads so it's easier to keep ivar docs in the class docstring in sync with what __init__ actually does, and you

Re: menu already exists: Recent Files

2008-05-12 Thread Terry Brown
On Sun, 11 May 2008 11:53:39 -0500 Terry Brown [EMAIL PROTECTED] wrote: r400 made leoSettings.leo a fixedWindow Yeah, so, I guess that was dumb, that makes all windows fixed. It would be nice if leoSettings.leo could be fixed, but I've undone the change for now - was wondering why tree

Re: menu already exists: Recent Files

2008-05-12 Thread Terry Brown
On Mon, 12 May 2008 09:53:45 -0500 Terry Brown [EMAIL PROTECTED] wrote: Also I think there's still a bug in the new recent files stuff with multiple commanders... maybe operations that empty and reload the list (sort, clean) need to force a save so the new commanders don't see an empty list

Re: menu already exists: Recent Files

2008-05-12 Thread Terry Brown
On Mon, 12 May 2008 02:03:01 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: Perhaps you could keep that and use the other method as a backup if recentFilesStatic is empty. Or better still if recentFilesStatic is empty just print a message explaining what is going on and telling users to

Re: menu already exists: Recent File

2008-05-13 Thread Terry Brown
On Tue, 13 May 2008 13:35:25 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, May 12, 2008 at 10:25 AM, Terry Brown [EMAIL PROTECTED] wrote: I think a general solution to menu customization without complete override would be better, although hard. I would like to discourage

sorting and bizare bzr

2008-05-13 Thread Terry Brown
sax-graph changes for sort-siblings had broken priority sorting in cleo, a trivial fix is applied to the trunk now. Bizarre part was that launchpad seemed to have forgotten my public key, no big deal but just a heads up in case it happens to anyone else. Cheers -Terry

Re: sorting and bizare bzr

2008-05-13 Thread Terry Brown
On Tue, 13 May 2008 14:43:23 -0500 Terry Brown [EMAIL PROTECTED] wrote: Bizarre part was that launchpad seemed to have forgotten my public key, no big deal but just a heads up in case it happens to anyone else. Eww, just got a note from Launchpad explaining the key deletion, seems the random

Re: sorting and bizare bzr

2008-05-13 Thread Terry Brown
Seems odd. Here's the top of `bar log` on my copy of the trunk: revno: 405 committer: Terry Brown [EMAIL PROTECTED] branch nick: trunk timestamp: Tue 2008-05-13 14:39:21 -0500 message: fixed sibling sort / cleo breakage, sort tuples

Re: sorting and bizare bzr

2008-05-13 Thread Terry Brown
On Tue, 13 May 2008 19:15:24 -0500 Terry Brown [EMAIL PROTECTED] wrote: `bar log` Ha ha. `bzr log` --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo

revisions lost from trunk on launchpad - or not

2008-05-14 Thread Terry Brown
As Kayvan has been pointing out for some time now ;-) it seems revisions 400-405 vanished of the trunk...? Thoughts, anyone? Oh - wait a minute. I just did: mv trunk trunk404 bzr branch lp:leo-editor trunk Branched 399 revision(s). but when I inspect the log (`bar log |less`) it looks like

Re: tkhtml in leo demo

2008-05-14 Thread Terry Brown
On Wed, 14 May 2008 03:16:06 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: The fly in the ointment is that I can't get this to work on linux. Could any of the linux gurus out there offer any advice? I get TclError: couldn't load file

Re: tkhtml in leo demo

2008-05-14 Thread Terry Brown
On Wed, 14 May 2008 03:16:06 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: The fly in the ointment is that I can't get this to work on linux. Could any of the linux gurus out there offer any advice? Ok, I compiled the current tkhtml tarball (alpha 16?) against Tk 8.5 and it seg. faulted while

Re: tkhtml in leo demo

2008-05-14 Thread Terry Brown
On Wed, 14 May 2008 09:37:11 -0700 (PDT) bobjack [EMAIL PROTECTED] wrote: Thanks for your help Terry, I'm a bit out of my depth here. All sorts of possibilities, yes, but I'm not sure how useful it will be if people have to compile the .so for their system before they use it. Can it be

Re: @menu question

2008-05-14 Thread Terry Brown
to handle trees of bindings. I think Terry Brown may want to do something about this. I tried to discourage him, but he persisted :-) :-) My thoughts were aimed at the @menu settings, not all settings in general... of course now I'm wondering if they are in fact generalizable... something sort

Re: @menu question

2008-05-14 Thread Terry Brown
On Wed, 14 May 2008 17:24:19 -0500 Terry Brown [EMAIL PROTECTED] wrote: I'm hacking on a branch too. I've just pushed a branch 'menuat' which adds a @menuat command that can be used in @settings in myLeoSettings to modify the menus created by @menus in leoSettings. BE WARNED: this branch

Re: Antialiased fonts in Tk Tkinter in Ubuntu 8.04

2008-05-20 Thread Terry Brown
Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, May 12, 2008 at 12:28 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 6:29 PM, Terry Brown [EMAIL PROTECTED] wrote: I don't advise anyone to try and get anti-aliased fonts working in Linux (Ubuntu) by compiling

Re: Cleo icons won't work on linux

2008-05-21 Thread Terry Brown
On Wed, 21 May 2008 05:54:22 -0700 (PDT) hairui [EMAIL PROTECTED] wrote: One important reason is that I doubt the problem just occurs on Ubuntu 8.04 or some other similar platform. ImageTk is a separate package in Ubuntu, I think Leo requires both PIL (package python-imaging) and the package

Re: Cleo icons won't work on linux

2008-05-21 Thread Terry Brown
On Wed, 21 May 2008 23:21:44 +1000 Mark Berndt [EMAIL PROTECTED] wrote: I had a problem like this in a debian based distro. The bottom line was that the image library used for the cleo icons was installed for python 2.4 and not python 2.5. Reverting to python 2.4 solved the problem, bit

Re: Antialiased fonts in Tk Tkinter in Ubuntu 8.04

2008-05-21 Thread Terry Brown
On Wed, 21 May 2008 08:10:56 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Packages which ubuntu thinks depend on tk8.4, like PIL, ImageTk, tkcvs etc., you will need to build from source, but others should work ok. This is a nightmare. Googling download ImageTk brings me to

Re: Antialiased fonts in Tk Tkinter in Ubuntu 8.04

2008-05-21 Thread Terry Brown
On Wed, 21 May 2008 17:22:51 +0300 Ville M. Vainio [EMAIL PROTECTED] wrote: - I have no idea where the links files are. But since Python works it should allow Ubuntu to restart even if ubuntu starts using the newly-installed python. And indeed, restarting Ubuntu went well. I'm still

Re: Tkinter Menu

2008-05-26 Thread Terry Brown
There's a development branch of leo 'menuat' which has this feature. You use @settings entries (in your myLeoSettings file) like @menuat /commands/rectangles @menu Line commands @item center-line @item right-justify-line And this will add a 'Line commands' sub-menu to the

@font settings

2008-05-29 Thread Terry Brown
Has the ability to override @font settings changed? I get: reading settings in /home/tbrown/Desktop/Package/leo/bzr/leo.repo/trunk/leo/config/leoSettings.leo reading settings in /home/tbrown/leoSettings.leo reading settings in /home/tbrown/myLeoSettings.leo reading settings in

trunk broken?

2008-06-03 Thread Terry Brown
trunk-test PYTHONPATH=$PYTHONPATH:/home/tbrown/Desktop/Package/leo/bzr/leo.repo/trunk-test python launchLeo.py Traceback (most recent call last): File launchLeo.py, line 6, in module leo.core.runLeo.run() File

right click menu issue?

2008-06-03 Thread Terry Brown
Cleo's context menu does this: Error: 1 type 'exceptions.NameError' Exception in Tk callback Function: function bindCallback at 0xabf1d4c (type: type 'function') Args: (Tkinter.Event instance at 0xabfcf6c,) Event type: ButtonPress (type num: 4) Traceback (innermost last): File

Re: right click menu issue?

2008-06-03 Thread Terry Brown
On Tue, 3 Jun 2008 13:23:45 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: There appear to be big problems with rClick.py. It segfaults on Linux when I right click in the body pane. Even when disabled, there is a crash in setDefaultContextMenus. More work is needed. Thanks, disabled it and

plugin_signon wierdness...

2008-06-03 Thread Terry Brown
I can't work this out... @enabled-plugins found in myLeoSettings.leo Traceback (most recent call last): File /media/usr1/usr1/home/tbrown/.gnome-desktop/Package/leo/bzr/leo.repo/trunk-test/leo/core/leoPlugins.py, line 221, in loadOnePlugin init_result = result.init() File

Re: New FAQ entry re bzr

2008-06-03 Thread Terry Brown
I think push is inherently dangerous - you should only ever need to use it once on a launch pad branch, to create the branch. After that I'd use a bound checkout, so that when you commit bzr checks for changes and refuses to do anything until they're merged. bzr init-repo leo.repo cd leo.repo

Re: plugin_signon wierdness...

2008-06-04 Thread Terry Brown
On Wed, 4 Jun 2008 06:09:42 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: File [snip]/leo/core/leoGlobals.py, line 2728, in plugin_signon m = g.Bunch(__name__='',__version__='') AttributeError: 'NoneType' object has no attribute 'Bunch' can not load enabled plugin: initinclass

Re: bzr problem: back down to rev 479

2008-06-04 Thread Terry Brown
On Wed, 4 Jun 2008 05:58:51 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: On Tue, Jun 3, 2008 at 2:14 PM, TL [EMAIL PROTECTED] wrote: I pushed my changes to the trunk but it looks like I was only at rev 479 but the trunk was at 481. Edward, do you wan't to restore your changes or

Re: Short-term plans

2008-06-04 Thread Terry Brown
On Wed, 4 Jun 2008 09:20:32 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: What choice do I have? Is that a rhetorical question, or a request for enhancement suggestions? OpenGL-Leo ? :-) Cheers -Terry --~--~-~--~~~---~--~~ You received this message

Re: Short-term plans

2008-06-04 Thread Terry Brown
On Wed, 4 Jun 2008 09:36:26 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: OpenGL-Leo ? :-) :-) I've lost track of the number of gui's I've written for Leo. For me, at least, it has little appeal. I consider this a kind of maintanance-mode item. It certainly does not create a new

Re: Make a redraw happen

2008-06-04 Thread Terry Brown
p.s. More careful observation - no redraw if I click on the icon box, but I do get a redraw if I click on the headline. This code's being triggered by select1 hook, which runs if either position's clicked...? Cheers -Terry On Wed, 4 Jun 2008 12:46:16 -0500 Terry Brown [EMAIL PROTECTED] wrote

Re: Make a redraw happen - bug report

2008-06-04 Thread Terry Brown
when you click the icon box. Cheers -Terry On Wed, 4 Jun 2008 12:57:29 -0500 Terry Brown [EMAIL PROTECTED] wrote: p.s. More careful observation - no redraw if I click on the icon box, but I do get a redraw if I click on the headline. This code's being triggered by select1 hook, which runs

Re: Tkinter Menu

2008-06-04 Thread Terry Brown
I've just pushed a more polished version of my @menuat @settings directive to the menuat branch. The basic syntax is @settings @menuat /path/to/menu before|after|copy|cut|append [subtree|clipboard] @menu MyNewMenu @item Item 1 @item Item 2 Which would search the system

Re: myLeoSettings.leo read twice?

2008-06-05 Thread Terry Brown
On Tue, 3 Jun 2008 06:12:42 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: On May 9, 1:06 pm, Terry Brown [EMAIL PROTECTED] wrote: Leo will read myLeoSettings.leo twice if that's the file you are actually opening. It's not worth fixing. It's not the file I'm actually

Re: Make a redraw happen - bug report

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 09:22:14 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: The future is now, provided g.newDrawing is True. Ok, I'll update cleo then. So it looks like we may be looking for a call to x.bind (or x.bind2) where x != c. Just to be sure, we is you? I.e. this is a event

at_folder plugin

2008-06-05 Thread Terry Brown
Does anyone use the at_folder plugin? I have a major re-working of it, so different I feel it replaces it rather than updates it, and I'm not sure whether to replace it or add it as a new plugin. The new version marks directories /foo/ and enters them (i.e. adds child nodes for their contents)

problem moving nodes around

2008-06-05 Thread Terry Brown
I have Dog Horse /Cat/ Mouse Cat.aux Cat.rrd Mite I want to select /Cat/, run a button script, and get this Dog Horse Cat /Cat/ Cat.aux Cat.rrd Mouse Mite I run this script from a button: bn = p.headString().strip('/') others = [i.copy() for i in p.siblings_iter() if

Re: myLeoSettings.leo read twice?

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 10:17:03 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: oh, wait, looks like it's reading the same .leoRecentFiles.txt twice... probably not that important, but if you want to squash that while you're there... The same kind of fix is on the trunk now, r502. Please

show plugin description as text / rst / html

2008-06-05 Thread Terry Brown
I'd hoped to fix this myself, but it's sufficiently broken to need pointing out. plugins_menu.py attempts: import leo.core.leo_to_html as leo_to_html find . -name *html* yields: ./leo_to_html.xsl so whatever leo_to_html was, it's gone away. plugins_menu.py appears to only be using

Re: show plugin description as text / rst / html

2008-06-05 Thread Terry Brown
the trunk. Cheers -Terry (glaring balefully at `find`). On Thu, 5 Jun 2008 12:25:25 -0500 Terry Brown [EMAIL PROTECTED] wrote: I'd hoped to fix this myself, but it's sufficiently broken to need pointing out. plugins_menu.py attempts: import leo.core.leo_to_html as leo_to_html find

Re: problem moving nodes around

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 13:21:06 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: others = [i.copy() for i in p.siblings_iter() if i.headString().startswith(bn+'.')] This is wrong: positions become invalid after changing the outline. Sort of what I thought, but how do you get around that?

Re: problem moving nodes around

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 13:27:28 -0500 Terry Brown [EMAIL PROTECTED] wrote: I'll try re-arranging the algorithm so things are changed from the end of lists first, but that's a bit arcane. ok, this version works: bn = p.headString().strip('/') n = p.insertAfter() c.setHeadString(n, bn

Re: problem moving nodes around

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 13:42:04 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: uses this fact. It creates a target node, whose position (the root) does not change, then traverses the tree moving nodes under the target. You could do the same thing: create a target node as the root, traverse the

Re: problem moving nodes around

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 13:45:30 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Is that the best way to address these things? It seems to add complexity beyond the problem domain. I think the complexity is, in fact, part of the problem domain. You simply must be aware of whether positions

  1   2   3   4   5   6   7   8   9   10   >