annotate scripts/deprecated/saving_history.m @ 18206:48dafd739840 stable

cov.m: Document intentional Matlab incompatibility (bug #40751). cov.m: Document intentional Matlab incompatibility (bug #40751).
author Rik <rik@octave.org>
date Fri, 03 Jan 2014 12:36:17 -0800
parents 9a0f8287417a
children bcf0a288aa6c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16876
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
1 ## Copyright (C) 2013 Rik Wehbring
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
2 ##
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
3 ## This file is part of Octave.
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
4 ##
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
8 ## your option) any later version.
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
9 ##
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
13 ## General Public License for more details.
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
14 ##
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
17 ## <http://www.gnu.org/licenses/>.
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
18
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
19 ## -*- texinfo -*-
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
20 ## @deftypefn {Built-in Function} {@var{val} =} saving_history ()
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
21 ## @deftypefnx {Built-in Function} {@var{old_val} =} saving_history (@var{new_val})
16883
9a0f8287417a doc: Remove unneeded backslashes in m-file docstrings copied from C++ sources.
Rik <rik@octave.org>
parents: 16876
diff changeset
22 ## @deftypefnx {Built-in Function} {} saving_history (@var{new_val}, "local")
16876
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
23 ## This function has been deprecated. Use @code{@file{history_save}} instead.
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
24 ## @seealso{history_save}
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
25 ## @end deftypefn
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
26
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
27 ## Deprecated in 3.8
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
28
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
29 function retval = saving_history (varargin)
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
30
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
31 persistent warned = false;
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
32 if (! warned)
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
33 warned = true;
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
34 warning ("Octave:deprecated-function",
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
35 "saving_history is obsolete and will be removed from a future version of Octave, please use history_save instead");
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
36 endif
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
37
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
38 retval = save_default_options (varargin{:});
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
39
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
40 endfunction
9e0618443c2b Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff changeset
41