From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2058: 23.0.60; bewildering behavior when visit new file throw.pdf Date: Tue, 27 Jan 2009 10:55:40 +0100 Message-ID: <87tz7lt6n7.fsf@thinkpad.tsdh.de> References: Reply-To: Tassilo Horn , 2058@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233051902 14350 80.91.229.12 (27 Jan 2009 10:25:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 10:25:02 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 2058@emacsbugs.donarmstrong.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 11:26:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LRl91-00089I-Le for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 11:26:12 +0100 Original-Received: from localhost ([127.0.0.1]:51766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRl7j-0000tt-2y for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 05:24:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRl6U-00009G-9g for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:23:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRl6S-00007j-Hn for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:23:33 -0500 Original-Received: from [199.232.76.173] (port=40864 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRl6S-00007N-4K for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:23:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48852) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRl6R-0003kS-KK for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2009 05:23:31 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0RANTmc003820; Tue, 27 Jan 2009 02:23:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0RA57jK031576; Tue, 27 Jan 2009 02:05:07 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tassilo Horn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 27 Jan 2009 10:05:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2058 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2058-submit@emacsbugs.donarmstrong.com id=B2058.123305014629328 (code B ref 2058); Tue, 27 Jan 2009 10:05:07 +0000 Original-Received: (at 2058) by emacsbugs.donarmstrong.com; 27 Jan 2009 09:55:46 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0R9thEW029318 for <2058@emacsbugs.donarmstrong.com>; Tue, 27 Jan 2009 01:55:44 -0800 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 47A4C789AACC; Tue, 27 Jan 2009 10:55:42 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11319-08; Tue, 27 Jan 2009 10:55:41 +0100 (CET) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp190.uni-koblenz.de [141.26.71.190]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 258B17893C8B; Tue, 27 Jan 2009 10:55:41 +0100 (CET) In-Reply-To: (Drew Adams's message of "Sun, 25 Jan 2009 15:09:19 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 27 Jan 2009 05:23:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24605 gmane.emacs.pretest.bugs:23783 Archived-At: "Drew Adams" 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