[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 751e21af42e: ; Check process in 'python-shell-completion-at-point
From: |
Eli Zaretskii |
Subject: |
master 751e21af42e: ; Check process in 'python-shell-completion-at-point' |
Date: |
Thu, 9 May 2024 03:57:53 -0400 (EDT) |
branch: master
commit 751e21af42e905d0448baa7be4a7ae6d6ae6734a
Author: Lin Sun <sunlin7@hotmail.com>
Commit: Eli Zaretskii <eliz@gnu.org>
; Check process in 'python-shell-completion-at-point'
* lisp/progmodes/python.el (python-shell-completion-at-point):
Check the PROCESS argument at the beginning of the function.
(Bug#70707)
---
lisp/progmodes/python.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0bee98871e4..831bec7f4af 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4738,6 +4738,8 @@ as one line, which is required by native completion."
Optional argument PROCESS forces completions to be retrieved
using that one instead of current buffer's process."
(setq process (or process (get-buffer-process (current-buffer))))
+ (unless process
+ (user-error "No active python inferior process"))
(let* ((is-shell-buffer (derived-mode-p 'inferior-python-mode))
(line-start (if is-shell-buffer
;; Working on a shell buffer: use prompt end.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 751e21af42e: ; Check process in 'python-shell-completion-at-point',
Eli Zaretskii <=