mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
* lisp/progmodes/python.el (python-pdbtrack-stacktrace-info-regexp):
Also match after beginning of line. (python-pdbtrack-set-tracked-buffer): Fix logic for remote files. Thanks to Russell Sim. Fixes: debbugs:15378
This commit is contained in:
parent
a3fab1ec17
commit
ce03045172
2 changed files with 11 additions and 2 deletions
|
|
@ -2482,7 +2482,7 @@ to complete."
|
|||
:safe 'booleanp)
|
||||
|
||||
(defcustom python-pdbtrack-stacktrace-info-regexp
|
||||
"^> \\([^\"(<]+\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()"
|
||||
"> \\([^\"(<]+\\)(\\([0-9]+\\))\\([?a-zA-Z0-9_<>]+\\)()"
|
||||
"Regular Expression matching stacktrace information.
|
||||
Used to extract the current line and module being inspected."
|
||||
:type 'string
|
||||
|
|
@ -2501,7 +2501,9 @@ Never set this variable directly, use
|
|||
"Set the buffer for FILE-NAME as the tracked buffer.
|
||||
Internally it uses the `python-pdbtrack-tracked-buffer' variable.
|
||||
Returns the tracked buffer."
|
||||
(let ((file-buffer (get-file-buffer file-name)))
|
||||
(let ((file-buffer (get-file-buffer
|
||||
(concat (file-remote-p default-directory)
|
||||
file-name))))
|
||||
(if file-buffer
|
||||
(setq python-pdbtrack-tracked-buffer file-buffer)
|
||||
(setq file-buffer (find-file-noselect file-name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue