octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #65220] get_help_text returns docstring from p


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #65220] get_help_text returns docstring from parent methods
Date: Tue, 30 Jan 2024 11:27:53 -0500 (EST)

Follow-up Comment #22, bug#65220 (group octave):

sorry for the sloppy nomenclature.  I _think_ i did a clear -c every time, but
I'll double check.

first, this does work:

>> clear -c
>> help foobar_class/meth
  comment inside method


now, to avoid potentially leaving incorrect or misleading data, using the
binary nomenclature, where 1 means the comment is there and 0 means i've
deleted it, and a clear -c every time, here's a rerun of comment #16.

base case 1111111 (all present)


>> clear -c
help foobar_class
help foobar_class.foobar_class
help foobar_class.meth
help foobar_class.A
  comment prior to classdef keyword

  comment inside constructor

  comment inside method

  comment for property A


case 0111111  (removed prior-classdef)

>> clear -c
help foobar_class
help foobar_class.foobar_class
help foobar_class.meth
help foobar_class.A
  comment inside classdef block

    Documentation for foobar_class

  comment inside constructor

    Documentation for foobar_class/foobar_class

  comment inside method

  comment for property A


case 0110111 (prior classdef removed, also rem inside const.)

>> clear -c
help foobar_class
help foobar_class.foobar_class
help foobar_class.meth
help foobar_class.A
  comment inside classdef block

  comment inside classdef block

  comment inside method

  comment for property A


case 0110101 (prior classdef removed, also rem inside meth.)

>> clear -c
help foobar_class
help foobar_class.foobar_class
help foobar_class.meth
help foobar_class.A
  comment inside classdef block

  comment inside constructor

foobar_class/meth is a function.
    meth(obj)

  comment for property A




case 1011111 (only remove inside classdef)

clear -c
help foobar_class
help foobar_class.foobar_class
help foobar_class.meth
help foobar_class.A
  comment prior to classdef keyword

  comment inside constructor

  comment inside method

  comment for property A


case 1010111 (inside classdef removed, also rem. inside const.)

clear -c
help foobar_class
help foobar_class.foobar_class
help foobar_class.meth
help foobar_class.A
  comment prior to classdef keyword

  comment prior to classdef keyword

  comment inside method

  comment for property A


probably would be best to script a few specific cases to run for the 'desired'
endstate before locking it down.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65220>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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