unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Yet another doc-view patch
@ 2007-10-19 12:57 Tassilo Horn
  2007-10-20  3:30 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Tassilo Horn @ 2007-10-19 12:57 UTC (permalink / raw)
  To: emacs-devel

Hi all,

this patch (below or from [1]) implements the following:

  - New minor mode: doc-view-minor-mode which has only one binding C-c
    C-c to switch to doc-view-mode.

  - New function: doc-view-mode-maybe.  If there's another mode for this
    file type in auto-mode-alist (like ps-mode), then use that mode and
    enable doc-view-minor-mode, else enable doc-view-mode.

  - fixed some bugs.

The results are, that opening a e?ps file opens it with ps-mode (as
auto-mode-alist says) and toggles doc-view-minor-mode on.  With C-c C-c
you can toggle between the editing mode found in auto-mode-alist and
doc-view-mode.  If you edited a e?ps file and toggle to d-v-m you'll be
asked to save your changes and the doc will be reconverted.

Currently, C-c C-c for PDF and DVI files will re-open them with
doc-view-mode again, because that's what auto-mode-alist tells.  I
suggest we take the doc-view-mode entries out of auto-mode-alist and
replace them with the proper editing modes, e.g. ps-mode for PDF files
(is that correct?) and fundamental-mode for DVI files.  Then we can add
autoload-cookies similar to the one for e?ps files to doc-view.el and
everything behaves similar for all types of document files.

If you agree, feel free to change that before committing.

Bye,
Tassilo
__________
[1] http://www.tsdh.de/stuff/doc-view.patch

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-20 10:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 12:57 Yet another doc-view patch Tassilo Horn
2007-10-20  3:30 ` Richard Stallman
2007-10-20 10:31   ` Tassilo Horn
2007-10-20 10:32     ` Tassilo Horn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).