GNU bug report logs - #1415
23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument

Previous Next

Package: emacs;

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

Date: Mon, 24 Nov 2008 04:20:02 UTC

Severity: normal

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 (Emacs bug Tracking System)
To: martin rudalics <rudalics <at> gmx.at>
Subject: bug#1415: marked as done (23.0.60; display-buffer doesn't honor 
 NOT-THIS-WINDOW argument)
[Message part 1 (text/plain, inline)]
Your message dated Thu, 27 Nov 2008 14:41:11 +0100
with message-id <492EA377.40504 <at> gmx.at>
and subject line Re: bug#1415: 23.0.60;	display-buffer doesn't honor NOT-THIS-WINDOW argument
has caused the Emacs bug report #1415,
regarding 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don <at> donarmstrong.com
immediately.)


-- 
1415: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1415
Emacs 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: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; display-buffer doesn't honor NOT-THIS-WINDOW argument
Date: Sat, 22 Nov 2008 18:01:37 +0100
I think that display-buffer returns sometimes the selected window even
if the NOT-THIS-WINDOW argument is true.  Here is a test case:

(progn
  (defun display-buffer-checked (buffer)
    (let ((selected (selected-window))
          (window (display-buffer buffer t)))
      (when (eq selected window)
        (error "display-buffer returned selected window"))
      window))
  
  (let ((foo (get-buffer-create "foo"))
        (bar (get-buffer-create "bar")))
    (select-window (get-buffer-window "*scratch*"))
    (save-selected-window 
      (select-window (display-buffer-checked foo)))
    (save-selected-window 
      (select-window (display-buffer-checked bar)))))


display-buffer-checked just calls display-buffer and checks that the
returned window isn't the selected window.  From looking at the code of
display-buffer, I would say that display-buffer returns the lru window
even if that's the selected window.

Helmut.


In GNU Emacs 23.0.60.10 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2008-11-22 on xaital
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--without-sound' '--without-pop' '--without-gif' '--without-tiff''


[Message part 3 (message/rfc822, inline)]
From: martin rudalics <rudalics <at> gmx.at>
To: 1415-done <at> debbugs.gnu.org
Cc: Helmut Eller <eller.helmut <at> gmail.com>
Subject: Re: bug#1415: 23.0.60;	display-buffer doesn't honor NOT-THIS-WINDOW
 argument
Date: Thu, 27 Nov 2008 14:41:11 +0100
> I've used the patch now for two days and it seems to work well.

I've checked in a slightly more restrictive version.
Please try again and keep an eye on this.

Thanks again for reporting, martin.




This bug report was last modified 16 years and 239 days ago.

Previous Next


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