unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* require-final-newline
@ 2005-03-05 19:53 Luc Teirlinck
  2005-03-06 19:10 ` require-final-newline Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Luc Teirlinck @ 2005-03-05 19:53 UTC (permalink / raw)


This is related with an issue discussed in another thread
(require-hard-newlines to use newline), but is more general.

In Emacs 21.3, Text mode did not override the default value of
require-final-newline.  In current CVS, it does via
mode-require-final-newline.  Is there a reason for that?  I can see a
reason for some specific derived modes, but these derived modes could
use mode-require-final-newline themselves, instead of letting the
parent mode do it for them.

Also, nil _is_ a valid value for mode-require-final-newline.  But the
docstring is not very explicit about that and you can not set it to
nil via Custom.  If you set it to nil outside Custom, Custom will
falsely describe the value as `ask', which is a bug.  Would it be good
to have the docstring mention this explicitly and allow it to be set
to nil via Custom with proper warning of the involved dangers (which
would fix the bug)?

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-08  2:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05 19:53 require-final-newline Luc Teirlinck
2005-03-06 19:10 ` require-final-newline Richard Stallman
2005-03-07  1:29   ` require-final-newline Luc Teirlinck
2005-03-07  1:41     ` require-final-newline Stefan Monnier
2005-03-08  2:51     ` require-final-newline Richard Stallman
2005-03-07  1:41   ` require-final-newline Luc Teirlinck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).