Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have created a package file like this, in "/path/to/lib/tools.m":

BeginPackage["tools`"]

columnVectorQ::usage = "columnVectorQ[v] returns True if v is a list of length-1, rank-1 tensors.";

Begin["`Private`"]

columnVectorQ[v_]:= VectorQ[v,(TensorRank[#]==1 && Length[#]==1)& ];

End[]
EndPackage[]

Now in my notebook, I do this:

ClearAll["Global`*"];

Get["/path/to/tools.m"]

Now I am able to USE columnVectorQ[{{1},{2},{3}}, for example... but I am unable to autocomplete columnVectorQ. I can only autocomplete tools`columnVectorQ.

Is there a way to make the contents of my package visible to the autocomplete system, so I don't need to prefix package symbols with the name of the package?

share|improve this question

closed as off-topic by Nasser, Yves Klett, ubpdqn, rasher, Sjoerd C. de Vries Jul 7 at 9:04

  • The question does not concern the technical computing software Mathematica by Wolfram Research. Please see the help center to find out about the topics that can be asked here.
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Works for me, 9.x Windows... –  rasher Jul 7 at 5:31
1  
Hm. Not working here, 9.0.1.0, OS X 10.9.3. :/ –  billc Jul 7 at 5:33
    
it also works on windows 7, V 9.01 screen shot !Mathematica graphics –  Nasser Jul 7 at 5:55
1  
Okay ... after restart it works as expected. So I must have gotten into some glitched state. Thanks folks ... I'm somewhat new to Mathematica, so in cases like this am not sure when I should expect things to work as expected, and when I should expect otherwise. –  billc Jul 7 at 6:16
4  
This question appears to be off-topic because the problem cannot be reproduced and was solved by a restart. –  Yves Klett Jul 7 at 7:15

1 Answer 1

up vote 0 down vote accepted

Answering to accept & mark closed. Apparently I was in some screwy state. My issue does not appear to be a real, reproducible issue.

share|improve this answer
    
argg. I can't accept my own answer for two days. :/ –  billc Jul 7 at 6:20

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