* lisp/image-mode.el (image-toggle-display-image): Remove tautological `major-mode'
authorJuri Linkov <juri@jurta.org>
Thu, 2 Feb 2012 00:49:06 +0000 (02:49 +0200)
committerJuri Linkov <juri@jurta.org>
Thu, 2 Feb 2012 00:49:06 +0000 (02:49 +0200)
from the `derived-mode-p' test.

lisp/ChangeLog
lisp/image-mode.el

index ce373a4..cc6aecd 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-02  Juri Linkov  <juri@jurta.org>
+
+       * image-mode.el (image-toggle-display-image): Remove tautological
+       `major-mode' from the `derived-mode-p' test.
+
 2012-02-02  Kenichi Handa  <handa@m17n.org>
 
        * composite.el (compose-region, compose-string): Signal error for
index a9a8d15..953cb9e 100644 (file)
@@ -482,7 +482,7 @@ Remove text properties that display the image."
   "Show the image of the image file.
 Turn the image data into a real image, but only if the whole file
 was inserted."
-  (unless (derived-mode-p 'image-mode major-mode)
+  (unless (derived-mode-p 'image-mode)
     (error "The buffer is not in Image mode"))
   (let* ((filename (buffer-file-name))
         (data-p (not (and filename