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

special show for AbstractVector{Method} for ::MIMEtext/plain #22068

Merged
merged 1 commit into from
Jun 4, 2017

Conversation

fredrikekre
Copy link
Member

This is currently done for "text/html" do generate links to the methods. The REPL equivalent to links is #22007, so this enables that to be used with methodswith(Foo) along with methods(foo).

This also prevents large spacing in the printing, since the general vector output prints with equal spacing for all elements (?), and some methods have very long signatures (try for instance methodswith(SparseMatrixCSC))

@kshyatt kshyatt added the display and printing Aesthetics and correctness of printed representations of objects. label May 27, 2017
print(io, "[$(i)] ")
show(io, m)
println(io)
push!(LAST_SHOWN_LINE_INFOS, (string(m.file), m.line))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is LAST_SHOWN_LINE_INFOS?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, hadn't pulled upstream in a few days :).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this emtpy! the LAST_SHOWN_LINE_INFOS first?

which is currently done for text/html
this enables the jump-to-method thingy from JuliaLang#22007 to be used with methodswith(Foo) also
This also prevents large spacing in the printing, since the general vector output prints with equal spacing for all elements, and some methods have very long signatures
@fredrikekre fredrikekre force-pushed the fe/show-methodswith branch from 39f673f to 3f751e3 Compare May 30, 2017 09:57
@KristofferC KristofferC merged commit 2c6273b into JuliaLang:master Jun 4, 2017
@fredrikekre fredrikekre deleted the fe/show-methodswith branch June 4, 2017 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants