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