GNU bug report logs - #5061
23.1.50; GUD gdb completion problem

Previous Next

Package: emacs;

Reported by: Michael Welsh Duggan <md5i <at> md5i.com>

Date: Fri, 27 Nov 2009 17:45:04 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 5061 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Michael Welsh Duggan <md5i <at> md5i.com>
To: 5061 <at> debbugs.gnu.org
Subject: I have found the location of this bug...
Date: Fri, 27 Nov 2009 12:51:58 -0500
This bug is due to the Stefan Monnier's commit on 2009-10-31.  In
particular, reverting the following diff solves this problem:

---------------------------- lisp/progmodes/gud.el ----------------------------
index 49637f9..e3413ab 100644
@@ -2828,14 +2828,13 @@ Obeying it means displaying in another window the specified file and line."
   "Invoke the debugger COMMAND displaying source in other window."
   (interactive)
   (gud-set-buffer)
   (let ((proc (get-buffer-process gud-comint-buffer)))
     (or proc (error "Current buffer has no process"))
     ;; Arrange for the current prompt to get deleted.
-    (save-excursion
-      (set-buffer gud-comint-buffer)
+    (with-current-buffer gud-comint-buffer
       (save-restriction
 	(widen)
 	(if (marker-position gud-delete-prompt-marker)
 	    ;; We get here when printing an expression.
 	    (goto-char gud-delete-prompt-marker)
 	  (goto-char (process-mark proc))

-- 
Michael Welsh Duggan
(md5i <at> md5i.com)



This bug report was last modified 15 years and 183 days ago.

Previous Next


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