unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31363: 26.1; Fix gud-statement for pdb
@ 2018-05-04 11:47 Xu Chunyang
  2018-05-05  8:39 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Xu Chunyang @ 2018-05-04 11:47 UTC (permalink / raw)
  To: 31363

I'm using Python 3.6.5. When I have selected a simple expression (such
as 42) then run M-x gud-statement, it fails by saying


*** IndentationError: unexpected indent


The following changes fix the issue from here.


diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 15b428bb68..9cf818e99e 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1694,8 +1694,7 @@ pdb
   (gud-def gud-up     "up"           "<" "Up one stack frame.")
   (gud-def gud-down   "down"         ">" "Down one stack frame.")
   (gud-def gud-print  "p %e"         "\C-p" "Evaluate Python expression at point.")
-  ;; Is this right?
-  (gud-def gud-statement "! %e"      "\C-e" "Execute Python statement at point.")
+  (gud-def gud-statement "!%e"      "\C-e" "Execute Python statement at point.")
 
   ;; (setq comint-prompt-regexp "^(.*pdb[+]?) *")
   (setq comint-prompt-regexp "^(Pdb) *")





^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-06 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 11:47 bug#31363: 26.1; Fix gud-statement for pdb Xu Chunyang
2018-05-05  8:39 ` Eli Zaretskii
2018-05-06 11:57   ` Xu Chunyang
2018-05-06 19:47     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).