comparison lispref/tips.texi @ 65332:c2fb39cb93f0

(Programming Tips): Add conventions for minibuffer questions and prompts.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 Sep 2005 01:48:26 +0000
parents d16e2016fc7d
children 77b6aaba307a a3716f7538f2
comparison
equal deleted inserted replaced
65331:0ce8f4e050c2 65332:c2fb39cb93f0
370 or @code{beep} to report errors. 370 or @code{beep} to report errors.
371 371
372 @item 372 @item
373 An error message should start with a capital letter but should not end 373 An error message should start with a capital letter but should not end
374 with a period. 374 with a period.
375
376 @item
377 A question asked in the minibuffer with @code{y-or-n-p} or
378 @code{yes-or-no-p} should start with a capital letter and end with
379 @samp{? }.
380
381 @item
382 When you mention a default value in a minibuffer prompt,
383 put it and the word @samp{default} inside parentheses.
384 It should look like this:
385
386 @example
387 Enter the answer: (default 42)
388 @end example
375 389
376 @item 390 @item
377 In @code{interactive}, if you use a Lisp expression to produce a list 391 In @code{interactive}, if you use a Lisp expression to produce a list
378 of arguments, don't try to provide the ``correct'' default values for 392 of arguments, don't try to provide the ``correct'' default values for
379 region or position arguments. Instead, provide @code{nil} for those 393 region or position arguments. Instead, provide @code{nil} for those