Ar an triú lá déag de mí na Nollaig, scríobh Uwe Brauer:
>> What character is inserted, when `soft newlines' are
used for
>> filling paragraphs
Aidan> ?\n
But that is CR LF in linux?
No, that’s \012 (LINE FEED) under Unix, and emacs, in general.
If XEmacs encounters a file where the line-ending convention is CF LF, it
transforms that sequence to LF when reading the file into a buffer, and
transforms LF to CR LF when writing it out again. This is most noticeable on
Windows NT, Windows 95, and the other Win32 platforms, but it’s also
normally true on Mac OS and Unix. (There are configure options to turn this
off, though. And, yes, there is code to handle LF as the line-ending
convention and do the analogous thing.)
(Yes, this can fuck up mightily when encountering things that are not text
files but seem at first glance to be so.)
>> and what character is used, when `hard newlines' are
inserted
>> via use-hard-newlines?
Aidan> ?\n (that is, the same character)
Aidan> The difference is a text property, `hard' is added to the
Aidan> character when use-hard-newlines is t. What do you want to
Aidan> do?
Ok now I am really confused:
The whole issue has to do with wikipedia. There is a wikipedia-mode,
which I am currently try to extend. Wikipedia is in a way like tex
with respect to line breaks. `soft newlines' in paragraphs as inserted
by filling functions are ignored. Now if you use xemacs as an external
editor for those wikipedia articles, most lines a very long since the
internal editor does not break them. Thats why the author of
wikipedia-mode recommends to use longlines.el which handles this
issue and inserts `hard newlines'.
What I am not sure about is whether this is really needed or whether
it would be fine to use `soft newlines' and filling for long
paragraphs.
That should be fine if Wikipedia is like TeX in this.
Note that differentiating “hard” and “soft” newlines only makes sense if
`use-hard-newlines' is t. If it isn’t, all newlines are hard to XEmacs,
though, of course, not to Wikipedia.
I try to discuss this with the guys from wikipedia but I realize that
I
don't really understand what the difference between a soft and hard
newline is.
There isn’t one in pure text encoding. It’s a layout concept.
--
I AM IN JAIL AND ALLOWED SEND ONLY ONE CABLE SINCE WAS ARRESTED WHILE
MEASURING FIFTEEN FOOT WALL OUTSIDE PALACE AND HAVE JUST FINISHED COUNTING
THIRTY EIGHT THOUSAND FIVE HUNDERED TWENTY TWO NAMES WHOS WHO IN MIDEAST.