[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#4896: Doc-view-mode with View-mode
From: |
Juri Linkov |
Subject: |
bug#4896: Doc-view-mode with View-mode |
Date: |
Thu, 04 Feb 2010 02:01:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) |
>> mode-class=special already doesn't disable view-mode when the ps/pdf/dvi
>> document is visited as text because in this case the major mode is not
>> doc-view-mode.
>
> Fair enough, go for it,
Do you mean putting mode-class=special on `doc-view-mode'?
=== modified file 'lisp/doc-view.el'
--- lisp/doc-view.el 2010-02-01 18:25:47 +0000
+++ lisp/doc-view.el 2010-02-03 23:57:08 +0000
@@ -1124,7 +1124,7 @@ (defun doc-view-search-previous-match (a
;;;; User interface commands and the mode
-;; (put 'doc-view-mode 'mode-class 'special)
+(put 'doc-view-mode 'mode-class 'special)
(defun doc-view-already-converted-p ()
"Return non-nil if the current doc was already converted."
--
Juri Linkov
http://www.jurta.org/emacs/