jEdit Community - Resources for users of the jEdit Text Editor
Archives
Short (DOS) filenames in Windows using 4.2 final
Submitted by Anonymous on Sunday, 19 September, 2004 - 15:33
I've recently started to use 4.2 final on Win2k. I've used 4.1 before. Now I noticed that the JEdit window title (and Recent files list, Save as dialog, ...) shows the "old" 8.3 characters style filenames, rather than the full Win2k name. It's a bit annoying.

Could not find any settings affecting this behavior. Any idea?
Can't get ContextHelp working on 4.2
Submitted by Anonymous on Sunday, 19 September, 2004 - 17:44
Hello,

I instaled 4.2 final and the ContextHelp plugin. Copied help file (php), checked beanshell script.
Whenever i try to do a keyword search, it always shows an error as follows:

java.lang.NullPointerException

at contexthelp.ContextHelpPlugin.runScript(Unknown Source)

at contexthelp.ContextHelpPlugin.runContextHelp(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at bsh.Reflect.invokeOnMethod(Reflect.java:149)

at bsh.Reflect.invokeStaticMethod(Reflect.java:100)

at bsh.Name.invokeMethod(Name.java:872)

at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)

at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)

at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)

at bsh.BSHBlock.evalBlock(BSHBlock.java:130)

at bsh.BSHBlock.eval(BSHBlock.java:80)

at bsh.BshMethod.invokeImpl(BshMethod.java:349)

at bsh.BshMethod.invoke(BshMethod.java:246)

at bsh.BshMethod.invoke(BshMethod.java:171)

at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)

at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)

at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:195)

at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:297)

at org.gjt.sp.jedit.View.processKeyEvent(View.java:669)

at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4957)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Thanks for your help
Search a word from one EditPane in a second EditPane of a view
Submitted by AndreJRenard on Sunday, 19 September, 2004 - 19:07
I have a view with two EditPanes of two different files. My cursor is on one word of one EditPane. I would like to write a macro to search for that word in the second EditPane.

Selecting the word in the first window is easy but how can I direct the search in the second window? For the time being I only found a way to search in the second file in the SAME EditPane that the first one:

import javax.swing.border.*;

textArea.selectWord();
word = textArea.getSelectedText() ;
SearchAndReplace.setSearchString(word);

SearchAndReplace.setAutoWrapAround(false);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.find(view,buffer.getNext(),0);

Also I would like to have the found word sitting at the top of the window. How can I do that?

Thanks for hints.

Andre
Console stopped working...
Submitted by Anonymous on Monday, 20 September, 2004 - 12:09
Hi everybody and thanks for this wonderfull editor.

I have been using Jedit for a year now, and suddently for no obvious reason the console pluggin stopped workking. What I mean by that is that when trying to run any command that is not builtin, nothing happens anymore, just the turning animation on the left and when I press the stop button, it says that no process is currently running!
I was using 4.2pre15, I installed 4.2final, reinstalled the console plugin, still the same.
NT4.0, java build 1.4.2_04-b05.

Any suggestion?

Thanks a lot,

Seb.
Highlighting only between brackets?
Submitted by Anonymous on Monday, 20 September, 2004 - 13:10
Hello,
I wonder if it is possible to restrict literal highlighting to
space between brackets.

I tried to solve my problem with reg-expressions but it
did not work.

example:
In the following lines I want to apply the literal
highlighting (everything between ' and ' should be highlighted)
within the brackets:
options = ('option1 ', 'option2 ', 'option3 ', parameter)
matrix = [ 'sting1' ; 'string2' ]
But I do NOT want to have the highlighting applied in lines like this:
result = a'*b/c'

Does anybody has an idea how to solve this problem?
Is there a simple way to apply literal highlighting only
within brackets? To nest span rules?

Thanks a lot
jEdit maxing processor
Submitted by Sako on Monday, 20 September, 2004 - 14:10
When I start jEdit, it loads up, but before it allows anything to be done, it starts maxing the processor and I need to use TaskManager to kill it. I am using java version 1.4, jEdit 4.2 final on a Win2000 system with all updates. Any ideas why this is happening?

Thank you.
jEdit takes ages to load, 4+ minutes when before it was seconds
Submitted by Anonymous on Monday, 20 September, 2004 - 16:03
Hi,

[suse linux 9.0 kernel 2.4.21-243-default i686]

I had jedit 4.1 final and recently it begun taking ages to load jEdit. Time that used to be a few seconds is now 4+ minutes !!!

Also, if i have another program(e.g. cervisia) specify jedit as it's text editor, selecting edit on a file would result in a huge delay before that file appeared in jedit. This huge delay is also in the order of 4+ minutes !!!

I upgraded my java runtime (to 1.5.0) and my jedit to 4.2final, but i still have this problem.


Basically, while it's loading i just get the splash screen up with the jEdit logo and version, and that stays in the foreground until jEdit is fully loaded. (which is a bit of a pain when it takes this long as it can be in the way of other apps).


I use the same apps all the time so nothing stands out in relation to running other apps. Everything else runs fine as far as I can tell.


I would be really grateful if anybody esle out there who may have had this problem could help me with it, or if anybody has any ideas on possibilities.

Also, if i can provide anything that could help in diagnosing this problem just let me know.

Thanks in advance,

dave
Problem while trying to close the editor.
Submitted by Anonymous on Monday, 20 September, 2004 - 17:01
Hello all, I have been using JEdit for past 1 year. Its the coolest editor. Recently i am having trouble trying to close the Editor. I have noticed this problem since 4.2pre13 to 4.2final . I am currently using JEdit 4.2final on Windows XP Pro, JDK 1.4.2_05-b04. Dose any one else have similar problem? can some one tell me what's causing this problem or how can i avoid it. I know i can kill this process but it looses all the history of recently opened files. and i will like jedit to open all the previously opened buffers. -yogesh

--Activity.log--
[debug] EditBus: EditorExitRequested[source=org.gjt.sp.jedit.View[active]]
[error] EditBus: Exception while sending message on EditBus:
[error] EditBus: java.lang.NegativeArraySizeException
[error] EditBus:  at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1950)
[error] EditBus:  at ise.plugin.bmp.BufferLocalPlugin.handleMessage(BufferLocalPlugin.java:262)
[error] EditBus:  at org.gjt.sp.jedit.EditBus.send(EditBus.java:148)
[error] EditBus:  at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2467)
[error] EditBus:  at org.gjt.sp.jedit.jEdit.closeView(jEdit.java:3790)
[error] EditBus:  at org.gjt.sp.jedit.jEdit.closeView(jEdit.java:2224)
[error] EditBus:  at org.gjt.sp.jedit.View$WindowHandler.windowClosing(View.java:1731)
[error] EditBus:  at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:291)
[error] EditBus:  at java.awt.Window.processWindowEvent(Window.java:1121)
[error] EditBus:  at javax.swing.JFrame.processWindowEvent(JFrame.java:266)
[error] EditBus:  at java.awt.Window.processEvent(Window.java:1079)
[error] EditBus:  at java.awt.Component.dispatchEventImpl(Component.java:3615)
[error] EditBus:  at java.awt.Container.dispatchEventImpl(Container.java:1627)
[error] EditBus:  at java.awt.Window.dispatchEventImpl(Window.java:1606)
[error] EditBus:  at java.awt.Component.dispatchEvent(Component.java:3477)
[error] EditBus:  at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
[error] EditBus:  at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
[error] EditBus:  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
[error] EditBus:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
[error] EditBus:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
[error] EditBus:  at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
[debug] SessionManager: saveCurrentSessionProperty: currentSession=default
[message] HistoryModel: Saving history
[message] BufferHistory: Saving C:\Documents and Settings\ybkani\.jedit\#recent.xml#save#
[message] KillRing: Saving killring.xml
[debug] SessionsPlugin: autosaving current session...
[debug] Session: save: name=default
[debug] Session: saveXML: name=default filename=C:\Documents and Settings\ybkani\.jedit\sessions\default.xml
[debug] Session: Writing PROP: mode
[debug] Session: Writing PROP: basedir
[debug] SessionManager: saveCurrentSessionProperty: currentSession=default
[message] BufferHistory: Saving C:\Documents and Settings\ybkani\.jedit\#recent.xml#save#
[message] KillRing: Saving killring.xml
[debug] SessionManager: session saved: default
[message] PerspectiveManager: Saving perspective.xml

JEdit 4.2 on Win2K wants to open everything under the sun
Submitted by macbsd on Monday, 20 September, 2004 - 22:53
Installed jEdit 4.2 on a Windows 2000 machine, and I'm pretty happy with it. The problem is that it wants to open ton's of stuff it shouldn't. The other day I double-clicked on a jpeg file, and it opened in jEdit. I have the default type for ".jpg" files to open with irfanview, but double-clicking still opens with jEdit. The right-click contextual menu has "Open with jEdit" <- in BOLD first "Open" <- in plain text second. I right-click, select "open with..." navigate to the proper app, Check "use this Always for this type file" Select OK. But the next time I double click, it opens in jEdit. Whats up? - MacBSD
narrow to fold improvement
Submitted by VoY on Tuesday, 21 September, 2004 - 11:53
I really like jEdit's ability to narrow my view to certain level of indentation/folding. However I find this feature rather incomplete. When eg. designing a long form in HTML, you often have around 10 levels of indentation (imagine a table with few more tables in it [I know - tables for layout are evil :-)] and perhaps a javascript code in one of the table cells and you get the picture). This makes editing and navigating the code pretty difficult - especially if you use whitespace's plugin feature called "Remove trailing spaces". Every time you hit an empty line then, jEdit will jump to the begining of that line, leaving you with a whole screen of empty tabs and no code. You then have to grab your mouse and scroll the textarea using horizontal scrollbar. Now if the narrowing feature had an option to hide the leading tabs, it would improve the code readability dramatically.

I RTFM hard, but came to the conclusion, that this is currently not implemented in jEdit. In case I missed something, please tell me. Appart from this little detail, jEdit is really cool and I evangelise it among all my friends .-)
Adding a new shell to Console?
Submitted by Anonymous on Tuesday, 21 September, 2004 - 16:27
I would like to use Cygwin via the Console plugin. I gather that I would have to add it as a new shell (along with the default "System" and "BeanShell" shells). Unfortunately, unless I missed something, the help files only seem to describe how to add a new shell programatically for some plugin that you're theoretically creating.

I'm not creating a new plugin. Is there a way to add a new shell just through some menu option or something? I haven't been able to find one.
Compiling
Submitted by Anonymous on Tuesday, 21 September, 2004 - 16:43
If I understand compiling correctly, you have to make a Commando thing inside of the Console plugin. This seems overly complicated for what I want to do.

Really, I just want to be able to be able to associate some keystroke or button or whatever with an arbitrary shell command, which automatically can take the buffer's filename (or parts thereof) as parameters. For example, in UltraEdit (which is what I've been using, up until this experiment with jEdit), I have some keystrokes set up to do the following:

c89 %F -Wversion3 -Wsystype="guardian" -Werrors=10 -Wsyntax -Wextensions -Wverbose

And that "%F" in there is automatically replaced by the filename of the buffer. So, with just a simple set of keystrokes, I can invoke my chosen operation on the current buffer's file, using the options that I already know I want, and the output of the operation just pops up automatically.

Not only is this faster and easier than going through some popup GUI dialog generated by some Commando script, but also you don't have to go through the hassle of writing the Commando script in the first place.

Is there a way to do something like this in jEdit?

By the way, I'm not intending to badmouth Commando - it seems like it will be very useful in some situations. It's just that in this situation, it seems like overkill for no benefit.
Getting rid of built-in Commandos from the list?
Submitted by Anonymous on Tuesday, 21 September, 2004 - 16:47
Is there a way to get rid of the built-in Commandos from the list displayed at the bottom of Plugins/Console? I don't care about a whole bunch of them, so from my point of view, they're just clutter.

Thanks.
Hex mode
Submitted by Anonymous on Tuesday, 21 September, 2004 - 17:44
I know that there's a hex plugin. But it just doesn't cut it. All it seems to do is allow you to load a file so that its contents are displayed in hex.

You shouldn't have to load a file, as the plugin makes you do - you should be able to toggle the display of any buffer back and forth from normal mode to hex mode, with just a simple built-in menu option and/or hotkey.

You should be able to edit the file; the plugin doesn't seem to allow you to. You should be able to edit the file both via the left-side hex display and via the right-side ASCII display.
jEdit windows appear blank
Submitted by Anonymous on Tuesday, 21 September, 2004 - 18:09
After I started jEdit the first time it appeared to have hung. All windows were blank - but then I noticed that my hard disk activity led was flsahing - Java seems to be very slow on my computer.

Nothing (much) wrong with that, but then I went and changed jEdit Appearance to something else than the default (can't remember what), did a restart of the program as instructed, but now all other windows remain blank (a sort of a light gray color) no matter how long I wait.

I suspect this is because of the Appearance. Where can I cahnge it back, since the Global Options dialog isn't showing correctly either?
Function parameters suggestion plugin (usual box with current param. bold)
Submitted by Anonymous on Tuesday, 21 September, 2004 - 19:16
Hello,

I'd like to know if there is someone developing (or planning to develop) such a plugin. If there is, i'd be glad to help. Otherwise, i could start developing the plugin myself, but it would be the first for me and i'm not a frequent java programmer, so i prefer the first case Eye-wink
In case i would begin developing it, what are the suggestions of you jEdit experts? What other plugins should i depend on?
From what other plugin should i get my ideas for the development?

Thank you
Console's macro functions in languages other than BeanShell?
Submitted by Anonymous on Tuesday, 21 September, 2004 - 19:28
I can get Console's macro functions (such as runInSystemShell) to work in BeanShell scripts, but not in Ruby scripts (via the SuperScript plugin). Does anyone know how?

Thanks.
Write Mode to treat period as a charchter?
Submitted by Anonymous on Tuesday, 21 September, 2004 - 21:29
I have a custom mode that I use. In this mode, a period is treated as a character. I would like to act as if abc.def were treated as a word when I double click to hilight or alt-. ctl-b etc.

ie.

[a-zA-Z0-9_\.]
Java Console Plugin please support stdin.
Submitted by Anonymous on Wednesday, 22 September, 2004 - 03:32
thanks!
jEdit and Zope External Editor
Submitted by Anonymous on Wednesday, 22 September, 2004 - 06:28
Hi,

I'm trying to use jEdit with the Zope External Editor. However, even with the -wait option, jEdit seems to detach itself from the controlling process. Does anyone have any hints about how to get this working? Thanks. I'm running jEdit 4.2final on WinXP.
User login
Browse archives
« September 2004 »
MoTuWeThFrSaSu
 
11
23
25
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   108249
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309