From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 4896@emacsbugs.donarmstrong.com, Tassilo Horn <tassilo@member.fsf.org>
Subject: bug#4896: Doc-view-mode with View-mode
Date: Thu, 04 Feb 2010 21:45:04 +0200 [thread overview]
Message-ID: <87vdedhrvz.fsf@mail.jurta.org> (raw)
In-Reply-To: <jwvaavproqk.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Thu, 04 Feb 2010 10:43:11 -0500")
>>>> 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'?
>
> Yes.
Actually the same problem exists also for `image-mode'. Visiting an image
from an archive activates `view-mode'. This causes incorrect image browsing
that uses view-mode scrolling commands instead of image scrolling commands.
Maybe `image-mode' should have the property mode-class=special as well?
=== modified file 'lisp/image-mode.el'
--- lisp/image-mode.el 2010-01-13 08:35:10 +0000
+++ lisp/image-mode.el 2010-02-04 19:44:42 +0000
@@ -317,6 +317,8 @@ (defvar image-minor-mode-map
(defvar bookmark-make-record-function)
+(put 'image-mode 'mode-class 'special)
+
;;;###autoload
(defun image-mode ()
"Major mode for image files.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2010-02-04 19:45 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 7:45 bug#4896: DocView: Continuous mode Juri Linkov
2009-11-10 18:03 ` Stefan Monnier
2009-11-12 9:57 ` Juri Linkov
2009-11-12 11:04 ` Tassilo Horn
2009-11-12 11:14 ` Juri Linkov
2009-11-12 13:10 ` Tassilo Horn
2009-11-12 15:49 ` Stefan Monnier
2009-11-12 16:01 ` Tassilo Horn
2009-11-23 9:47 ` Juri Linkov
2009-11-23 11:07 ` Tassilo Horn
2009-11-23 20:43 ` Juri Linkov
2009-11-24 17:08 ` Juri Linkov
2009-11-24 19:48 ` Stefan Monnier
2009-11-25 17:28 ` Juri Linkov
2009-11-28 22:52 ` Juri Linkov
[not found] ` <mailman.11748.1259452054.2239.bug-gnu-emacs@gnu.org>
2009-11-29 9:27 ` Tassilo Horn
2009-11-29 16:05 ` Juri Linkov
2009-11-29 19:11 ` Tassilo Horn
2009-11-29 22:05 ` Juri Linkov
2009-11-30 7:32 ` Tassilo Horn
2009-11-30 12:04 ` Juri Linkov
2009-11-30 13:36 ` Tassilo Horn
2009-11-30 16:17 ` Juri Linkov
2009-11-24 17:06 ` Juri Linkov
2009-11-23 9:52 ` Juri Linkov
2009-11-23 11:03 ` Tassilo Horn
2009-11-23 21:36 ` Stefan Monnier
2009-11-24 17:06 ` Juri Linkov
2009-12-16 9:23 ` Juri Linkov
2010-02-01 23:30 ` bug#4896: Doc-view-mode with View-mode Juri Linkov
2010-02-02 2:45 ` Stefan Monnier
2010-02-02 22:49 ` Juri Linkov
2010-02-03 2:36 ` Stefan Monnier
2010-02-04 0:01 ` Juri Linkov
2010-02-04 15:43 ` Stefan Monnier
2010-02-04 19:45 ` Juri Linkov [this message]
2010-02-04 22:35 ` Stefan Monnier
2022-04-28 12:08 ` bug#4896: DocView: Continuous mode Lars Ingebrigtsen
2022-04-28 17:35 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vdedhrvz.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=4896@emacsbugs.donarmstrong.com \
--cc=monnier@iro.umontreal.ca \
--cc=tassilo@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.