aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2013-12-12 21:56:12 -0300
committerFabián Ezequiel Gallina2013-12-12 21:56:12 -0300
commitce030451728326b438faae611f6d6e95ac8b82de (patch)
tree1c6934e173b59433b6954aa1c3c6a131dbf47a8b
parenta3fab1ec17f05e2782dcde814018fc48a3bbebb9 (diff)
downloademacs-ce030451728326b438faae611f6d6e95ac8b82de.tar.gz
emacs-ce030451728326b438faae611f6d6e95ac8b82de.zip
* 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
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/progmodes/python.el6
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 805db12de4a..89293a8a03d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12013-12-13 Fabián Ezequiel Gallina <fgallina@gnu.org>
2
3 * progmodes/python.el (python-pdbtrack-stacktrace-info-regexp):
4 Also match after beginning of line.
5 (python-pdbtrack-set-tracked-buffer): Fix logic for remote
6 files. Thanks to Russell Sim. (Bug#15378)
7
12013-12-13 Juri Linkov <juri@jurta.org> 82013-12-13 Juri Linkov <juri@jurta.org>
2 9
3 * comint.el (comint-mode-map): Replace `delete-char' with 10 * comint.el (comint-mode-map): Replace `delete-char' with
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))