GNU bug report logs - #31363
26.1; Fix gud-statement for pdb

Previous Next

Package: emacs;

Reported by: Xu Chunyang <mail <at> xuchunyang.me>

Date: Fri, 4 May 2018 11:48:02 UTC

Severity: normal

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31363 in the body.
You can then email your comments to 31363 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31363; Package emacs. (Fri, 04 May 2018 11:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xu Chunyang <mail <at> xuchunyang.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 04 May 2018 11:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xu Chunyang <mail <at> xuchunyang.me>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Fix gud-statement for pdb
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.


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) *")




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31363; Package emacs. (Sat, 05 May 2018 08:40:01 GMT) Full text and rfc822 format available.

Message #8 received at 31363 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Xu Chunyang <mail <at> xuchunyang.me>
Cc: 31363 <at> debbugs.gnu.org
Subject: Re: bug#31363: 26.1; Fix gud-statement for pdb
Date: Sat, 05 May 2018 11:39:01 +0300
> From: Xu Chunyang <mail <at> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31363; Package emacs. (Sun, 06 May 2018 11:58:01 GMT) Full text and rfc822 format available.

Message #11 received at 31363 <at> debbugs.gnu.org (full text, mbox):

From: Xu Chunyang <mail <at> xuchunyang.me>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31363 <at> debbugs.gnu.org
Subject: Re: bug#31363: 26.1; Fix gud-statement for pdb
Date: Sun, 06 May 2018 19:57:21 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Xu Chunyang <mail <at> 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.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 06 May 2018 19:49:03 GMT) Full text and rfc822 format available.

Notification sent to Xu Chunyang <mail <at> xuchunyang.me>:
bug acknowledged by developer. (Sun, 06 May 2018 19:49:03 GMT) Full text and rfc822 format available.

Message #16 received at 31363-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Xu Chunyang <mail <at> xuchunyang.me>
Cc: 31363-done <at> debbugs.gnu.org
Subject: Re: bug#31363: 26.1; Fix gud-statement for pdb
Date: Sun, 06 May 2018 22:47:59 +0300
> From: Xu Chunyang <mail <at> xuchunyang.me>
> Cc: 31363 <at> debbugs.gnu.org
> Date: Sun, 06 May 2018 19:57:21 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Xu Chunyang <mail <at> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Jun 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.