2847
|
1 ## Copyright (C) 1996, 1997 John W. Eaton |
2313
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 2, or (at your option) |
|
8 ## any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, write to the Free |
|
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
|
18 ## 02111-1307, USA. |
799
|
19 |
2311
|
20 ## usage: dump_prefs (file) |
|
21 ## |
|
22 ## Have Octave dump all the current user preference variables to FILE |
|
23 ## in a format that can be parsed by Octave later. If FILE is omitted, |
|
24 ## the listing is printed to stdout. |
799
|
25 |
2314
|
26 ## Author: jwe |
|
27 |
2311
|
28 function dump_prefs (file) |
799
|
29 |
|
30 if (nargin == 0) |
|
31 file = stdout; |
|
32 endif |
|
33 |
2303
|
34 ## XXX FIXME XXX -- vectors of strings would be really useful here... |
|
35 ## XXX FIXME XXX -- maybe this should be a built-in function so that we |
|
36 ## wouldn't have to remember to update it each time the list of |
|
37 ## preference variables changes |
799
|
38 |
|
39 dump_1_pref (file, "EDITOR"); |
|
40 dump_1_pref (file, "IMAGEPATH"); |
|
41 dump_1_pref (file, "INFO_FILE"); |
|
42 dump_1_pref (file, "LOADPATH"); |
|
43 dump_1_pref (file, "OCTAVE_VERSION"); |
|
44 dump_1_pref (file, "PAGER"); |
|
45 dump_1_pref (file, "PS1"); |
|
46 dump_1_pref (file, "PS2"); |
|
47 dump_1_pref (file, "automatic_replot"); |
1012
|
48 dump_1_pref (file, "whitespace_in_literal_matrix"); |
799
|
49 dump_1_pref (file, "default_save_format"); |
|
50 dump_1_pref (file, "do_fortran_indexing"); |
|
51 dump_1_pref (file, "empty_list_elements_ok"); |
|
52 dump_1_pref (file, "eps"); |
|
53 dump_1_pref (file, "gnuplot_binary"); |
|
54 dump_1_pref (file, "ignore_function_time_stamp"); |
|
55 dump_1_pref (file, "implicit_str_to_num_ok"); |
|
56 dump_1_pref (file, "ok_to_lose_imaginary_part"); |
|
57 dump_1_pref (file, "output_max_field_width"); |
|
58 dump_1_pref (file, "output_precision"); |
|
59 dump_1_pref (file, "page_screen_output"); |
|
60 dump_1_pref (file, "prefer_column_vectors"); |
|
61 dump_1_pref (file, "print_answer_id_name"); |
|
62 dump_1_pref (file, "print_empty_dimensions"); |
|
63 dump_1_pref (file, "propagate_empty_matrices"); |
|
64 dump_1_pref (file, "resize_on_range_error"); |
|
65 dump_1_pref (file, "return_last_computed_value"); |
|
66 dump_1_pref (file, "save_precision"); |
|
67 dump_1_pref (file, "silent_functions"); |
|
68 dump_1_pref (file, "split_long_rows"); |
|
69 dump_1_pref (file, "treat_neg_dim_as_zero"); |
|
70 dump_1_pref (file, "warn_assign_as_truth_value"); |
|
71 dump_1_pref (file, "warn_divide_by_zero"); |
|
72 |
|
73 endfunction |