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 stumbled on some strange behaviour when trying out the new function template and documentation features, now purportedly working in v 9.0.1. I defined a function f and f::usage="f[x] does something to x". Typing f and then Cmd+Shift+K pulls up a tab and, as with built-in functions, there is an area marked Documentation underneath the completion section. Clicking on that (I always wanted an easy way to extend the built-in documentation; the approach described in this question is rather too much of a meal for me) I was given what looks like a notebook view on a directory (the directory shown is the working directory for my notebook): Opening a directory

Feeling foolhardy, I thought I'd try to save it (well, I do have a recent bootable backup, TM snapshots and my files are under git/Dropbox control): Undocumented feature(?) -> error message

I was relieved to find that the file could not be written, as it seems to correspond to a directory, which I don't think you can open via the front end and I hope can't be directly written in that way either? It can be "saved as", default being Consultancy.txt

So, to my question: bug or (undocumented?) feature? Can I use this to do something useful for documentation of my own functions?

share|improve this question
    
This happens to me occassionally as well... just close the windows and reopen the documentation center. It's possibly some obscure FE bug –  rm -rf Dec 12 '13 at 2:18
    
Doesn't seem to happen with the Windows FE. If I had to guess, I'd say it indeed looks like some sort of bug. –  Oleksandr R. Dec 12 '13 at 8:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.