Skip to content

Commit

Permalink
News and compat annotation for #29636 (edit(::Module)).
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Dec 4, 2018
1 parent 41ed5d7 commit 6791f91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Standard library changes
* `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]).
* New `DateTime(::Date, ::Time)` constructor ([#29754]).
* `isdiag` and `isposdef` for `Diagonal` and `UniformScaling` ([#29638]).
* New `edit(m::Module)` method which opens the main source file for module `m` ([#29636]).

Compiler/Runtime improvements
-----------------------------
Expand Down
7 changes: 4 additions & 3 deletions stdlib/InteractiveUtils/src/editless.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ end
edit(module)
Edit the definition of a function, optionally specifying a tuple of types to indicate which
method to edit.
method to edit. For modules, open the main source file. The module needs to be loaded with
`using` or `import` first.
For modules, open the main source file. The module needs to be loaded with `using` or
`import` first.
!!! compat "Julia 1.1"
`edit` on modules requires at least Julia 1.1.
The editor can be changed by setting `JULIA_EDITOR`, `VISUAL` or `EDITOR` as an environment
variable.
Expand Down

0 comments on commit 6791f91

Please sign in to comment.