[net.emacs] Interesting thing

chris%umcp-cs@UDel-Relay@sri-unix.UUCP (08/17/83)

From:  Chris Torek <chris%umcp-cs@UDel-Relay>

I don't know if this is really a bug, but it's certainly an ``it
shouldn't do that!'':  Try setting files-should-end-with-newline
to 1, marking a few characters in a buffer while being sure that
the region does not end with a newline, and then run

	ESC-x filter-region (through command) cat

Poof, up comes the magic question

	Kill buffer does not end with a newline, should I add one?

Annoying, to say the least.  But it doesn't show up often....

				- Chris
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris.umcp-cs@UDel-Relay

jr@bbncd@sri-unix.UUCP (08/17/83)

From:  John Robinson <jr@bbncd>

BBN's PEN editor, when faced with this situation, appends the newline
silently, and then REMOVES one (if it's there) that comes back from the
filter at EOF.  This is very useful: for example, to modify a
modification date in a file, one marks the old date (which may be in
the midst of a line) and filters the region through date.  Voila, the
new date appears in the old place.  Perhaps emacs could add this
capability to filter-region (I'm not an emacs source hacker).

/jr

mark@umcp-cs.UUCP (08/19/83)

Of course, emacs does have a filter-region command.  Was this
mail a low key joke of some kind?
-- 
spoken:	mark weiser
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!mark
CSNet:	mark@umcp-cs
ARPA:	mark.umcp-cs@UDel-Relay