[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About commands to manage Python imports
From: |
Eli Zaretskii |
Subject: |
Re: About commands to manage Python imports |
Date: |
Sun, 02 Jul 2023 07:49:20 +0300 |
> From: Matthias Meulien <orontee@gmail.com>
> Date: Sat, 1 Jul 2023 21:23:12 +0200
> Cc: emacs-devel <emacs-devel@gnu.org>
>
> > > If I read the logs correctly, commands python-add-import,
> > python-fix-imports, etc. will be introduced
> > > with Emacs 29. I am surprised there's no NEWS item related to those
> > commands. Are the menu
> > > entries considered enough?
> >
> > It's an omission. Feel free to write a NEWS entry and post it.
> >
>
> Here is a proposal:
>
> diff --git a/etc/NEWS b/etc/NEWS
> index 9e6f0c16bcd..f9621ef9164 100644
> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -3056,6 +3056,12 @@ Without a prefix argument, the kind of shell
> (buffer-dedicated,
> project-dedicated or global) is specified by the new
> 'python-shell-dedicated' user option.
>
> +*** New commands to manage Python imports.
> +'python-add-import', 'python-import-symbol-at-point',
> +'python-remove-import', 'python-fix-imports', 'python-sort-imports'.
> +The implementation relies on the Python library isort in version at
> +least 5.7.0.
> +
> ** Ruby Mode
Thanks. Two minor points: it should begin with "The new commands...",
and it should say at least something about what these commands do.
I'd also replace "in version" with "whose version".
Thanks.