From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.help Subject: Re: Cool and Useful LISP for the .emacs file Date: Sat, 08 Nov 2003 18:06:28 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068312757 21338 80.91.224.253 (8 Nov 2003 17:32:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2003 17:32:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 18:32:35 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AIWwt-0004mG-00 for ; Sat, 08 Nov 2003 18:32:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AIXry-0008Px-2G for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Nov 2003 13:31:34 -0500 Original-Newsgroups: gnu.emacs.help X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:WofsjvXN8VNlhrG5LW0q+OCasS0= Original-NNTP-Posting-Host: lumberjack.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1068311676 134.60.10.173 (8 Nov 2003 18:14:36 +0100) Original-Lines: 33 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-ulm.de!lumberjack.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:118015 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13954 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13954 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/