GNU bug report logs -
#28503
25.3; buffer-file-name returns nil in eww-pdfs
Previous Next
Reported by: Alex Branham <alex.branham <at> gmail.com>
Date: Mon, 18 Sep 2017 19:22:02 UTC
Severity: wishlist
Tags: wontfix
Found in version 25.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 28503 <at> debbugs.gnu.org (full text, mbox):
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 <at> 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.)
This bug report was last modified 7 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.