emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0428d0e 2/2: Use "python -m pdb" when "pdb" is miss


From: Noam Postavsky
Subject: [Emacs-diffs] master 0428d0e 2/2: Use "python -m pdb" when "pdb" is missing in M-x pdb
Date: Thu, 8 Aug 2019 20:08:55 -0400 (EDT)

branch: master
commit 0428d0e96be41686858b030eeb4ff27f52822566
Author: Stefan Kangas <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Use "python -m pdb" when "pdb" is missing in M-x pdb
    
    * lisp/progmodes/gud.el (gud-pdb-command-name): Use "python -m pdb"
    when "pdb" is missing.  (Bug#21521)
---
 lisp/progmodes/gud.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index b6a4ad3..30d4b19 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1673,9 +1673,10 @@ and source-file directory for your debugger."
 
     output))
 
-(defcustom gud-pdb-command-name "pdb"
-  "File name for executing the Python debugger.
-This should be an executable on your path, or an absolute file name."
+(defcustom gud-pdb-command-name
+  (if (executable-find "pdb") "pdb" "python -m pdb")
+  "Command that executes the Python debugger."
+  :version "27.1"
   :type 'string
   :group 'gud)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]