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 | |
| 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')
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 3 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 04567917189..8fdafe18c50 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -3683,8 +3683,7 @@ macro that returns its `&whole' argument." | |||
| 3683 | cl-tree-equal | 3683 | cl-tree-equal |
| 3684 | 3684 | ||
| 3685 | ;; Functions that mutate and return a list. | 3685 | ;; Functions that mutate and return a list. |
| 3686 | ;;cl-delete | 3686 | cl-delete cl-delete-if cl-delete-if-not |
| 3687 | cl-delete-if cl-delete-if-not | ||
| 3688 | cl-delete-duplicates | 3687 | cl-delete-duplicates |
| 3689 | cl-nsubst cl-nsubst-if cl-nsubst-if-not | 3688 | cl-nsubst cl-nsubst-if cl-nsubst-if-not |
| 3690 | cl-nsubstitute cl-nsubstitute-if cl-nsubstitute-if-not | 3689 | cl-nsubstitute cl-nsubstitute-if cl-nsubstitute-if-not |
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'." |