all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Yet another doc-view patch
Date: Fri, 19 Oct 2007 14:57:16 +0200	[thread overview]
Message-ID: <877ilj45zn.fsf@baldur.tsdh.de> (raw)

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

             reply	other threads:[~2007-10-19 12:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 12:57 Tassilo Horn [this message]
2007-10-20  3:30 ` Yet another doc-view patch Richard Stallman
2007-10-20 10:31   ` Tassilo Horn
2007-10-20 10:32     ` Tassilo Horn

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=877ilj45zn.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.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.