emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#31363: closed (26.1; Fix gud-statement for pdb)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#31363: closed (26.1; Fix gud-statement for pdb)
Date: Sun, 06 May 2018 19:49:03 +0000

Your message dated Sun, 06 May 2018 22:47:59 +0300
with message-id <address@hidden>
and subject line Re: bug#31363: 26.1; Fix gud-statement for pdb
has caused the debbugs.gnu.org bug report #31363,
regarding 26.1; Fix gud-statement for pdb
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
31363: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31363
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.1; Fix gud-statement for pdb Date: Fri, 04 May 2018 19:47:15 +0800 User-agent: Notmuch/0.26.2+26~g9e158fb (https://notmuchmail.org) Emacs/26.1 (x86_64-apple-darwin17.5.0)
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) *")



--- End Message ---
--- Begin Message --- Subject: Re: bug#31363: 26.1; Fix gud-statement for pdb Date: Sun, 06 May 2018 22:47:59 +0300
> From: Xu Chunyang <address@hidden>
> Cc: address@hidden
> Date: Sun, 06 May 2018 19:57:21 +0800
> 
> Eli Zaretskii <address@hidden> writes:
> 
> >> From: Xu Chunyang <address@hidden>
> >> 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.


--- End Message ---

reply via email to

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