all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Branham <alex.branham@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 28503@debbugs.gnu.org
Subject: bug#28503: 25.3; buffer-file-name returns nil in eww-pdfs
Date: Mon, 18 Sep 2017 20:33:31 -0500	[thread overview]
Message-ID: <87d16nsc9g.fsf@gmail.com> (raw)
In-Reply-To: <mfh8vzv7ui.fsf@fencepost.gnu.org>

But in a "normal" doc-view (ie one that's just visiting a file in your home dir), doc-view--buffer-file-name will return the file name even though the buffer is displaying the png, right? From the docstring:

The file name used for conversion.  Normally it’s the same as
‘buffer-file-name’...


On Tue 19 Sep 2017 at 00:40, Glenn Morris <rgm@gnu.org> wrote:

> Alex Branham wrote:
>
>> M-x eww
>> (navigate to a pdf, I found this by searching "pdf test page"): http://www.orimi.com/pdf-test.pdf
>>
>> then eval (buffer-file-name)
>>
>> For me, it returns nil even though the pdf is a file on my computer (somewhere in /tmp for me).
>
> For me, the pdf is displayed using Emacs's Doc View mode.
> This converts the pdf to a png and displays the png.
> So you aren't viewing the actual pdf file, you can't edit it, etc.
> So I don't think it would make sense to set buffer-file-name as if you were.
> (There is doc-view--buffer-file-name, an internal variable.)






  reply	other threads:[~2017-09-19  1:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 19:21 bug#28503: 25.3; buffer-file-name returns nil in eww-pdfs Alex Branham
2017-09-19  0:40 ` Glenn Morris
2017-09-19  1:33   ` Alex Branham [this message]
2018-04-12 23:17 ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=87d16nsc9g.fsf@gmail.com \
    --to=alex.branham@gmail.com \
    --cc=28503@debbugs.gnu.org \
    --cc=rgm@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.