Mercurial > octave-nkf
comparison libinterp/corefcn/oct-hist.cc @ 20207:4f45eaf83908 stable
doc: Update more docstrings to have one sentence summary as first line.
Reviewed libinterp/corefcn directory.
* libinterp/corefcn/__ilu__.cc, libinterp/corefcn/balance.cc,
libinterp/corefcn/besselj.cc, libinterp/corefcn/betainc.cc,
libinterp/corefcn/bitfcns.cc, libinterp/corefcn/bsxfun.cc,
libinterp/corefcn/cellfun.cc, libinterp/corefcn/colloc.cc,
libinterp/corefcn/conv2.cc, libinterp/corefcn/data.cc,
libinterp/corefcn/debug.cc, libinterp/corefcn/defaults.cc,
libinterp/corefcn/det.cc, libinterp/corefcn/dirfns.cc,
libinterp/corefcn/dlmread.cc, libinterp/corefcn/dot.cc,
libinterp/corefcn/eig.cc, libinterp/corefcn/error.cc,
libinterp/corefcn/fft2.cc, libinterp/corefcn/fftn.cc,
libinterp/corefcn/file-io.cc, libinterp/corefcn/filter.cc,
libinterp/corefcn/find.cc, libinterp/corefcn/gammainc.cc,
libinterp/corefcn/gcd.cc, libinterp/corefcn/getgrent.cc,
libinterp/corefcn/getpwent.cc, libinterp/corefcn/getrusage.cc,
libinterp/corefcn/graphics.cc, libinterp/corefcn/help.cc,
libinterp/corefcn/hex2num.cc, libinterp/corefcn/input.cc,
libinterp/corefcn/inv.cc, libinterp/corefcn/kron.cc,
libinterp/corefcn/load-path.cc, libinterp/corefcn/load-save.cc,
libinterp/corefcn/lookup.cc, libinterp/corefcn/ls-oct-ascii.cc,
libinterp/corefcn/lsode.cc, libinterp/corefcn/lu.cc,
libinterp/corefcn/luinc.cc, libinterp/corefcn/mappers.cc,
libinterp/corefcn/matrix_type.cc, libinterp/corefcn/max.cc,
libinterp/corefcn/md5sum.cc, libinterp/corefcn/mgorth.cc,
libinterp/corefcn/nproc.cc, libinterp/corefcn/oct-hist.cc,
libinterp/corefcn/ordschur.cc, libinterp/corefcn/pager.cc,
libinterp/corefcn/pinv.cc, libinterp/corefcn/pr-output.cc,
libinterp/corefcn/pt-jit.cc, libinterp/corefcn/quad.cc,
libinterp/corefcn/quadcc.cc, libinterp/corefcn/qz.cc,
libinterp/corefcn/rand.cc, libinterp/corefcn/rcond.cc,
libinterp/corefcn/regexp.cc, libinterp/corefcn/schur.cc,
libinterp/corefcn/sighandlers.cc, libinterp/corefcn/sparse.cc,
libinterp/corefcn/spparms.cc, libinterp/corefcn/str2double.cc,
libinterp/corefcn/strfind.cc, libinterp/corefcn/strfns.cc,
libinterp/corefcn/sub2ind.cc, libinterp/corefcn/svd.cc,
libinterp/corefcn/symtab.cc, libinterp/corefcn/syscalls.cc,
libinterp/corefcn/sysdep.cc, libinterp/corefcn/time.cc,
libinterp/corefcn/toplev.cc, libinterp/corefcn/tril.cc,
libinterp/corefcn/tsearch.cc, libinterp/corefcn/typecast.cc,
libinterp/corefcn/urlwrite.cc, libinterp/corefcn/utils.cc,
libinterp/corefcn/variables.cc, scripts/polynomial/spline.m:
Update more docstrings to have one sentence summary as first line.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 09 May 2015 17:19:30 -0700 |
parents | 4197fc428c7d |
children | a9574e3c6e9e |
comparison
equal
deleted
inserted
replaced
20206:b70f8da6dcd3 | 20207:4f45eaf83908 |
---|---|
585 DEFUN (edit_history, args, , | 585 DEFUN (edit_history, args, , |
586 "-*- texinfo -*-\n\ | 586 "-*- texinfo -*-\n\ |
587 @deftypefn {Command} {} edit_history\n\ | 587 @deftypefn {Command} {} edit_history\n\ |
588 @deftypefnx {Command} {} edit_history @var{cmd_number}\n\ | 588 @deftypefnx {Command} {} edit_history @var{cmd_number}\n\ |
589 @deftypefnx {Command} {} edit_history @var{first} @var{last}\n\ | 589 @deftypefnx {Command} {} edit_history @var{first} @var{last}\n\ |
590 Edit the history list using the editor named by the variable\n\ | 590 Edit the history list using the editor named by the variable @env{EDITOR}.\n\ |
591 @w{@env{EDITOR}}.\n\ | |
592 \n\ | 591 \n\ |
593 The commands to be edited are first copied to a temporary file. When you\n\ | 592 The commands to be edited are first copied to a temporary file. When you\n\ |
594 exit the editor, Octave executes the commands that remain in the file. It\n\ | 593 exit the editor, Octave executes the commands that remain in the file. It\n\ |
595 is often more convenient to use @code{edit_history} to define functions\n\ | 594 is often more convenient to use @code{edit_history} to define functions\n\ |
596 rather than attempting to enter them directly on the command line.\n\ | 595 rather than attempting to enter them directly on the command line.\n\ |
613 @end example\n\ | 612 @end example\n\ |
614 \n\ | 613 \n\ |
615 When using ranges, specifying a larger number for the first command than the\n\ | 614 When using ranges, specifying a larger number for the first command than the\n\ |
616 last command reverses the list of commands before they are placed in the\n\ | 615 last command reverses the list of commands before they are placed in the\n\ |
617 buffer to be edited.\n\ | 616 buffer to be edited.\n\ |
618 @seealso{run_history}\n\ | 617 @seealso{run_history, history}\n\ |
619 @end deftypefn") | 618 @end deftypefn") |
620 { | 619 { |
621 octave_value_list retval; | 620 octave_value_list retval; |
622 | 621 |
623 do_edit_history (args); | 622 do_edit_history (args); |
630 @deftypefn {Command} {} history\n\ | 629 @deftypefn {Command} {} history\n\ |
631 @deftypefnx {Command} {} history @var{opt1} @dots{}\n\ | 630 @deftypefnx {Command} {} history @var{opt1} @dots{}\n\ |
632 @deftypefnx {Built-in Function} {@var{h} =} history ()\n\ | 631 @deftypefnx {Built-in Function} {@var{h} =} history ()\n\ |
633 @deftypefnx {Built-in Function} {@var{h} =} history (@var{opt1}, @dots{})\n\ | 632 @deftypefnx {Built-in Function} {@var{h} =} history (@var{opt1}, @dots{})\n\ |
634 If invoked with no arguments, @code{history} displays a list of commands\n\ | 633 If invoked with no arguments, @code{history} displays a list of commands\n\ |
635 that you have executed. Valid options are:\n\ | 634 that you have executed.\n\ |
635 \n\ | |
636 Valid options are:\n\ | |
636 \n\ | 637 \n\ |
637 @table @code\n\ | 638 @table @code\n\ |
638 @item @var{n}\n\ | 639 @item @var{n}\n\ |
639 @itemx -@var{n}\n\ | 640 @itemx -@var{n}\n\ |
640 Display only the most recent @var{n} lines of history.\n\ | 641 Display only the most recent @var{n} lines of history.\n\ |
660 typed without displaying line numbers, use the command\n\ | 661 typed without displaying line numbers, use the command\n\ |
661 @kbd{history -q 5}.\n\ | 662 @kbd{history -q 5}.\n\ |
662 \n\ | 663 \n\ |
663 If invoked with a single output argument, the history will be saved to that\n\ | 664 If invoked with a single output argument, the history will be saved to that\n\ |
664 argument as a cell string and will not be output to screen.\n\ | 665 argument as a cell string and will not be output to screen.\n\ |
666 @seealso{edit_history, run_history}\n\ | |
665 @end deftypefn") | 667 @end deftypefn") |
666 { | 668 { |
667 octave_value retval; | 669 octave_value retval; |
668 | 670 |
669 string_vector hlist = do_history (args, nargout); | 671 string_vector hlist = do_history (args, nargout); |
680 @deftypefnx {Command} {} run_history @var{cmd_number}\n\ | 682 @deftypefnx {Command} {} run_history @var{cmd_number}\n\ |
681 @deftypefnx {Command} {} run_history @var{first} @var{last}\n\ | 683 @deftypefnx {Command} {} run_history @var{first} @var{last}\n\ |
682 Run commands from the history list.\n\ | 684 Run commands from the history list.\n\ |
683 \n\ | 685 \n\ |
684 When invoked with no arguments, run the previously executed command;\n\ | 686 When invoked with no arguments, run the previously executed command;\n\ |
687 \n\ | |
685 With one argument, run the specified command @var{cmd_number};\n\ | 688 With one argument, run the specified command @var{cmd_number};\n\ |
689 \n\ | |
686 With two arguments, run the list of commands between @var{first} and\n\ | 690 With two arguments, run the list of commands between @var{first} and\n\ |
687 @var{last}. Command number specifiers may also be negative where -1\n\ | 691 @var{last}. Command number specifiers may also be negative where -1\n\ |
688 refers to the most recently executed command.\n\ | 692 refers to the most recently executed command. For example, the command\n\ |
689 For example, the command\n\ | |
690 \n\ | 693 \n\ |
691 @example\n\ | 694 @example\n\ |
692 @group\n\ | 695 @group\n\ |
693 run_history\n\ | 696 run_history\n\ |
694 OR\n\ | 697 OR\n\ |
720 2\n\ | 723 2\n\ |
721 1\n\ | 724 1\n\ |
722 @end group\n\ | 725 @end group\n\ |
723 @end example\n\ | 726 @end example\n\ |
724 \n\ | 727 \n\ |
725 @seealso{edit_history}\n\ | 728 @seealso{edit_history, history}\n\ |
726 @end deftypefn") | 729 @end deftypefn") |
727 { | 730 { |
728 octave_value_list retval; | 731 octave_value_list retval; |
729 | 732 |
730 do_run_history (args); | 733 do_run_history (args); |
735 DEFUN (history_control, args, nargout, | 738 DEFUN (history_control, args, nargout, |
736 "-*- texinfo -*-\n\ | 739 "-*- texinfo -*-\n\ |
737 @deftypefn {Built-in Function} {@var{val} =} history_control ()\n\ | 740 @deftypefn {Built-in Function} {@var{val} =} history_control ()\n\ |
738 @deftypefnx {Built-in Function} {@var{old_val} =} history_control (@var{new_val})\n\ | 741 @deftypefnx {Built-in Function} {@var{old_val} =} history_control (@var{new_val})\n\ |
739 Query or set the internal variable that specifies how commands are saved\n\ | 742 Query or set the internal variable that specifies how commands are saved\n\ |
740 to the history list. The default value is an empty character string,\n\ | 743 to the history list.\n\ |
741 but may be overridden by the environment variable\n\ | 744 \n\ |
742 @w{@env{OCTAVE_HISTCONTROL}}.\n\ | 745 The default value is an empty character string, but may be overridden by the\n\ |
746 environment variable @w{@env{OCTAVE_HISTCONTROL}}.\n\ | |
743 \n\ | 747 \n\ |
744 The value of @code{history_control} is a colon-separated list of values\n\ | 748 The value of @code{history_control} is a colon-separated list of values\n\ |
745 controlling how commands are saved on the history list. If the list\n\ | 749 controlling how commands are saved on the history list. If the list\n\ |
746 of values includes @code{ignorespace}, lines which begin with a space\n\ | 750 of values includes @code{ignorespace}, lines which begin with a space\n\ |
747 character are not saved in the history list. A value of @code{ignoredups}\n\ | 751 character are not saved in the history list. A value of @code{ignoredups}\n\ |
772 DEFUN (history_size, args, nargout, | 776 DEFUN (history_size, args, nargout, |
773 "-*- texinfo -*-\n\ | 777 "-*- texinfo -*-\n\ |
774 @deftypefn {Built-in Function} {@var{val} =} history_size ()\n\ | 778 @deftypefn {Built-in Function} {@var{val} =} history_size ()\n\ |
775 @deftypefnx {Built-in Function} {@var{old_val} =} history_size (@var{new_val})\n\ | 779 @deftypefnx {Built-in Function} {@var{old_val} =} history_size (@var{new_val})\n\ |
776 Query or set the internal variable that specifies how many entries\n\ | 780 Query or set the internal variable that specifies how many entries\n\ |
777 to store in the history file. The default value is @code{1000},\n\ | 781 to store in the history file.\n\ |
778 but may be overridden by the environment variable @w{@env{OCTAVE_HISTSIZE}}.\n\ | 782 \n\ |
783 The default value is @code{1000}, but may be overridden by the environment\n\ | |
784 variable @w{@env{OCTAVE_HISTSIZE}}.\n\ | |
779 @seealso{history_file, history_timestamp_format_string, history_save}\n\ | 785 @seealso{history_file, history_timestamp_format_string, history_save}\n\ |
780 @end deftypefn") | 786 @end deftypefn") |
781 { | 787 { |
782 octave_value retval; | 788 octave_value retval; |
783 | 789 |
798 DEFUN (history_file, args, nargout, | 804 DEFUN (history_file, args, nargout, |
799 "-*- texinfo -*-\n\ | 805 "-*- texinfo -*-\n\ |
800 @deftypefn {Built-in Function} {@var{val} =} history_file ()\n\ | 806 @deftypefn {Built-in Function} {@var{val} =} history_file ()\n\ |
801 @deftypefnx {Built-in Function} {@var{old_val} =} history_file (@var{new_val})\n\ | 807 @deftypefnx {Built-in Function} {@var{old_val} =} history_file (@var{new_val})\n\ |
802 Query or set the internal variable that specifies the name of the\n\ | 808 Query or set the internal variable that specifies the name of the\n\ |
803 file used to store command history. The default value is\n\ | 809 file used to store command history.\n\ |
804 @file{~/.octave_hist}, but may be overridden by the environment\n\ | 810 \n\ |
805 variable @w{@env{OCTAVE_HISTFILE}}.\n\ | 811 The default value is @file{~/.octave_hist}, but may be overridden by the\n\ |
812 environment variable @w{@env{OCTAVE_HISTFILE}}.\n\ | |
806 @seealso{history_size, history_save, history_timestamp_format_string}\n\ | 813 @seealso{history_size, history_save, history_timestamp_format_string}\n\ |
807 @end deftypefn") | 814 @end deftypefn") |
808 { | 815 { |
809 octave_value retval; | 816 octave_value retval; |
810 | 817 |
825 @deftypefn {Built-in Function} {@var{val} =} history_timestamp_format_string ()\n\ | 832 @deftypefn {Built-in Function} {@var{val} =} history_timestamp_format_string ()\n\ |
826 @deftypefnx {Built-in Function} {@var{old_val} =} history_timestamp_format_string (@var{new_val})\n\ | 833 @deftypefnx {Built-in Function} {@var{old_val} =} history_timestamp_format_string (@var{new_val})\n\ |
827 @deftypefnx {Built-in Function} {} history_timestamp_format_string (@var{new_val}, \"local\")\n\ | 834 @deftypefnx {Built-in Function} {} history_timestamp_format_string (@var{new_val}, \"local\")\n\ |
828 Query or set the internal variable that specifies the format string\n\ | 835 Query or set the internal variable that specifies the format string\n\ |
829 for the comment line that is written to the history file when Octave\n\ | 836 for the comment line that is written to the history file when Octave\n\ |
830 exits. The format string is passed to @code{strftime}. The default\n\ | 837 exits.\n\ |
831 value is\n\ | 838 \n\ |
839 The format string is passed to @code{strftime}. The default value is\n\ | |
832 \n\ | 840 \n\ |
833 @example\n\ | 841 @example\n\ |
834 \"# Octave VERSION, %a %b %d %H:%M:%S %Y %Z <USER@@HOST>\"\n\ | 842 \"# Octave VERSION, %a %b %d %H:%M:%S %Y %Z <USER@@HOST>\"\n\ |
835 @end example\n\ | 843 @end example\n\ |
836 \n\ | 844 \n\ |
837 When called from inside a function with the @qcode{\"local\"} option, the\n\ | 845 When called from inside a function with the @qcode{\"local\"} option, the\n\ |
838 variable is changed locally for the function and any subroutines it calls. \n\ | 846 variable is changed locally for the function and any subroutines it calls.\n\ |
839 The original variable value is restored when exiting the function.\n\ | 847 The original variable value is restored when exiting the function.\n\ |
840 @seealso{strftime, history_file, history_size, history_save}\n\ | 848 @seealso{strftime, history_file, history_size, history_save}\n\ |
841 @end deftypefn") | 849 @end deftypefn") |
842 { | 850 { |
843 return SET_INTERNAL_VARIABLE (history_timestamp_format_string); | 851 return SET_INTERNAL_VARIABLE (history_timestamp_format_string); |
850 @deftypefnx {Built-in Function} {} history_save (@var{new_val}, \"local\")\n\ | 858 @deftypefnx {Built-in Function} {} history_save (@var{new_val}, \"local\")\n\ |
851 Query or set the internal variable that controls whether commands entered\n\ | 859 Query or set the internal variable that controls whether commands entered\n\ |
852 on the command line are saved in the history file.\n\ | 860 on the command line are saved in the history file.\n\ |
853 \n\ | 861 \n\ |
854 When called from inside a function with the @qcode{\"local\"} option, the\n\ | 862 When called from inside a function with the @qcode{\"local\"} option, the\n\ |
855 variable is changed locally for the function and any subroutines it calls. \n\ | 863 variable is changed locally for the function and any subroutines it calls.\n\ |
856 The original variable value is restored when exiting the function.\n\ | 864 The original variable value is restored when exiting the function.\n\ |
857 @seealso{history_control, history_file, history_size, history_timestamp_format_string}\n\ | 865 @seealso{history_control, history_file, history_size, history_timestamp_format_string}\n\ |
858 @end deftypefn") | 866 @end deftypefn") |
859 { | 867 { |
860 octave_value retval; | 868 octave_value retval; |