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
Restore --grep and --grepdoc command line options #12333
Comments
Author: Francis Clarke |
comment:1
Attachment: trac_12333_restore_sage_-grep.patch.gz The patch restore
In addition a new header is provided, which doesn't include the irrelevant "Type notebook() ...", and which shows the branch (if it isn't main). |
comment:2
Unfortunately, As far as the banner occurs, maybe it shouldn't be there at all? Set Finally, this should be rebased to some beta release of Ssge 5.0: the script sage-sage is no longer there; instead, patch |
comment:3
Replying to @jhpalmieri:
But please keep
Agreed.
|
Attachment: trac_12333_restore_grep_root.patch.gz apply to root repository |
apply to scripts repository |
comment:4
Attachment: trac_12333_restore_grep_scripts.patch.gz Replying to @jhpalmieri:
The code in the new attachment: trac_12333_restore_grep_scripts.patch should work much more generally. It seems to be no slower than the previous approach.
The attachment attachment: trac_12333_restore_grep_root.patch patches One other modification to earlier behaviour: the
|
This comment has been minimized.
This comment has been minimized.
comment:5
Looks good, works on sage.math, OS X, OpenSolaris. So there don't seem to be any cross-platform issues. I'm happy with the two main patches: positive review for those. What do you think of the attached patch for the reference manual? |
Reviewer: William Stein, John Palmieri |
Sage library |
comment:6
Attachment: trac_12333-documentation.patch.gz Replying to @jhpalmieri:
Looks good to me, so positive review for the documentation change. |
Merged: sage-5.0.beta6 |
I just tried one of my favorite command line options in Sage-4.8:
and was very surprised and disappointed that (a)
sage -grep
is just gone, and (b) there is no other equivalent command line functionality.Searching reveals that #12190 removed
sage -grep
from sage. You can't just remove functionality without any comment. At a minimum it would have to be deprecated for a year, and should also be discussed on sage-devel.I'm able to accomplish what I want via
However, this requires starting up Sage, which is much slower than the old
sage -grep
. I admit that "-grep" wasn't the best command line option name -- search_src would have been better.The optimal fix for this ticket would be to refactor the code in sage/misc/sagedoc.py (if possible) so it can be imported without importing all Sage, then use it to implement a command line "-search_src", and add back "-grep" with a 1-year deprecation.
Failing that, just revert #12190 for 1 year.
Apply:
Component: misc
Author: Francis Clarke
Reviewer: William Stein, John Palmieri
Merged: sage-5.0.beta6
Issue created by migration from https://trac.sagemath.org/ticket/12333
The text was updated successfully, but these errors were encountered: