GNU bug report logs - #12502
24.2.50; Debugger messes up current-buffer

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Mon, 24 Sep 2012 08:34:01 UTC

Severity: normal

Found in version 24.2.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: martin rudalics <rudalics <at> gmx.at>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#12502: closed (24.2.50; Debugger messes up current-buffer)
Date: Wed, 03 Oct 2012 09:16:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 03 Oct 2012 11:14:55 +0200
with message-id <506C020F.8090708 <at> gmx.at>
and subject line Re: bug#12502: 24.2.50; Debugger messes up current-buffer
has caused the debbugs.gnu.org bug report #12502,
regarding 24.2.50; Debugger messes up current-buffer
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
12502: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12502
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; Debugger messes up current-buffer
Date: Mon, 24 Sep 2012 10:31:04 +0200
The debugger now changes the current buffer in the following situation:

1. Create a file foo.el with this code:

(progn
  (require 'cl)
  (defun foo ()
    (with-current-buffer (get-buffer-create "test")
      (let ((b (current-buffer)))
	(debug)
	(assert (eq b (current-buffer)) t))))
  (foo))

2. In the foo.el buffer, evaluate the expression with C-x C-e

3. The debugger pops up with this message:
   Debugger entered: nil

4. Press c (i.e. debugger-continue)

5. The assertion fails with:
  Assertion failed: (eq b (current-buffer)), #<buffer test>, #<buffer foo.el>

This is a regression to older versions.


In GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2012-09-22 on ix
Bzr revision: 110128 cyd <at> gnu.org-20120922032937-yf6yua64ed45tzap
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Configured using:
 `configure '--with-jpeg=no' '--with-gif=no' '--with-tiff=no''



[Message part 3 (message/rfc822, inline)]
From: martin rudalics <rudalics <at> gmx.at>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 12502-done <at> debbugs.gnu.org
Subject: Re: bug#12502: 24.2.50; Debugger messes up current-buffer
Date: Wed, 03 Oct 2012 11:14:55 +0200
>> Thanks for the report.  Would the attached patch fix it?
>
> Yes, that seems to fix the problem.

Installed.  Bug closed.

> But the save-exursion in line 218
> looks now supsisously irrelevant.

I left it in because IIUC it can't do any harm.

martin


This bug report was last modified 12 years and 284 days ago.

Previous Next


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