mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
Backport Use derived-mode-p in python.el instead of equality test with major-mode
Fixes: debbugs:18854 * progmodes/python.el (python-ffap-module-path): Use `derived-mode-p' instead of equality test on `major-mode'.
This commit is contained in:
parent
df33e85a80
commit
15ec2d7cff
2 changed files with 6 additions and 1 deletions
|
|
@ -3281,7 +3281,7 @@ The skeleton will be bound to python-skeleton-NAME."
|
|||
(defun python-ffap-module-path (module)
|
||||
"Function for `ffap-alist' to return path for MODULE."
|
||||
(let ((process (or
|
||||
(and (eq major-mode 'inferior-python-mode)
|
||||
(and (derived-mode-p 'inferior-python-mode)
|
||||
(get-buffer-process (current-buffer)))
|
||||
(python-shell-get-process))))
|
||||
(if (not process)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue