From: Egmont K. <eg...@gm...> - 2011-12-19 08:17:12
|
Hi Charles, This is a very good point. I was hit by the 100 limit quite often, I myself set it to 1000. I'd love to see a bigger default. cheers, egmont On Mon, Dec 19, 2011 at 02:04, Charles J. Tabony <Tab...@au...>wrote: > Hello fellow JOEers! (JOEys?) > > I've been using unlimited undo for years now with no problems. > Occasionally I do something on a system that doesn't have my ~/.joerc, > which is where I specify "-undo_keep 0". I'll start editing something, > then decide I want to back out a bunch of changes I've made only to > find, to my horror, that I've hit the end of the undo buffer! > > For this reason, I would like to request that the undo limit be made > much larger, if not unlimited, by default. Since this change would > affect everyone that doesn't have their own .j{oe,macs,pico,star}rc, I > would like to solicit comments from other users. Here are some questions: > > If you have enabled unlimited undo, have you ever had problems with it? > > Do you have any good reasons why the undo limit should not be raised? I > know the concern would be memory usage, but I suspect that most users > run JOE on systems with plenty of memory, and those running JOE on > systems with very constrained memory are likely editing small files. > > I just now read what Emacs and Vim do. Vim is like JOE in that it > specifies how many undo records will be kept, except that its default > "undolevels" is 1000 on Unix, VMS, Win32, and OS/2, and 100 otherwise, > whereas JOE's default limit is 100 on all systems. Emacs expresses its > limit in terms of bytes, and its default limit is 80,000. Perhaps a > byte limit would be better for JOE, since that means it could keep many > more small edits without blowing out memory when someone makes a few > huge edits. > > If you limit the number of bytes, then one question is, what do you do > when a single undo record exceeds that limit. Vim does not limit the > size of each undo record. Emacs, by default, limits the size of the > last undo record to 12,000,000, and warns if the last record was thrown > away because it exceeded the limit. I think that JOE should always keep > at least one record, no matter what the size. > > The next question would be what the limit should be. I suppose the > default should be something that will prevent JOE from crashing on small > systems, but then I'm right back where I started, since I would want to > set it to something in the gigabytes. What do you think? > > Thanks, > Charles J. Tabony > > > ------------------------------------------------------------------------------ > Learn Windows Azure Live! Tuesday, Dec 13, 2011 > Microsoft is holding a special Learn Windows Azure training event for > developers. It will provide a great way to learn Windows Azure and what it > provides. You can attend the event by watching it streamed LIVE online. > Learn more at http://p.sf.net/sfu/ms-windowsazure > _______________________________________________ > Joe-editor-general mailing list > Joe...@li... > https://lists.sourceforge.net/lists/listinfo/joe-editor-general > |