Mercurial > hg > octave-nkf
view scripts/startup/main-rcfile @ 16508:f19e24c97b20
move common warndlg, errordlg, helpdlg, and msgbox code to private function
* message_dialog.m: New file.
* scripts/ui/module.mk: Include it in the list of functions.
* errordlg.m, helpdlg.m, warndlg.m, msgbox.m: Call message_dialog to
do most of the work.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 12 Apr 2013 18:17:26 -0400 |
parents | 17f2cdb5232e |
children | cc3743a91652 |
line wrap: on
line source
## System-wide startup file for Octave. ## ## This file should contain any commands that should be executed each ## time Octave starts for every user at this site. ## Configure readline using the file inputrc in the Octave startup ## directory. read_readline_init_file (sprintf ("%s%s%s", octave_config_info ("startupfiledir"), filesep, "inputrc")); if (strcmp (PAGER (), "less") && isempty (getenv ("LESS"))) PAGER_FLAGS ('-e -X -P"-- less ?pB(%pB\\%):--. (f)orward, (b)ack, (q)uit$"'); endif ## This appears here instead of in the pkg/PKG_ADD file so that --norc ## will also skip automatic loading of packages. pkg ("load", "auto"); atexit ("__finish__");