[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] hooks interface issues

From: Ralph Corderoy
Subject: Re: [Nmh-workers] hooks interface issues
Date: Tue, 25 Feb 2014 12:02:59 +0000

Hi David,

> > When you say "the file was not new-line terminated", which file?  If
> > it was your .mh_profile ... I guess that's the fault of m_getfld().
> Good catch.  Fixed.

My quick skim of
with the whole source at
suggests that buf will have a \n at the end of it for Unix-text-file
lines but not for the last line of an ITS text file.  Whether that may
cause problems for any of the users of buf, I've no idea.

Some fix was clearly needed to avoid storing EOF in buf but kre's right,
we shouldn't be supporting Emacs's brain-damaged insistence of putting
ITS text files on Unix.  Too many things break with them, despite GNU's
efforts, and at best we should just complain about an unterminated line
and stop.

POSIX says a text file is zero or more lines, each line terminated by a
newline.  Emacs and Stallman lost.

Any Emacs user that doesn't use `(setq require-final-newline t)' in
their .emacs or similar and has to suffer because of it has made their
bed...  :-)  The number of wasted hours I've seen over the years due to
Emacs's stupidity in this respect and how each user has to discover it,
sometimes more than once.

Cheers, Ralph.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]