more xedit
Alf Schlichting <[email protected]>
| Newsgroups | gmane.os.openbsd.x11 |
|---|---|
| Message-ID | <[email protected]> |
Hello!
Here are some more funny things in xedit.
1) When opening a non existing *.c file, typing <TAB> or <SPACE> at the
beginning of a line will not work (actually the cursor moves and immediatly
moves back if you try this on a slow machine).
But if you open the same file and immediatly type a <SPACE> character in,
you see
*** CHAR=: NIL is not a character
in the message window, after that everything works as expected (<TAB> etc.
work).
Opening an existing *.c file typing in a <SPACE>/<TAB> character at the
beginning of a line has "interesting" results, see for yourself;)
The syntax-highlighting and autoindention ala emacs is gone.
2) Typing <Strg>-s for "save-file" allways results in
Save: No changes need to be saved, Save again to override.
Repeating the key-sequence saves the file.
I just tested xedit under 3.6-RELEASE and everything works fine besides the
above mentioned error:
*** CHAR=: NIL is not a character
When typing a <SPACE> character as the first character at all in an empty
*.c-file.
For fun i copied over a 3.6-RELEASE /etc/X11/app-defaults/Xedit but it
did not help.
I then added:
Xedit*international: False
to my $HOME/.Xdefaults and everything works again. xedit even respects my
other settings from $HOME/.Xdefaults.
Well, i just found that it's still impossible to begin a new line outside of a
function in a *.c-file with <SPACE> or <TAB>. Looks like an error in the
autoindent mode.G
So i may suggest to set this globally in /usr/X11R6/lib/X11/app-defaults/Xedit.
Caveat:
From xc/programms/xedit/xedit.c
.....
String fallback_resources[] = {
"*international: True", /* set this globally for ALL widgets to avoid wiered crashes */
NULL
};
....
Alf
--- xc/programs/xedit/Xedit-xprint.ad.orig Sat Apr 2 19:52:54 2005
+++ xc/programs/xedit/Xedit-xprint.ad Sat Apr 2 19:54:10 2005
@@ -5,7 +5,7 @@
*enableBackups: True
*backupNameSuffix: ~
*changedBitmap: xlogo11
-*international: True
+*international: False
*hints:\
Use Control-S and Control-R to Search.\n\