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: Please install: Some improvements to doc-view.el Date: Tue, 09 Oct 2007 23:30:16 +0200 Message-ID: <87ejg47z87.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> <87abqt2x52.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191965466 13379 80.91.229.12 (9 Oct 2007 21:31:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 21:31:06 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 09 23:31:04 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 1IfMfO-0000jD-0t for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2007 23:31:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfMfI-0007Wo-DJ for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2007 17:30:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfMeq-00079i-Ed for emacs-devel@gnu.org; Tue, 09 Oct 2007 17:30:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfMen-000776-Tn for emacs-devel@gnu.org; Tue, 09 Oct 2007 17:30:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfMen-00076r-9P for emacs-devel@gnu.org; Tue, 09 Oct 2007 17:30:25 -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 1IfMej-0003WS-3N; Tue, 09 Oct 2007 17:30:21 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 7097D2FB05; Tue, 9 Oct 2007 17:30:20 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 09 Oct 2007 17:30:20 -0400 X-Sasl-enc: v1lQHwcXfueJH04jFKmkiNPb+Q5CF2rWI3Fj6FuI2b2B 1191965419 Original-Received: from baldur.tsdh.de (dslb-084-063-030-111.pools.arcor-ip.net [84.63.30.111]) by mail.messagingengine.com (Postfix) with ESMTP id EBB7B11631; Tue, 9 Oct 2007 17:30:18 -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 Linkov , emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 09 Oct 2007 16:03:00 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: 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:80482 Archived-At: Richard Stallman writes: Hi Richard, > DocView and the Gnus mailcap mechanism are unrelated features. > > They are related because they do the same job: display non-textual > formats for Emacs. They work in different ways, but each can still > substitute for the other. If you have a PDF or PS or DVI file, you > can display it either with doc-view or with the Gnus mailcap > mechanism. > > So do we really want both methods? If so, when should each method be > used? Personally I think a solution which doesn't give the focus to another application is preferable and thus should be the default. Gnus cannot use doc-view since that depends on GNU Emacs whereas Gnus wants to run on all Emacsen. > Or how should the user choose? Juri proposed a very good solution in <87ve9jhifi.fsf@jurta.org> and <87ir5h4cz1.fsf@jurta.org>. In summary: 1. He proposed to make doc-view the standard viewer for pdf/dvi/ps files and add a binding `C-c C-c' which would toggle between the rendered image representation and the text representation just like image-mode does. This way `v' in dired would use doc-view by default and `C-c C-c' in doc-view-mode would switch to the text representation you get when you hit `v' on a doc nowadays. 2. The Gnus mailcap mechanism could be used for the default command for `dired-do-shell-command' (bound to `!' in dired). I think this is a very good solution and I'm willing to implement point 1 if we agree on it. Bye, Tassilo