Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix help for operators starting with a dot #9109

Merged
merged 1 commit into from
Nov 25, 2014
Merged

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented Nov 22, 2014

This fixes #8903 and supersedes #8922 (cc @hayd). Basically, when you pass a function to the help system (instead of just its name), the system can go through all the modules and only returns those methods that actually extend the same function. The way it does this, however, is a little hacky... using string concatenation to combine the function name with the module names, and then splitting it back apart again on dots to get the functions within each module. This simply improves the splitting logic with a regex to handle the leading dot.

This fixes JuliaLang#8903 and supersedes JuliaLang#8922 (cc @hayd). Basically, when you pass a function to the help system (instead of just its name), the system can go through all the modules and only returns those methods that actually extend the same function.  The way it does this, however, is a little hacky... using string concatenation to combine the function name with the module names, and then splitting it back apart again on dots to get the functions within each module.  This simply improves the splitting logic with a regex to handle the leading dot.
nolta added a commit that referenced this pull request Nov 25, 2014
Fix help for operators starting with a dot
@nolta nolta merged commit 425877f into JuliaLang:master Nov 25, 2014
@mbauman
Copy link
Sponsor Member Author

mbauman commented Dec 4, 2014

This should be very simple to back port, @JuliaBackports

@mbauman mbauman deleted the dot-help branch December 4, 2014 03:52
ivarne pushed a commit that referenced this pull request Dec 4, 2014
This fixes #8903 and supersedes #8922 (cc @hayd). Basically, when you pass a function to the help system (instead of just its name), the system can go through all the modules and only returns those methods that actually extend the same function.  The way it does this, however, is a little hacky... using string concatenation to combine the function name with the module names, and then splitting it back apart again on dots to get the functions within each module.  This simply improves the splitting logic with a regex to handle the leading dot.

(cherry picked from commit 5671381)
Ref: #9109
@ivarne
Copy link
Sponsor Member

ivarne commented Dec 4, 2014

Backported in 44347a9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

help for .+ (is not defined)
4 participants