From: Shlomy R. <sre...@gm...> - 2009-09-30 14:22:42
|
There are a few things that can be done: 1. Please attach the 'activity.log' file in the jedit settings directory, it may shows some exceptions that cause this problem. 2. You can try with a new (fresh) settings directory, which contains ONLY the emacs bindings package, by running jEdit with the "-settings=..." option. If this runs fine, then you know it's something in your settings directory that causes the problem. Shlomy 2009/9/30 Gary Pajer <gar...@gm...>: > On Tue, Sep 29, 2009 at 8:07 PM, Gary Pajer <gar...@gm...> wrote: >> >> On Tue, Sep 29, 2009 at 7:47 PM, Eric Berry <el...@gm...> wrote: >>> >>> I got them to work for me by removing the space between print and ("in >>> emacs_binding.bsh"); >> >> >> I tried that, and your code below. still seems to choke on print(... >> with or without the import org.gjt... > > ... and don't forget that it works fine on my other WinXP machine. What > could be getting in the way? Could I have another competing version of some > library? Is there some way to debug this? >> >> >>> >>> as well as the space between source and '('. >>> >>> Try replacing the contents of the emacs_bindings.bsh with this: >>> [code] >>> /** >>> * Load Emacs bindings. You must copy this file to your >>> * ${user.home}/.jedit/startup directory >>> * >>> * $Id: emacs_bindings.bsh 5740 2006-03-16 15:32:04Z bmc $ >>> */ >>> >>> print("in emacs_bindings.bsh"); >>> >>> settings = jEdit.getSettingsDirectory(); >>> fileSep = System.getProperty ("file.separator"); >>> source(settings + >>> fileSep + >>> "macros" + >>> fileSep + >>> "Emacs" + >>> fileSep + >>> "Emacs_Set_Keybindings.bsh"); >>> emacsSetKeybindings(); >>> [/code] >>> >>> Also, be sure you've named the macros directory "Emacs". This script >>> references that directory exactly, so it'll break if the spelling and case >>> is incorrect. >>> >>> On Tue, Sep 29, 2009 at 4:22 PM, Gary Pajer <gar...@gm...> wrote: >>>> >>>> >>>> On Tue, Sep 29, 2009 at 3:01 PM, Alan Ezust <ala...@gm...> >>>> wrote: >>>>> >>>>> The "bsh" package has been moved to org.gjt.sp.jedit.bsh >>>>> so if you just import that package at the top, or fully specify the >>>>> package name, it should fix that script. >>>> >>>> Thanks, Alan, but ... >>>> I put >>>> import org.gjt.sp.jedit.bsh.*; >>>> >>>> at the top of emacs_bindings.bsh, but I get the same error with the >>>> print statement (thanks, Eric). (at least I think it's choking on the >>>> print) >>>> >>>>> >>>>> 2009/9/29 Gary Pajer <gar...@gm...> >>>>>> >>>>>> I'm trying out jEdit as a possible 21st Century replacement for XEmacs >>>>>> to write python code. By now my fingers are hard-wired with Emacs >>>>>> keybindings, so I installed Brian's Emacs Emulation Package on two different >>>>>> WinXP machines. On one it works just fine. On the other I get a BeanShell >>>>>> error when jEdit starts (text below). I've reinstalled jEdit and the Emacs >>>>>> Package, updated java, and rebooted, but I still get this error. I'm utterly >>>>>> java illiterate, but it does look like it's failing on the very first line >>>>>> of emacs_bindings.bsh, so I suspect some installation problem. My java is: >>>>>> Java(TM) SE Runtime Environment (build 1.6.0_15-b03) >>>>>> I first installed jEdit (4.3pre17) using the windows installer, and I >>>>>> also tried the .jar installer. Same result. >>>>>> >>>>>> Please help ?! >>>>>> -gap >>>>>> >>>>>> ------------------------------------------------------------ >>>>>> Sourced file: C:\Documents and >>>>>> Settings\Gary\.jedit\startup\emacs_bindings.bsh : Class: bsh.ClassIdentifier >>>>>> not found in namespace : at Line: 26 : in file: print : bsh .ClassIdentifier >>>>>> >>>>>> Called from method: print : at Line: 8 : in file: C:\Documents and >>>>>> Settings\Gary\.jedit\startup\emacs_bindings.bsh : print ( "in >>>>>> emacs_bindings.bsh" ) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHAmbiguousName.toClass(BSHAmbiguousName.java:74) >>>>>> at org.gjt.sp.jedit.bsh.BSHType.getType(BSHType.java:154) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:63) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHUnaryExpression.eval(BSHUnaryExpression.java:58) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:123) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:52) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHIfStatement.evaluateCondition(BSHIfStatement.java:63) >>>>>> at org.gjt.sp.jedit.bsh.BSHIfStatement.eval(BSHIfStatement.java:46) >>>>>> at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) >>>>>> at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) >>>>>> at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362) >>>>>> at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258) >>>>>> at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186) >>>>>> at org.gjt.sp.jedit.bsh.Name.invokeLocalMethod(Name.java:955) >>>>>> at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:801) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) >>>>>> at >>>>>> org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) >>>>>> at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644) >>>>>> at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:331) >>>>>> at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:279) >>>>>> at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:205) >>>>>> at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1030) >>>>>> at org.gjt.sp.jedit.jEdit.runStartupScripts(jEdit.java:3704) >>>>>> at org.gjt.sp.jedit.jEdit.main(jEdit.java:511) >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Come build with us! The BlackBerry® Developer Conference in SF, CA >>>>>> is the only developer event you need to attend this year. Jumpstart >>>>>> your >>>>>> developing skills, take BlackBerry mobile applications to market and >>>>>> stay >>>>>> ahead of the curve. Join us from November 9-12, 2009. Register >>>>>> now! >>>>>> http://p.sf.net/sfu/devconf >>>>>> -- >>>>>> ----------------------------------------------- >>>>>> jEdit Users' List >>>>>> jEd...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/jedit-users >>>>>> >>>>> >>>> >>> >>> >>> >>> -- >>> Learn from the past. Live in the present. Plan for the future. >>> 11101000 >>> http://www.townsfolkdesigns.com/blogs/elberry >> > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-users > > |