help-gnu-emacs
[Top][All Lists]
Advanced

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

problem with require-final-newline


From: Charles Jamieson
Subject: problem with require-final-newline
Date: Thu, 13 May 2004 17:43:48 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

  I have the line

        (setq-default require-final-newline t)

in my .emacs file. When I save a .txt file without a final newline, I am asked whether to add a newline. When I enter C-h v require-final-newline, I am informed this variable is set to query.

However, when I save a .cpp or.h file without a terminating new line, the newline is silently added. In fact when I enter C-h v require-final-newline, I am informed its value is set to t.

    Why is this variable not being set consistently across file types?

-charles



reply via email to

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