From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#8615: Please make sure v q removes the buffer for JPGs just like it does for other files Date: Mon, 04 Jul 2011 16:31:50 +0200 Message-ID: References: <8762pqnxf9.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309790159 14393 80.91.229.12 (4 Jul 2011 14:35:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 14:35:59 +0000 (UTC) Cc: 8615@debbugs.gnu.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 16:35:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdkFe-0005RY-Qr for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 16:35:54 +0200 Original-Received: from localhost ([::1]:42685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdkFd-0000IM-OH for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 10:35:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdkCx-0008Gk-CN for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 10:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdkCu-0007ud-6e for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 10:33:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdkCt-0007u8-Ko for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 10:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdkCs-0002D7-CE; Mon, 04 Jul 2011 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2011 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8615 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8615-submit@debbugs.gnu.org id=B8615.13097899398435 (code B ref 8615); Mon, 04 Jul 2011 14:33:02 +0000 Original-Received: (at 8615) by debbugs.gnu.org; 4 Jul 2011 14:32:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdkCA-0002C0-U2 for submit@debbugs.gnu.org; Mon, 04 Jul 2011 10:32:19 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdkC8-0002Bk-6U for 8615@debbugs.gnu.org; Mon, 04 Jul 2011 10:32:17 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QdkBt-0003qt-3S; Mon, 04 Jul 2011 16:32:01 +0200 In-Reply-To: <8762pqnxf9.fsf@jidanni.org> (jidanni@jidanni.org's message of "Thu, 05 May 2011 02:16:42 +0800") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Joanna Newsom's _Have One On Me (2)_: "Go Long" X-Hashcash: 1:23:110704:jidanni@jidanni.org::+4p6Gsynd0UiBI16:0000000000000000000000000000000000000000003Kv/ X-Hashcash: 1:23:110704:8615@debbugs.gnu.org::B3ObCbMmAk6pPClf:0000000000000000000000000000000000000000088Uf X-MailScanner-ID: 1QdkBt-0003qt-3S MailScanner-NULL-Check: 1310394721.18196@w7gLtKMDhSRPLa5XgWb18g X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 04 Jul 2011 10:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47947 Archived-At: jidanni@jidanni.org writes: > Please make sure v q removes the buffer for JPGs just like it does for > text files, in dired. Yes this is a duplicate report. You will notice > all the JPGs you viewed still sitting there in your buffer list. The problem is this: (if (eq (with-current-buffer buffer (get major-mode 'mode-class)) 'special) (progn (switch-to-buffer buffer) (message "Not using View mode because the major mode is special")) `view-mode' refuses to switch itself on if the mode is special, and Image mode is apparently special. Is there any particular reason for `view-mode' to refuse to switch itself on in special modes? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/