From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Doc-view as default viewer for pdf, ps and dvi files Date: Sat, 13 Oct 2007 10:25:39 +0200 Message-ID: <87y7e7775o.fsf@baldur.tsdh.de> References: <87bqbhkhc6.fsf@baldur.tsdh.de> <58152.128.165.0.81.1191330286.squirrel@webmail.lanl.gov> <878x6ljwb4.fsf@baldur.tsdh.de> <87fy0r2u3z.fsf@baldur.tsdh.de> <87wsu1sear.fsf@baldur.tsdh.de> <878x6gqqfa.fsf@baldur.tsdh.de> <87ve9jhifi.fsf@jurta.org> <87d4vpwqo3.fsf@baldur.tsdh.de> <87ir5h4cz1.fsf@jurta.org> <87zlys8xud.fsf@baldur.tsdh.de> <878x6cq7ky.fsf@jurta.org> <87r6k2l9sr.fsf_-_@baldur.tsdh.de> <87k5psjx7v.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192263976 4122 80.91.229.12 (13 Oct 2007 08:26:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 08:26:16 +0000 (UTC) Cc: juri@jurta.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 13 10:26:06 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IgcJr-00014I-8p for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 10:25:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgcJk-0006it-Sp for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2007 04:25:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgcJg-0006hw-Fj for emacs-devel@gnu.org; Sat, 13 Oct 2007 04:25:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgcJf-0006h6-LL for emacs-devel@gnu.org; Sat, 13 Oct 2007 04:25:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgcJf-0006gz-EV for emacs-devel@gnu.org; Sat, 13 Oct 2007 04:25:47 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgcJb-0003bV-9q; Sat, 13 Oct 2007 04:25:43 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 4CFDA311E9; Sat, 13 Oct 2007 04:25:42 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Sat, 13 Oct 2007 04:25:42 -0400 X-Sasl-enc: 0Y8OJtoI/fH+RgfcfQl595vcvSgahnYodO61L0sffOyi 1192263941 Original-Received: from baldur.tsdh.de (dslb-084-063-081-249.pools.arcor-ip.net [84.63.81.249]) by mail.messagingengine.com (Postfix) with ESMTP id E7E85189C; Sat, 13 Oct 2007 04:25:40 -0400 (EDT) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwEAAAAAAi+XoYAAAACXBIWXMAAABIAAAASABGyWs+ AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAw NGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAwMAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAAB I0lEQVRYw+VX2w3DMAi87+zTFbr/IBmiqlTLjnkTLDmqrH5UMRzcQSA4X2sPpAfvYzFADoRagF6h x+NYsgG9OF73R94suzUB6M7v0jRCoLpqRvffH3qUFiWRXFiKZBc9gHZD16grwWhg1QitGE10BwBX thZE4/8HICvgcS5lMVEUi572y1zaSh94etpSYuoDniK9SrTbbCfPEXIu9K6QsoWU8uhAFlKGaE8h 13v85cxZgus/2T3HPe34ERq6Ays+DsAx0TSQ2H/nyy46Jo0Mqsa9Y+hnMph1QoXT0FZRC5jai6zC dJWpZehfacq3ir00iC8pz6XoJgC/mNgL2B9RpC+USwD8s3svijKjaF+Rr8tJIUCUJqyNPwVw/R5e KvLz+iBzPs4pHcCUQrRFAAAAKnpUWHRDb21tZW50AAB42vMKcHW3Ss8r1c1ITUzRyypIVzAyN6sw MjMEAGiaB6m0ORgZAAAAGnpUWHRqcGVnOmNvbG9yc3BhY2UAAHjaMwQAADIAMimkmokAAAAhelRY dGpwZWc6c2FtcGxpbmctZmFjdG9yAAB42jOqMAIAAbsA3XNgMqsAAAAASUVORK5CYII= Mail-Followup-To: rms@gnu.org, juri@jurta.org, emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 12 Oct 2007 20:18:50 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80778 Archived-At: Richard Stallman writes: > Because with C-c C-c you can toggle between image or text display, > but you wen't leave doc-view-mode. After C-c C-e you switch to > another major mode and cannot toggle back with another C-c C-e. > > Now that I understand that, it makes sense. But I did not grasp this > after the first message. So could you please say this explicitly > where this feature is documented? The usage comment in doc-view.el says ,---- | ;; To use it simply open a document file with | ;; | ;; C-x C-f ~/path/to/document RET | ;; | ;; and the document will be converted and displayed, if your emacs supports png | ;; images. With `C-c C-c' you can toggle between the rendered images | ;; representation and the source text representation of the document. With | ;; `C-c C-e' you can switch to an appropriate editing mode for the document. `---- And the function docstrings say ,---- | (defun doc-view-toggle-display () | "Start or stop displaying a document file as a set of images. | This command toggles between showing the text of the document | file and showing the document as a set of images." `---- and ,---- | (defun doc-view-edit-doc () | "Leave `doc-view-mode' and open the current doc with an appropriate editing mode." `---- If you decide to install the patch this feature should be added to the texinfo docs, too. Here's the entry for image-mode, the entry for doc-view-mode would be quite similar, because I took image-mode as pattern. ,----[ (info "(emacs)File Conveniences") ] | Visiting image files automatically selects Image mode. This major | mode allows you to toggle between displaying the file as an image in | the Emacs buffer, and displaying its underlying text representation, | using the command `C-c C-c' (`image-toggle-display'). This works only | when Emacs can display the specific image type. If the displayed | image is wider or taller than the frame, the usual point motion keys | (`C-f', `C-p', and so forth) cause different parts of the image to be | displayed. `---- Bye, Tassilo