From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with docview Date: Sat, 11 May 2013 15:23:46 -0400 Message-ID: <87ehddpbgd.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFOm-0004k8-GQ for emacs-orgmode@gnu.org; Sat, 11 May 2013 15:24:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbFOh-0000YJ-N6 for emacs-orgmode@gnu.org; Sat, 11 May 2013 15:24:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:39894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFOh-0000Y7-GP for emacs-orgmode@gnu.org; Sat, 11 May 2013 15:23:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UbFOf-0002To-GV for emacs-orgmode@gnu.org; Sat, 11 May 2013 21:23:57 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 May 2013 21:23:57 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 May 2013 21:23:57 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marvin Doyley writes: > Debugger entered--Lisp error: (error "Invalid image file name `nil'") > signal(error ("Invalid image file name `nil'")) > error("Invalid image file name `%s'" nil) > image-type(nil png nil) > create-image(nil png nil :pointer arrow) > apply(create-image nil png nil (:pointer arrow)) > (let ((image (apply (quote create-image) file (quote png) nil args))) (setq doc-view-current-image image) (insert-image image (concat "[" file "]") nil doc-view-current-slice)) > doc-view-insert-image(nil :pointer arrow) > (let ((beg (point))) (doc-view-insert-image (nth (1- page) doc-view-current-files) :pointer (quote arrow)) (put-text-property beg (point) (quote help-echo) doc-view-current-info)) > (let ((len (length doc-view-current-files))) (if (< page 1) (setq > page 1) (if (> page len) (progn (setq page len)))) (setq > doc-view-current-page page doc-view-current-info (concat (propertize > (format "Page %d of %d." doc-view-current-page len) (quote face) > (quote bold)) (if doc-view-current-converter-process " (still > converting...)\n" "\n") (if (and doc-view-current-search-matches (assq > doc-view-current-page doc-view-current-search-matches)) (progn (concat > (propertize "Search matches:\n" (quote face) (quote bold)) (let (...) > (progn ...) contexts)))))) (setq inhibit-read-only t) (erase-buffer) > (let ((beg (point))) (doc-view-insert-image (nth (1- page) > doc-view-current-files) :pointer (quote arrow)) (put-text-property beg > (point) (quote help-echo) doc-view-current-info)) (insert "\n" > doc-view-current-info) (goto-char (point-min)) (forward-char) (setq > inhibit-read-only nil)) > doc-view-goto-page(1) You seem to have a buggy version of doc-view.el: doc-view-current-files is not used by doc-view-goto-page in the version that I have, which is the version bundled with GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2013-04-09 In my version of doc-view-goto-page, there is a comment that says: ,---- | ;; Update the buffer | ;; We used to find the file name from doc-view-current-files but | ;; that's not right if the pages are not generated sequentially | ;; or if the page isn't in doc-view-current-files yet. `---- which leads me to believe that you will need to upgrade your version of doc-view (or perhaps your emacs). -- Nick