26 #if defined (HAVE_CONFIG_H)
51 if (exec_path.empty ())
58 if (shell_path.empty ())
68 if (shell_path.find (exec_path) == std::string::npos)
109 std::string
retval =
"emacs";
113 if (! env_editor.empty ())
145 if (! env_path.empty ())
150 if (! gen_path.empty ())
157 DEFMETHOD (EDITOR, interp, args, nargout,
177 return env.
editor (args, nargout);
192 DEFMETHOD (EXEC_PATH, interp, args, nargout,
229 DEFMETHOD (IMAGE_PATH, interp, args, nargout,
static std::string path_sep_str(void)
std::string exec_path(void) const
octave_value editor(const octave_value_list &args, int nargout)
std::string set(std::string &var, const std::string &new_val)
octave_value exec_path(const octave_value_list &args, int nargout)
static std::string init_editor(void)
static std::string init_image_path(void)
static std::string init_exec_path(void)
std::string image_path(void) const
octave_value image_path(const octave_value_list &args, int nargout)
std::string editor(void) const
static std::string getenv(const std::string &name)
static void putenv(const std::string &name, const std::string &value)
#define DEFMETHOD(name, interp_name, args_name, nargout_name, doc)
Macro to define a builtin method.
std::string image_dir(void)
std::string local_ver_arch_lib_dir(void)
std::string local_arch_lib_dir(void)
std::string arch_lib_dir(void)
std::string local_api_arch_lib_dir(void)
std::string bin_dir(void)
static void append_to_shell_path(const std::string &exec_path)
std::string genpath(const std::string &dirname, const string_vector &skip)
octave_value::octave_value(const Array< char > &chm, char type) return retval
octave_value set_internal_variable(bool &var, const octave_value_list &args, int nargout, const char *nm)