From: Matthieu C. <cho...@gm...> - 2007-12-04 19:21:05
|
Hi, A simple way to fix that is to to call unsetProperty("mode"); after the call to resetCachedProperties(); in JEditBuffer.setMode(Mode mode) Does it do what you want ? Matthieu On Dec 4, 2007 5:08 PM, Kazutoshi Satoda <k_s...@f2...> wrote: > Feature request #1593543 "Save the editmode for Recent files" was > implemented in r10771. > https://sourceforge.net/support/tracker.php?aid=1593543 > > Unfortunately, I found some problems working with it. > > 1. > I changed my catalog file recently. But it is only applied to files > which are not in recent files. > > 2. > If I change the mode using Buffer Options dialog, it is reset to a mode > which was used when the file was last closed. This problem is related to > this bug. > https://sourceforge.net/support/tracker.php?aid=1811553 > > A workaround is setting mode and closing the buffer before saving. Then > the mode is stored in its recent entry. > > I think this is a big regression and should be fixed before releasing > jEdit 4.3pre12. > > A bit negative approach is, simply reverting r10771 (and r10887). I > found a comment in #1593543 from blueyed which say BufferLocal plugin > does the feature. Then the change in core seems unnecessary. > > I'll try to fix them, but I can't say it is possible soon. > > Does anyone have a good idea? > -- > k_satoda > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > |