diff scripts/prefs/preferences.m @ 17017:8003a4f013be

Announce new prefdir, preferences functions and add to manual. * NEWS: Add prefdir, preferences to list of new functions for 3.8. * doc/interpreter/gui.txi: Add prefdir, preferences to manual. * scripts/help/__unimplemented__.m: Remove functions from list of unimplemented. * scripts/prefs/prefdir.m: Add @seealso references to docstring. * scripts/prefs/preferences.m: Use prefsfile() instead of creating name. * scripts/prefs/private/prefsfile.m: Use filesep() instead of '/' for Windows users.
author Rik <rik@octave.org>
date Fri, 19 Jul 2013 10:12:43 -0700
parents c50ee84842a9
children 35a565fed4bd
line wrap: on
line diff
--- a/scripts/prefs/preferences.m
+++ b/scripts/prefs/preferences.m
@@ -18,14 +18,12 @@
 
 ## -*- texinfo -*-
 ## @deftypefn {Function File} {} preferences 
-## Display the preferences settings. If in GUI mode, display using the preferences dialog, otherwise display in EDITOR.
+## Display preferences settings for Octave.
 ##
-## Example:
-#
-## @example
-## preferences
-## @end example
+## If in GUI mode, display using the preferences dialog, otherwise display
+## the preferences with the @code{edit} function.
 ##
+## @seealso{getpref, setpref, addpref, rmpref}
 ## @end deftypefn
 
 ## Author: John Donoghue
@@ -33,10 +31,9 @@
 
 function preferences ()
   if (! __octave_link_enabled__ ())
-    prefs_file = [ getenv("HOME")  "/.octave_prefs" ];
-      
-    edit (prefs_file); 
+    edit (prefsfile ());
   else
-    __octave_link_show_preferences__ ();    
+    __octave_link_show_preferences__ ();
   endif
-endfunction
\ No newline at end of file
+endfunction
+