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

* bug#31363: 26.1; Fix gud-statement for pdb
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2018-05-05  8:39 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: 31363

> From: Xu Chunyang <mail@xuchunyang.me>
> Date: Fri, 04 May 2018 19:47:15 +0800
> 
> 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.

Thanks.  Is the problem and the solution the same for Python 2.x?





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

* bug#31363: 26.1; Fix gud-statement for pdb
  2018-05-05  8:39 ` Eli Zaretskii
@ 2018-05-06 11:57   ` Xu Chunyang
  2018-05-06 19:47     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Xu Chunyang @ 2018-05-06 11:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 31363

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Xu Chunyang <mail@xuchunyang.me>
>> Date: Fri, 04 May 2018 19:47:15 +0800
>> 
>> 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.
>
> Thanks.  Is the problem and the solution the same for Python 2.x?

Yes, I've checked both of them against Python 2.7.14.





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

* bug#31363: 26.1; Fix gud-statement for pdb
  2018-05-06 11:57   ` Xu Chunyang
@ 2018-05-06 19:47     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2018-05-06 19:47 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: 31363-done

> From: Xu Chunyang <mail@xuchunyang.me>
> Cc: 31363@debbugs.gnu.org
> Date: Sun, 06 May 2018 19:57:21 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Xu Chunyang <mail@xuchunyang.me>
> >> Date: Fri, 04 May 2018 19:47:15 +0800
> >> 
> >> 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.
> >
> > Thanks.  Is the problem and the solution the same for Python 2.x?
> 
> Yes, I've checked both of them against Python 2.7.14.

Thanks, pushed to the release branch.





^ permalink raw reply	[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).