comparison lispref/minibuf.texi @ 48730:e7f0249cfca8

Document history-length.
author Richard M. Stallman <rms@gnu.org>
date Sat, 07 Dec 2002 21:42:16 +0000
parents 5bae22b90bf5
children 23a1cea22d13
comparison
equal deleted inserted replaced
48729:ddd01000bda9 48730:e7f0249cfca8
433 allow the user to reuse items on the list. The only thing your program 433 allow the user to reuse items on the list. The only thing your program
434 needs to do to use a history list is to initialize it and to pass its 434 needs to do to use a history list is to initialize it and to pass its
435 name to the input functions when you wish. But it is safe to modify the 435 name to the input functions when you wish. But it is safe to modify the
436 list by hand when the minibuffer input functions are not using it. 436 list by hand when the minibuffer input functions are not using it.
437 437
438 Emacs functions that add a new element to a history list can also
439 delete old elements if the list gets too long. The variable
440 @code{history-length} specifies the maximum length for most history
441 lists. To specify a different maximum length for a particular history
442 list, put the length in the @code{history-length} property of the
443 history list symbol.
444
445 @defvar history-length
446 The value of this variable specifies the maximum length for all
447 history lists that don't specify their own maximum lengths. If the
448 value is @code{t}, that means there no maximum (don't delete old
449 elements).
450 @end defvar
451
438 Here are some of the standard minibuffer history list variables: 452 Here are some of the standard minibuffer history list variables:
439 453
440 @defvar minibuffer-history 454 @defvar minibuffer-history
441 The default history list for minibuffer history input. 455 The default history list for minibuffer history input.
442 @end defvar 456 @end defvar