Editing Wordwise files
Derek Fountain
derekfountain at yahoo.co.uk
Thu May 1 12:37:54 BST 2003
> I was maybe to brief to be clear. All correct, except "used to use" isn't
> entirely correct here*. I therefore don't want to convert the source
> files. They are currently accessed through three different items of
> display software, which were written many years ago assuming the CR line
> ending. So I don't want to convert the CR to LF. It would be tedious to
> pre- or post-process the files with a "tr" script. I need an editor which
> will load and save files with the CR as the line ending. Kwrite will do
> this, but refuses to be locked into CR mode. This is the problem
A conversion would be easy; finding an editor which handles such trickery is
not. XEmacs under Linux appears to do what you want - it just accepts a 0x0a
or 0x0d as end of line, and displays it as such. Insert a line, and it
appears to follow the rest of the file - i.e. it looks at the other end of
line characters and uses 0x0a or 0x0d as appropriate.
I think. :o}
I tried an experiment involving the Windows version of XEmacs and the Linux
version, both accessing the same file, one after the other. When I left the
file in a state where it had some 0x0a line endings, and some 0x0d line
endings, the Linux version appeared to silently convert them all to 0x0d. I'm
not sure why or how; I have a feeling it made some decision based on the
first line ending seen in the file. I could be wrong.
Basically, try XEmacs, but watch carefully what it does. M-x hexl-mode will be
of use to you when you figure out what it means. :o)
BTW, you gave me a nice warm feeling about the BBC machines. A BBC micro was
the first computer I ever laid hands on. I didn't realise they were still
around and proving useful. :o)
--
"...our desktop is falling behind stability-wise and feature wise to KDE
...when I went to Mexico in December to the facility where we launched gnome,
they had all switched to KDE3." - Miguel de Icaza, March 2003
___________________________________________________
This message is from the kde mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list