Mercurial > octave-nkf
comparison src/oct-hist.cc @ 3333:15cddaacbc2d
[project @ 1999-11-03 19:53:59 by jwe]
author | jwe |
---|---|
date | Wed, 03 Nov 1999 19:54:52 +0000 |
parents | 7c03933635c6 |
children | 36405da8e173 |
comparison
equal
deleted
inserted
replaced
3332:7c03933635c6 | 3333:15cddaacbc2d |
---|---|
565 @noindent\n\ | 565 @noindent\n\ |
566 only extracts commands 13 through 169. Specifying a larger number for\n\ | 566 only extracts commands 13 through 169. Specifying a larger number for\n\ |
567 the first command than the last command reverses the list of commands\n\ | 567 the first command than the last command reverses the list of commands\n\ |
568 before placing them in the buffer to be edited. If both arguments are\n\ | 568 before placing them in the buffer to be edited. If both arguments are\n\ |
569 omitted, the previous command in the history list is used.\n\ | 569 omitted, the previous command in the history list is used.\n\ |
570 @end deffn\n\ | 570 @end deffn") |
571 ") | |
572 { | 571 { |
573 octave_value_list retval; | 572 octave_value_list retval; |
574 | 573 |
575 int argc = args.length () + 1; | 574 int argc = args.length () + 1; |
576 | 575 |
609 @end table\n\ | 608 @end table\n\ |
610 \n\ | 609 \n\ |
611 For example, to display the five most recent commands that you have\n\ | 610 For example, to display the five most recent commands that you have\n\ |
612 typed without displaying line numbers, use the command\n\ | 611 typed without displaying line numbers, use the command\n\ |
613 @kbd{history -q 5}.\n\ | 612 @kbd{history -q 5}.\n\ |
614 @end deffn\n\ | 613 @end deffn") |
615 ") | |
616 { | 614 { |
617 octave_value_list retval; | 615 octave_value_list retval; |
618 | 616 |
619 int argc = args.length () + 1; | 617 int argc = args.length () + 1; |
620 | 618 |
631 DEFUN_TEXT (run_history, args, , | 629 DEFUN_TEXT (run_history, args, , |
632 "-*- texinfo -*-\n\ | 630 "-*- texinfo -*-\n\ |
633 @deffn {Command} run_history [first] [last]\n\ | 631 @deffn {Command} run_history [first] [last]\n\ |
634 Similar to @code{edit_history}, except that the editor is not invoked,\n\ | 632 Similar to @code{edit_history}, except that the editor is not invoked,\n\ |
635 and the commands are simply executed as they appear in the history list.\n\ | 633 and the commands are simply executed as they appear in the history list.\n\ |
636 @end deffn\n\ | 634 @end deffn") |
637 ") | |
638 { | 635 { |
639 octave_value_list retval; | 636 octave_value_list retval; |
640 | 637 |
641 int argc = args.length () + 1; | 638 int argc = args.length () + 1; |
642 | 639 |
707 "-*- texinfo -*-\n\ | 704 "-*- texinfo -*-\n\ |
708 @defvr {Built-in Variable} history_file\n\ | 705 @defvr {Built-in Variable} history_file\n\ |
709 This variable specifies the name of the file used to store command\n\ | 706 This variable specifies the name of the file used to store command\n\ |
710 history. The default value is @code{\"~/.octave_hist\"}, but may be\n\ | 707 history. The default value is @code{\"~/.octave_hist\"}, but may be\n\ |
711 overridden by the environment variable @code{OCTAVE_HISTFILE}.\n\ | 708 overridden by the environment variable @code{OCTAVE_HISTFILE}.\n\ |
712 @end defvr\n\ | 709 @end defvr"); |
713 "); | |
714 | 710 |
715 double tmp_hist_size = default_history_size (); | 711 double tmp_hist_size = default_history_size (); |
716 | 712 |
717 DEFVAR (history_size, tmp_hist_size, history_size, | 713 DEFVAR (history_size, tmp_hist_size, history_size, |
718 "-*- texinfo -*-\n\ | 714 "-*- texinfo -*-\n\ |
719 @defvr {Built-in Variable} history_size\n\ | 715 @defvr {Built-in Variable} history_size\n\ |
720 This variable specifies how many entries to store in the history file.\n\ | 716 This variable specifies how many entries to store in the history file.\n\ |
721 The default value is @code{1024}, but may be overridden by the\n\ | 717 The default value is @code{1024}, but may be overridden by the\n\ |
722 environment variable @code{OCTAVE_HISTSIZE}.\n\ | 718 environment variable @code{OCTAVE_HISTSIZE}.\n\ |
723 @end defvr\n\ | 719 @end defvr"); |
724 "); | |
725 | 720 |
726 DEFVAR (saving_history, 1.0, saving_history, | 721 DEFVAR (saving_history, 1.0, saving_history, |
727 "-*- texinfo -*-\n\ | 722 "-*- texinfo -*-\n\ |
728 @defvr {Built-in Variable} saving_history\n\ | 723 @defvr {Built-in Variable} saving_history\n\ |
729 If the value of @code{saving_history} is nonzero, command entered\n\ | 724 If the value of @code{saving_history} is nonzero, command entered\n\ |
730 on the command line are saved in the file specified by the variable\n\ | 725 on the command line are saved in the file specified by the variable\n\ |
731 @code{history_file}.\n\ | 726 @code{history_file}.\n\ |
732 @end defvr\n\ | 727 @end defvr"); |
733 "); | 728 |
734 } | 729 } |
735 | 730 |
736 /* | 731 /* |
737 ;;; Local Variables: *** | 732 ;;; Local Variables: *** |
738 ;;; mode: C++ *** | 733 ;;; mode: C++ *** |