[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cool and Useful LISP for the .emacs file
From: |
Reiner Steib |
Subject: |
Re: Cool and Useful LISP for the .emacs file |
Date: |
Sat, 08 Nov 2003 18:06:28 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
On Fri, Nov 07 2003, lawrence mitchell wrote:
> 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.
[...]
> Though (setq require-final-newline 'fnord) should work equally well.
Yes you are right (I already said that it works, see above). I
_thought_ that 'ask is more typical as 'query in Emacs and therefore
it's preferable to use it. Grepping[1] the sources shows that 'query
is used two times (`checkdoc.el', `sendmail.el') and 'ask 11 times,
i.e. not so clear as I expected. ;-) Is there a coding convention for
'ask vs. 'query?
BTW, now I learned from (info "(elisp)Composite Types"), what's the
difference between (const :tag "Ask" foo) and (other :tag "Ask" foo)
in defcustom. :-)
Bye, Reiner.
[1] grep -n -e "\\(const\\|other\\).* \\(query\\|ask\\))" *.el */*.el
--
,,,
(o o)
---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
- 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, 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
- Re: Cool and Useful LISP for the .emacs file, David Kastrup, 2003/11/12