From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: doc-view and mailcap Date: Thu, 18 Oct 2007 09:31:56 +0200 Message-ID: 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> <87bqb8rmk2.fsf@jurta.org> <87ejfwgf5k.fsf@jurta.org> <877ills6b4.fsf@jurta.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192692927 5916 80.91.229.12 (18 Oct 2007 07:35:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 07:35:27 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 09:35:27 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 1IiPud-000696-Md for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 09:35:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiPuW-00005a-Cu for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 03:35:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiPuS-00005K-56 for emacs-devel@gnu.org; Thu, 18 Oct 2007 03:35:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiPuQ-00004w-Go for emacs-devel@gnu.org; Thu, 18 Oct 2007 03:35:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiPuQ-00004t-EQ for emacs-devel@gnu.org; Thu, 18 Oct 2007 03:35:10 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IiPuK-0006u3-DI; Thu, 18 Oct 2007 03:35:04 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id l9I7Z09V009283; Thu, 18 Oct 2007 09:35:02 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 7013212C67; Thu, 18 Oct 2007 09:35:00 +0200 (CEST) X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Followup-To: Juri Linkov , rms@gnu.org, emacs-devel@gnu.org In-Reply-To: <877ills6b4.fsf@jurta.org> (Juri Linkov's message of "Thu, 18 Oct 2007 02:35:59 +0300") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-DCC-Rhyolite-Metrics: poseidon 104; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new 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:81136 Archived-At: On Thu, Oct 18 2007, Juri Linkov wrote: >> (and (fboundp 'doc-view-mode-p) >> (doc-view-mode-p)) >> >> with (in `doc-view.el')... >> >> (defun doc-view-mode-p () >> (and (display-graphic-p) Maybe an additional test like "(executable-find doc-view-ghostscript-program)" would be useful here. >> (image-type-available-p 'png))) >> >> Shouldn't it? > > I think the second variant is better. Since this is a matter of doc-view > to decide if it can support displaying, it should have such a function > (autoloaded). I agree. And it should accept an argument TYPE (`postscript', `pdf', `dvi') like `image-type-available-p' to decide it for each document type, e.g. ... ("application/postscript" (viewer . doc-view-mode) (test . (and (fboundp 'doc-view-mode-p) (doc-view-mode-p 'postscript)) (type . "application/postscript")) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/