bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Magne Ingebrigtsen
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
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]