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: Viewing PDFs as text? Date: Wed, 12 Mar 2008 09:32:58 +0100 Message-ID: <87k5k8bav9.fsf@member.fsf.org> References: <7599507d-11a4-4e93-974f-5d7aa924b152@e6g2000prf.googlegroups.com> <871w6hxhx9.fsf@bzg.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205310800 28373 80.91.229.12 (12 Mar 2008 08:33:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2008 08:33:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 12 09:33:47 2008 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 1JZMPC-0001X6-H8 for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 09:33:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZMOd-0000Tv-Pi for ged-emacs-devel@m.gmane.org; Wed, 12 Mar 2008 04:33:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZMOZ-0000Sh-5u for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:33:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZMOX-0000SS-74 for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:33:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZMOX-0000SB-0Z for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:33:05 -0400 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZMOW-0005tZ-O1 for emacs-devel@gnu.org; Wed, 12 Mar 2008 04:33:04 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 88AB5C4856 for ; Wed, 12 Mar 2008 04:33:03 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 12 Mar 2008 04:33:03 -0400 X-Sasl-enc: KPIEiuG7K6iWoVmrs/BUbB7eibKoP8f4iH9nJuZVewg9 1205310783 Original-Received: from localhost (dslb-084-063-043-079.pools.arcor-ip.net [84.63.43.79]) by mail.messagingengine.com (Postfix) with ESMTPA id BC7CEC00A for ; Wed, 12 Mar 2008 04:33:02 -0400 (EDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <871w6hxhx9.fsf@bzg.ath.cx> (Bastien's message of "Tue, 11 Mar 2008 17:57:22 +0000") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (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:92252 Archived-At: Bastien writes: Hi Bastien, > When trying to view a PDF with in a tty, `doc-view-initiate-display' > throws an error about missing support for image, png or other > utilities. > > Maybe it would be better to display the output of pdftotext directly > in a tty. In X Window, the default behavior would be to display the > image when images are supported, and to fall back on pdftotext when > not. That would be the ideal behavior. But looking at the code it seems quite hard to do, especially if you want to keep most/all of doc-view's features. What could be done was to open a separate buffer (in fundamental-mode) that displays the output of pdftotext. I'll give that a try. Bye, Tassilo