Berkeley CSUA MOTD:Entry 39772
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2005/9/20-21 [Computer/SW/Editors/Emacs] UID:39772 Activity:kinda low
9/20    Is there a way to tell Emacs not to append an LF at the end of a C file
        if the last line doesn't end with an LF?  Thanks.
        \- i dont undersand exactly what you mean [append when?] but emacs
           can certainly do anything in this area with the approprite hook
           (which should already exist for what youa re trying to do) calling
           an appropriate function (which you may have to write). if what
           want to do is reasonable, it is probably already solved. who are
           you?
           \_ Say I have a 7-byte file foo.c like this:
                'F' 'O' 'O' <LF> 'B' 'A' 'R'
              i.e. the second line doesn't end with <LF>.
           \_ Found it: (setq require-final-newline nil).  Thanks.  -- OP