When I input the following line in version 8, and press Ctrl+K after Re, I can get a drop-down auto-completion list including Rectangle:

enter image description here

But the same input in version 9 gives me only one candidate:

enter image description here

and the short-cut key Ctrl+K seems not working.


Is there any thing I missed?

How can I get a drop-down auto-completion menu with a full candidates list?

My operation system is Windows 7 64-bit.

  • 1
    $\begingroup$ same behaviour on OS X $\endgroup$ – acl Dec 1 '12 at 3:45
  • $\begingroup$ @acl Would it be some kind of context sensitive feature? I can get Rectangle in Graphics[{Black, Re}]. $\endgroup$ – Silvia Dec 1 '12 at 3:55
  • 5
    $\begingroup$ The completions are context sensitive, and it seems be be getting confused in this case. Prolog->Re will offer Rectangle as a completion, but not Prolog->{Re. $\endgroup$ – Brett Champion Dec 1 '12 at 3:58
  • 4
    $\begingroup$ Looks like you can work around this by using Prolog->List[ instead. $\endgroup$ – Brett Champion Dec 1 '12 at 4:42
  • 1
    $\begingroup$ The bug described in this question seems to be fixed with Version $\endgroup$ – Lev Bishop Feb 21 '13 at 19:29

Seems that you can work around this by modifying for example SyntaxInformation[Plot]={"ArgumentsPattern" -> {_, _, _}}, at the cost of having incorrect syntax highlighting.

For some reason, setting SyntaxInformation[Plot]={"ArgumentsPattern" -> {_, {_,_,_}, __}} isn't sufficient to kill the Options[Plot] pattern matching, and I haven't found a form of the pattern that gives Rectangle as an autocompletion without also messing up the highlighting.

  • $\begingroup$ +1 I didn't think the ArgumentsPattern can be relevant! $\endgroup$ – Silvia Dec 2 '12 at 12:27

seems like a bug and should be reported to support@wolfram.com.

Noticed when I miss-spelled Plot and wrote PLot instead, the correct auto-completion came up. This tells me the context of another command before on the same line, which is Plot in this case, was confusing the Auto-complete for the next command on the same line.

One temporary solution (not perfect) is to define the options on separate lines. Now auto-complete works, since it is not distracted any more

enter image description here

  • $\begingroup$ I personally like the typo solution, with the CaseSensitiveCommandCompletion off :) $\endgroup$ – Silvia Dec 2 '12 at 12:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.