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

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 24 Nov 2011 07:14:02 +0000

Your bug report

#8615: all viewed images left sitting in buffer-list

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
8615: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8615
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files
From: Juri Linkov <[email-masked]>
To: Chong Yidong <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Thu, 24 Nov 2011 09:10:45 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> So I think you're right, we should revert 105285.

Done.

> The original behavior requested by the OP (making `q' delete the
> buffer) can be handled, as discussed, by introducing an option to make
> quit-window delete the buffer---but that bit can wait till post-24.1.

Meanwhile, jidanni and other users could use a redefinition
recommended by Stefan:

(global-set-key [remap quit-window]
  (lambda () (interactive) (quit-window (not current-prefix-arg))))

or

(define-key special-mode-map "q"
  (lambda () (interactive) (quit-window (not current-prefix-arg))))

Subject: all viewed images left sitting in buffer-list
From: [email-masked]
To: [email-masked]
Date: Tue, 31 Aug 2010 20:41:56 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

v runs the command dired-view-file
When run on a normal file, a subsequent q is
q runs the command View-quit

But when run upon a .jpg file,
a subsequent q is
q runs the command quit-window

Which leaves the buffer sitting around in the buffer-list!
C-x C-b runs the command list-buffers

emacs-version "24.0.50.1"

I don't know how you will wish to solve this problem. But please don't
ask the user to do C-u q when finished viewing an image vs. q for when
finished viewing a text file.