emacs-devel
[Top][All Lists]
Advanced

[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: Sat, 01 Jul 2023 19:45:35 +0300

> From: Matthias Meulien <orontee@gmail.com>
> Date: Sat, 1 Jul 2023 18:14:32 +0200
> 
> 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.

> --- a/lisp/progmodes/python.el
> +++ b/lisp/progmodes/python.el
> @@ -6420,7 +6420,7 @@ python--list-imports
>                                  (mapcar #'file-local-name source)))))
>               lines)
>          (unless (eq 0 status)
> -          (error "%s exited with status %s (maybe isort is missing?)"
> +          (error "%s exited with status %s (maybe isort>=5.7.0 is missing?)"
>                   python-interpreter status))
>          (goto-char (point-min))
>          (while (not (eobp))
> @@ -6465,7 +6465,7 @@ python--do-isort
>                                 "-m" "isort" "-" args))
>                  (tick (buffer-chars-modified-tick)))
>              (unless (eq 0 status)
> -              (error "%s exited with status %s (maybe isort is missing?)"
> +              (error "%s exited with status %s (maybe isort>=5.7.0 is 
> missing?)"

Thanks, but the "isort>=5.7.0" part is quite cryptic.  Can we do
better?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]