Skip to content

Commit cf3e066

Browse files
committed
News and compat annotation for #29636 (edit(::Module)).
1 parent 6f7c934 commit cf3e066

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Standard library changes
6666
* `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]).
6767
* New `DateTime(::Date, ::Time)` constructor ([#29754]).
6868
* `isdiag` and `isposdef` for `Diagonal` and `UniformScaling` ([#29638]).
69+
* New `edit(m::Module)` method which opens the main source file for module `m` ([#29636]).
6970

7071
Compiler/Runtime improvements
7172
-----------------------------

stdlib/InteractiveUtils/src/editless.jl

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ end
8787
edit(module)
8888
8989
Edit the definition of a function, optionally specifying a tuple of types to indicate which
90-
method to edit.
90+
method to edit. For modules, open the main source file. The module needs to be loaded with
91+
`using` or `import` first.
9192
92-
For modules, open the main source file. The module needs to be loaded with `using` or
93-
`import` first.
93+
!!! compat "Julia 1.1"
94+
`edit` on modules requires at least Julia 1.1.
9495
9596
The editor can be changed by setting `JULIA_EDITOR`, `VISUAL` or `EDITOR` as an environment
9697
variable.

0 commit comments

Comments
 (0)