Subject: bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files

From: martin rudalics <[email-masked]>
Date: Sat, 16 Jul 2011 15:11:38 +0200

>> $ emacs -Q a_directory_with_images
 >> type v on an image
 >> type q
 >> Now guess what we are looking at?
 >> Back to the directory?
 >> No.
 >> You folks buried it!
 >> And the image is also buried, not killed, too!
 >
 > I don't think anything has actually changed with the bug you reported,
 > but yeah, wow.  `q' popped to a totally different buffer than I
 > expected.
 >
 > Is this a part of the switch-to-buffer/window thingie rework?

It is ;-)  As a matter of fact it's the combination of

(1) a bug in Emacs 23's `pop-to-buffer' causing it to _not_ reselect the
     selected window when it's used for displaying the buffer, and

(2) a recent change which had `find-file' use `pop-to-buffer' instead of
     `set-window-buffer'.

Hopefully fixed now (the bug in Emacs 23 remains unfixed since noone has
complained about it yet - after all `pop-to-buffer' was supposed to use
any but the selected window).

Thanks for complaining, martin