aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 8de1717096f..aeee179c7e7 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2482,7 +2482,7 @@ to complete."
2482 :safe 'booleanp) 2482 :safe 'booleanp)
2483 2483
2484(defcustom python-pdbtrack-stacktrace-info-regexp 2484(defcustom python-pdbtrack-stacktrace-info-regexp
2485 "^> \\([^\"(<]+\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()" 2485 "> \\([^\"(<]+\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()"
2486 "Regular Expression matching stacktrace information. 2486 "Regular Expression matching stacktrace information.
2487Used to extract the current line and module being inspected." 2487Used to extract the current line and module being inspected."
2488 :type 'string 2488 :type 'string
@@ -2501,7 +2501,9 @@ Never set this variable directly, use
2501 "Set the buffer for FILE-NAME as the tracked buffer. 2501 "Set the buffer for FILE-NAME as the tracked buffer.
2502Internally it uses the `python-pdbtrack-tracked-buffer' variable. 2502Internally it uses the `python-pdbtrack-tracked-buffer' variable.
2503Returns the tracked buffer." 2503Returns the tracked buffer."
2504 (let ((file-buffer (get-file-buffer file-name))) 2504 (let ((file-buffer (get-file-buffer
2505 (concat (file-remote-p default-directory)
2506 file-name))))
2505 (if file-buffer 2507 (if file-buffer
2506 (setq python-pdbtrack-tracked-buffer file-buffer) 2508 (setq python-pdbtrack-tracked-buffer file-buffer)
2507 (setq file-buffer (find-file-noselect file-name)) 2509 (setq file-buffer (find-file-noselect file-name))