octave-maintainers
[Top][All Lists]
Advanced

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

Re: help foo, with empty function foo


From: Doug Stewart
Subject: Re: help foo, with empty function foo
Date: Mon, 24 Jun 2013 10:11:04 -0400




On Mon, Jun 24, 2013 at 9:58 AM, Carnë Draug <address@hidden> wrote:
On 24 June 2013 15:53, Doug Stewart <address@hidden> wrote:
>
> On Mon, Jun 24, 2013 at 9:42 AM, Juan Pablo Carbajal <address@hidden>
> wrote:
>>
>> On Mon, Jun 24, 2013 at 3:18 PM, Muhali <address@hidden> wrote:
>> > If foo.m contains only help text, e.g.
>> >
>> > % This is foo.
>> >
>> > then in ML 'help foo' displays that text while octave produces an error:
>> >
>> > error: help: 'foo' is not documented
>> >
>> > I am not sure if this is a bug.
>> >
>>
>> Octave has its own documentation syntax
>>
>> http://www.gnu.org/software/octave/doc/interpreter/Documentation-Tips.html#Documentation-Tips
>>
>> I wouldn't say that not showing the documentation is breaking the
>> code. But I am not sure
>
>
> there was no documentation to show.

There is documentation. Documentation is defined as the first block of
comments that does not start by "Author" or "Copyright". It doesn't
matter if its plain text or TexInfo.

But apparently, it only looks for documentation if there's any Octave
code in there at all.

Carnë

I tried some examples and found that tis error only shows up when the is only 1 line if text in the file.

Even if the second line is blank then it works ok

--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

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