From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Viewing PDFs Date: Fri, 28 Oct 2011 17:29:31 +0200 Message-ID: <878vo5dtic.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319815804 20302 80.91.229.12 (28 Oct 2011 15:30:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2011 15:30:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 17:30:00 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJoNb-0005xm-IY for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 17:29:59 +0200 Original-Received: from localhost ([::1]:42276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJoNb-0002q2-0n for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 11:29:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJoNW-0002pv-IE for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 11:29:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJoNV-0001di-Cf for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 11:29:54 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJoNV-0001d0-7N for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 11:29:53 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RJoNS-0005qO-NB for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 17:29:50 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2011 17:29:50 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2011 17:29:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:B6bnYfCulISX0hYuhTrN+diBPvc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82689 Archived-At: Perry Smith writes: Hi Perry, > I'm running emacs 24.0.90 on a Mac 10.7.2. I open a pdf and it first > appears as raw text. I try "doc-view-mode" and I get this stack > (after setting debug-on-error). > >> locate-file-internal(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin" >> "/Applications/Emacs.app/Contents/MacOS/libexec" >> "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1) >> locate-file(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin" >> "/Applications/Emacs.app/Contents/MacOS/libexec" >> "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1) >> executable-find(nil) >> doc-view-initiate-display() >> doc-view-mode() >> call-interactively(doc-view-mode t nil) >> execute-extended-command(nil) >> call-interactively(execute-extended-command nil nil) It seems you've built emacs without PNG support, or ghostscript is not on your PATH. Therefore, doc-view falls back to show you the plain text contents of the PDF, and then it fails because `doc-view-pdftotext-program' is also not oun your PATH. The reason for not showing the PDF as images should be messaged, so check your *Messages* buffer. Bye, Tassilo -- (What the world needs (I think) is not (a Lisp (with fewer parentheses)) but (an English (with more.))) Brian Hayes, http://tinyurl.com/3y9l2kf