From bug-request at octave dot org Thu Apr 6 00:46:34 2006 Subject: Re: addpath, rmpath, savepath From: "John W. Eaton" To: Paul Kienzle Cc: "Robert S. Weigel" , bug@octave.org Date: Thu, 6 Apr 2006 01:45:53 -0400 On 5-Apr-2006, Paul Kienzle wrote: | From a usability point of view, '.:' should be the default | loadpath so that people can run octave without having to | know about ~/.octaverc. Currently, the default value for LOADPATH is ":" and the value for DEFAULT_LOADPATH starts with ".", so it seems to me that the effect is the same. Are you saying there is some advantage to moving "." from DEFAULT_LOADPATH to LOADPATH? | I think addpath would most closely | match users expectations if it defaulted to adding the path | after '.' if '.' is on the path, or at the front. OK, I suppose that to do this kind of magic, it helps to have "." in LOADPATH instead of DEFAULT_LOADPATH. If anyone has strong preferences for this kind of behavior, please submit a patch that includes a concise and clear description of the behavior in the documenation for loadpath. I don't think we want this kind of feature unless we have a clear description of the way this works and why it is desirable. | > It might be OK to have a warning, but only if warn_matlab_incompatible | > is true. | | Octave packages should use the octave packaging system, in which | case we won't be writing code that adds path//, so this isn't an | important issue. Hopefully system functions are implicitly | interpreted with warn_matlab_incompatible off. This is not currently true, as warn_matlab_incompatible is applied globally. I agree that it would be good for it to not apply to system functions, but I'm not motivated enough to make the necessary changes myself. Patches, anyone? jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------