Aucb.724 fa.editor-p utcsrgv!utzoo!decvax!ucbvax!C70:editor-people Wed Mar 17 11:05:21 1982 CRLF in Emacs >From BENSON@UTAH-20 Wed Mar 17 10:52:39 1982 I've rebound ^X^S so that it checks to see that the last character in the buffer is a linefeed. It gives me a warning and doesn't save it if it's not. If I really need to write a file without a linefeed on the end I use ^X^W. I seem to have stopped using all those programs that throw away the last line if it's not terminated with a linefeed, though. ------- [ Editor's note: In response to the flurry of messages on EOF handling, I added a similar feature to the Twenex Emacs at SCORE that requires confirmation when you try to save a file without a CRLF at the end. Such a site-specific change is easy to add to programmable editors, and is a very good reason for preferring them over editors that are not programmable. Also, note that Eric and I implemented slightly different user interfaces; Emacs provides a good laboratory for comparing user interfaces. /JQJ ] ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.