help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function name autocompletion


From: c.
Subject: Re: function name autocompletion
Date: Sun, 30 Mar 2014 09:40:26 +0200

On 29 Mar 2014, at 14:49, Wisatbff Li <address@hidden> wrote:

> Hi. Is there a way to make a function file not be treated as a script?
> I defined a function named 'func' in 'func.m'. However, both 'func'
> and 'func.m' appear each time I use the Tab key to autocomplete the
> name of this function,  which looks a bit messy.

To make sure the parser recognises the file as a script
you need to put a statement before the function definition.

Any statement will do, a common trick is to use just:


1;
function a = fun (b)
...
endfunction


the "1;" will suffice to tell the interpreter this is a script.

c.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]