From: Tassilo Horn <tassilo@member.fsf.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-pretest-bug@gnu.org, 2058@emacsbugs.donarmstrong.com
Subject: bug#2058: 23.0.60; bewildering behavior when visit new file throw.pdf
Date: Tue, 27 Jan 2009 10:55:40 +0100 [thread overview]
Message-ID: <87tz7lt6n7.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <mailman.5816.1232925816.26697.bug-gnu-emacs@gnu.org> (Drew Adams's message of "Sun, 25 Jan 2009 15:09:19 -0800")
"Drew Adams" <drew.adams@oracle.com> writes:
Hi Drew,
> emacs -Q
>
> I did C-x C-f throw.pdf, with no existing file throw.pdf. The ensuing
> messages and interaction were bewildering.
Is that really a use-case?
> An extremely long message appeared in the echo area:
> "No image (png) support available or some conversion utility for pdf
> files is missing. Type C-c C-c to switch to an editing mode or C-c
> C-t to open a buffer showing the doc as text."
>
> But the new, empty file throw.pdf appeared to be visited with no
> problem. I tried to type into it. That threw me back to the previous
> buffer I had been in (Dired), and crazy error msgs were displayed.
The buffer was in doc-view-mode which has its own keymap, and most
probably you've hit k or q, which kills/buries the buffer.
> I tried again, and this time I tried to type `C-c C-t', since the
> message indicated that that would open the buffer as text. That too
> led to errors.
Yeah, in the background it tries to run pdftotext on the pdf, to extract
the plain text contents.
> I don't know exactly what happened, but you will, as soon as you try
> it. ;-)
Sure. So what's your advice how to handle this situation? Check if the
file is existent (and non-empty) and if not, print a message and
fallback to fundamental mode?
Bye,
Tassilo
next parent reply other threads:[~2009-01-27 9:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5816.1232925816.26697.bug-gnu-emacs@gnu.org>
2009-01-27 9:55 ` Tassilo Horn [this message]
2009-01-27 12:02 ` bug#2058: 23.0.60; bewildering behavior when visit new file throw.pdf Alan Mackenzie
2009-01-27 12:43 ` Tassilo Horn
2009-01-27 14:42 ` Alan Mackenzie
2009-01-27 14:46 ` Tassilo Horn
2009-01-27 16:03 ` Tassilo Horn
2009-01-27 16:20 ` Drew Adams
2009-01-28 8:48 ` Kevin Rodgers
[not found] ` <mailman.6064.1233133417.26697.bug-gnu-emacs@gnu.org>
2009-01-28 20:28 ` Tassilo Horn
2009-01-27 15:44 ` Drew Adams
2009-01-27 22:58 ` Richard M Stallman
2009-01-28 7:45 ` Tassilo Horn
2009-01-25 23:09 Drew Adams
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=87tz7lt6n7.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=2058@emacsbugs.donarmstrong.com \
--cc=drew.adams@oracle.com \
--cc=emacs-pretest-bug@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.