diff options
| author | Mattias EngdegÄrd | 2023-05-01 17:22:02 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-05-01 17:22:02 +0200 |
| commit | aa135e09b6735cd50742b1023fc901feb32e6a52 (patch) | |
| tree | 689bf95e8f9684063b91aed5f09b09471e8b0cbc /lisp/progmodes/python.el | |
| parent | 7acb3f1c060872b1802e7548d991ca8a9f0fef01 (diff) | |
| download | emacs-aa135e09b6735cd50742b1023fc901feb32e6a52.tar.gz emacs-aa135e09b6735cd50742b1023fc901feb32e6a52.zip | |
Declare `cl-delete` to have important-return-value (bug#61730)
* lisp/emacs-lisp/cl-macs.el: Set property on `cl-delete`.
* lisp/progmodes/python.el (python-shell--add-to-path-with-priority):
Prevent warning by cleaner code.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5bb15c60956..f9b645cc3df 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2720,8 +2720,7 @@ dedicated to the current buffer or its project (if one is found)." | |||
| 2720 | (defmacro python-shell--add-to-path-with-priority (pathvar paths) | 2720 | (defmacro python-shell--add-to-path-with-priority (pathvar paths) |
| 2721 | "Modify PATHVAR and ensure PATHS are added only once at beginning." | 2721 | "Modify PATHVAR and ensure PATHS are added only once at beginning." |
| 2722 | `(dolist (path (reverse ,paths)) | 2722 | `(dolist (path (reverse ,paths)) |
| 2723 | (cl-delete path ,pathvar :test #'string=) | 2723 | (setq ,pathvar (cons path (cl-delete path ,pathvar :test #'string=))))) |
| 2724 | (cl-pushnew path ,pathvar :test #'string=))) | ||
| 2725 | 2724 | ||
| 2726 | (defun python-shell-calculate-pythonpath () | 2725 | (defun python-shell-calculate-pythonpath () |
| 2727 | "Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'." | 2726 | "Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'." |