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

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

[Octave-bug-tracker] [bug #51905] Variable Editor pop-up menu entries do


From: Rik
Subject: [Octave-bug-tracker] [bug #51905] Variable Editor pop-up menu entries don't work
Date: Thu, 31 Aug 2017 13:35:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

URL:
  <http://savannah.gnu.org/bugs/?51905>

                 Summary: Variable Editor pop-up menu entries don't work
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Thu 31 Aug 2017 10:35:51 AM PDT
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Not all, but many of the pop-up menu entries produce invalid code.  As an
example, try using one of the plot commands at the end of the right-click
menu.

Example:


x = magic (3)
x =

   8   1   6
   3   5   7
   4   9   2

>> openvar x
%% A) Now select row 2 ([3 5 7])
%% B) Right-click and select plot

>> figure (); plot (&x (2, 1:3));

parse error:

  syntax error


The generated code contains "&x" when it should just be "x".  This is probably
something simple where the generated string for eval is pre-pending '&' for
some reason.  Also, it would be nice if there wasn't a space after the
variable name which would keep with Octave's indexing style which is to cuddle
the parenthesis with the name when indexing.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51905>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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