From e50587b1db8475fd45e6668f97ca7bc28b798996 Mon Sep 17 00:00:00 2001 From: Andrii Kolomoiets Date: Sat, 2 Nov 2019 18:08:13 +0200 Subject: python.el: Pdbtracking improvements Allow not to kill buffers when pdbtracking session is finished. Pdbtracking session considered finished judging from the user input. * lisp/progmodes/python.el (python-pdbtrack-kill-buffers): New customizable variable. (python-pdbtrack-set-tracked-buffer): Use it. (python-pdbtrack-unset-tracked-buffer) (python-pdbtrack-tracking-finish): New functions. (python-pdbtrack-continue-command, python-pdbtrack-exit-command): New customizable variables. (python-pdbtrack-process-sentinel): New function. Finish pdbtracking session when process is killed. (python-pdbtrack-prev-command-continue): New variable. (python-pdbtrack-comint-input-filter-function): New function. Finish pdbtracking session based on commands sent to pdb. (python-pdbtrack-comint-output-filter-function): Unset/set tracking buffer if looking at pdb prompt; finish pdbtracking session if filename of current stack frame starts with "<" e.g. "". (python-pdbtrack-comint-output-filter-function): Don't override overlay-arrow-string. (python-pdbtrack-setup-tracking): New function. (inferior-python-mode): Use it. (python-pdbtrack-stacktrace-info-regexp): Default value is changed. Must also match lines with filename like "" and "". * etc/NEWS: Mention python-pdbtrack-kill-buffers --- etc/NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc') diff --git a/etc/NEWS b/etc/NEWS index e5d0fc1c6cf..2e4f938060f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1445,6 +1445,11 @@ unescaping text. The maximum level is used by default; customize 'font-lock-maximum-decoration' to tone down the decoration. +--- +*** New user option 'python-pdbtrack-kill-buffers'. +If nil, buffers opened during pdbtracking session are not killed when +pdbtracking session is finished. + ** Help --- -- cgit v1.2.1