[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cool and Useful LISP for the .emacs file
From: |
lawrence mitchell |
Subject: |
Re: Cool and Useful LISP for the .emacs file |
Date: |
Fri, 07 Nov 2003 18:37:28 +0000 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 |
Reiner Steib wrote:
[...]
> | (setq require-final-newline 'query)
> Hm, it works, but maybe it should be "ask", see `files.el'.
Whilst the defcustom form for REQUIRE-FINAL-NEWLINE has 'ask in
it, note the docstring:
| Non-nil but not t says ask user whether to add a newline when
| there isn't one. nil means don't add newlines.
Note also this code from BASIC-SAVE-BUFFER:
| (or (eq require-final-newline t)
| (and require-final-newline
| (y-or-n-p
| (format "Buffer %s does not end in newline. Add one? "
| (buffer-name)))))
i.e. any non-nil but not-t value will have the same effect as
any other. Setting it to 'ask, or 'query makes sense for
someone looking at the variable binding later.
Though (setq require-final-newline 'fnord) should work equally well.
[...]
--
lawrence mitchell <wence@gmx.li>
- Re: Cool and Useful LISP for the .emacs file, (continued)
- Re: Cool and Useful LISP for the .emacs file, Thien-Thi Nguyen, 2003/11/07
- Message not available
- Re: Cool and Useful LISP for the .emacs file, Oliver Scholz, 2003/11/08
- Re: Cool and Useful LISP for the .emacs file, Orm Finnendahl, 2003/11/08
- Re: Cool and Useful LISP for the .emacs file, Ole Laursen, 2003/11/08
- Re: Cool and Useful LISP for the .emacs file, Tim X, 2003/11/23
Re: Cool and Useful LISP for the .emacs file, Joe Corneli, 2003/11/07
Re: Cool and Useful LISP for the .emacs file, Reiner Steib, 2003/11/07
- Re: Cool and Useful LISP for the .emacs file,
lawrence mitchell <=
Re: Cool and Useful LISP for the .emacs file, Edward Dodge, 2003/11/07
- Re: Cool and Useful LISP for the .emacs file, Stefan Monnier, 2003/11/10
- Re: Cool and Useful LISP for the .emacs file, kgold, 2003/11/10
- Re: Cool and Useful LISP for the .emacs file, Alan Mackenzie, 2003/11/11
- Re: Cool and Useful LISP for the .emacs file, Eli Zaretskii, 2003/11/11
- Re: Cool and Useful LISP for the .emacs file, Stefan Monnier, 2003/11/11
- Re: Cool and Useful LISP for the .emacs file, Thien-Thi Nguyen, 2003/11/11
- Re: Cool and Useful LISP for the .emacs file, Lars Brinkhoff, 2003/11/12
- Message not available
- Re: Cool and Useful LISP for the .emacs file, Colin Marquardt, 2003/11/12