Mercurial > hg > octave-nkf
annotate scripts/deprecated/saving_history.m @ 16876:9e0618443c2b
Rename saving_history() to history_save().
* NEWS: Announch renaming.
* doc/interpreter/basics.txi: Use history_save in manual.
* libgui/src/resource-manager.cc: Update list of Octave keywords.
* libinterp/interpfcn/oct-hist.cc(Fsaving_history): Rename function.
Rename seealso links in other functions.
* libinterp/octave.cc(octave_process_command_line): Call history_save(0)
for -H option.
* libinterp/parse-tree/pt-assign.cc: Update list of old built-in variables.
* scripts/deprecated/saving_history.m: Add deprecated command to call history_save().
* scripts/deprecated/module.mk: Add deprecated saving_history.m to build system.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 30 Jun 2013 14:19:02 -0700 |
parents | |
children | 9a0f8287417a |
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}) |
9e0618443c2b
Rename saving_history() to history_save().
Rik <rik@octave.org>
parents:
diff
changeset
|
22 ## @deftypefnx {Built-in Function} {} saving_history (@var{new_val}, \"local\") |
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 |