emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with docview
Date: Sat, 11 May 2013 15:23:46 -0400	[thread overview]
Message-ID: <87ehddpbgd.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: A6DC1153-A750-4166-987C-247872EFE8A1@rochester.edu

Marvin Doyley <m.doyley@rochester.edu> 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

  reply	other threads:[~2013-05-11 19:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-11 18:56 Problem with docview Marvin Doyley
2013-05-11 19:23 ` Nick Dokos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-05-11 23:15 Marvin Doyley
2013-05-11 20:25 Marvin Doyley
2013-05-11 22:25 ` Nick Dokos
2013-05-11 22:32   ` Nick Dokos
2013-05-11 11:12 Marvin Doyley
2013-05-11 14:05 ` Nick Dokos
2013-05-10 17:25 Marvin Doyley
2013-05-10 18:58 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehddpbgd.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).