gnu.emacs.bug
[Top] [All Lists]

bug#5102: 23.1; doc-view on a buffer not linked to a file

Subject: bug#5102: 23.1; doc-view on a buffer not linked to a file
From: Juri Linkov
Date: Fri, 04 Dec 2009 23:50:20 +0200
Newsgroups: gnu.emacs.bug

> There is a problem when trying to display postscript code
> in a ps-mode buffer if the buffer is not linked to a file.
>
> Starting with emacs -Q,
> - open a new buffer,
> - insert in that buffer the content of a postscript file,
> - start ps-mode.
> Now if we type C-c C-c to view the postscript, we are prompted whether
> we want to save the content of the buffer. If we answer "no", we get the error
>
> Wrong type argument: stringp, nil
>
> Message buffer reports that this was issued by doc-view-mode.

With `debug-on-error' enabled it displays:

  Debugger entered--Lisp error: (wrong-type-argument stringp nil)
    file-readable-p(nil)
    doc-view-mode()
    doc-view-toggle-display()
    call-interactively(doc-view-toggle-display nil nil)

Tassilo, please tell whether DocView is designed to work in non-file buffers?

-- 
Juri Linkov
http://www.jurta.org/emacs/




<Prev in Thread] Current Thread [Next in Thread>