mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 08:10:21 -08:00
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.
This commit is contained in:
parent
7acb3f1c06
commit
aa135e09b6
2 changed files with 2 additions and 4 deletions
|
|
@ -2720,8 +2720,7 @@ dedicated to the current buffer or its project (if one is found)."
|
|||
(defmacro python-shell--add-to-path-with-priority (pathvar paths)
|
||||
"Modify PATHVAR and ensure PATHS are added only once at beginning."
|
||||
`(dolist (path (reverse ,paths))
|
||||
(cl-delete path ,pathvar :test #'string=)
|
||||
(cl-pushnew path ,pathvar :test #'string=)))
|
||||
(setq ,pathvar (cons path (cl-delete path ,pathvar :test #'string=)))))
|
||||
|
||||
(defun python-shell-calculate-pythonpath ()
|
||||
"Calculate the PYTHONPATH using `python-shell-extra-pythonpaths'."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue