From unknown Sun Jun 22 07:39:56 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3865: 23.0.95; doc-view-mode with PDF without PNG support Reply-To: reiner.steib@gmx.de, 3865@debbugs.gnu.org Resent-From: Reiner Steib Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 16 Jul 2009 09:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124773493027196 (code B ref -1); Thu, 16 Jul 2009 09:05:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jul 2009 09:02:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6G923PZ027182 for ; Thu, 16 Jul 2009 02:02:05 -0700 Received: from mx10.gnu.org ([199.232.76.166]:42300) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MRMqn-0000N5-Sz for emacs-pretest-bug@gnu.org; Thu, 16 Jul 2009 05:02:03 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MRMqk-0007vS-BV for emacs-pretest-bug@gnu.org; Thu, 16 Jul 2009 05:02:00 -0400 Received: from mail.uni-ulm.de ([134.60.1.11]:56692) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRMqi-0007tW-VY for emacs-pretest-bug@gnu.org; Thu, 16 Jul 2009 05:01:57 -0400 Received: from poseidon.rz.uni-ulm.de (localhost [127.0.0.1]) by smtp.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n6G91iC5002326; Thu, 16 Jul 2009 11:01:44 +0200 (MEST) Received: (from cyrus@localhost) by poseidon.rz.uni-ulm.de (8.14.2/8.14.1/Submit) id n6G91i9a002321; Thu, 16 Jul 2009 11:01:44 +0200 (MEST) Received: from gate-6.ruv.de (gate-6.ruv.de [195.145.180.106]) by imap.uni-ulm.de (Horde MIME library) with HTTP; Thu, 16 Jul 2009 11:01:43 +0200 Message-ID: <20090716110143.d83eb84miog84csg@imap.uni-ulm.de> Date: Thu, 16 Jul 2009 11:01:43 +0200 From: Reiner Steib To: emacs-pretest-bug@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: To reproduce: M-x toggle-debug-on-error RET M-x toggle-debug-on-quit RET C-x C-f some-pdf-file.pdf I get the message: No PNG support available or some conversion utility for pdf files is missing. Type C-c C-c to switch to fundamental-mode, C-c C-t to show the doc as text in a separate buffer or k to kill this buffer. I don't have the png-DLL installed: (image-type-available-p 'png) -> nil Maybe also some of the conversion programs are not installed. But I =20 just wanted to view/edit the PDF file. Problems: - The message is too long to be read in the echo area. - When pressing some key (e.g. `down'), I get "image-next-line: Invalid image specification". So the first message disappears as soon as the user does a movement. This hit me several times. I didn't realize the message so I killed the buffer and used `find-file-literally'. I think the right behavior would be either... (1) Switch to fundamental-mode automatically if doc-view-mode cannot do anything useful and just display a message. (2) Instead of telling about `C-c C-c', `C-c C-t' and `k', use a (y-or-n-p) dialog. In GNU Emacs 23.0.95.1 (i386-mingw-nt6.0.6001) of 2009-06-20 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: show-paren-mode: t savehist-mode: t recentf-mode: t msb-mode: t iswitchb-mode: t desktop-save-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f C-g M-x t o g g d e e M-x q C-x C-f M-x r e p o r t - e m Recent messages: Cleaning up the recentf list...done (0 removed) No desktop file. For information about GNU Emacs and the GNU system, type C-h C-a. Quit Debug on Error enabled globally Debug on Quit enabled globally No PNG support available or some conversion utility for pdf files is =20 missing. Type C-c C-c to switch to fundamental-mode, C-c C-t to show =20 the doc as text in a separate buffer or k to kill this buffer. Error during redisplay: (wrong-type-argument numberp nil) Entering debugger... Error during redisplay: (wrong-type-argument numberp nil) [4 times] *Backtrace*: Debugger entered--Lisp error: (error "Invalid image specification") image-size(nil) image-next-line(1) call-interactively(image-next-line nil nil) Bye, Reiner From unknown Sun Jun 22 07:39:56 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3865: Patch for #3865: Would somebody please commit on HEAD and branch? Reply-To: Tassilo Horn , 3865@debbugs.gnu.org Resent-From: Tassilo Horn Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Jul 2009 18:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3865-submit@emacsbugs.donarmstrong.com id=B3865.124785672116637 (code B ref 3865); Fri, 17 Jul 2009 18:55:05 +0000 Received: (at 3865) by emacsbugs.donarmstrong.com; 17 Jul 2009 18:52:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6HIpvOI016632 for <3865@emacsbugs.donarmstrong.com>; Fri, 17 Jul 2009 11:51:58 -0700 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id C77CA3BBBE7; Fri, 17 Jul 2009 14:51:56 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 17 Jul 2009 14:51:56 -0400 X-Sasl-enc: D0QtOoP4VOkANXyr7kovUbmVETmhQFvLIuE+ifFnrp4z 1247856716 Received: from thinkpad.tsdh.de (p54AF1FA5.dip0.t-ipconnect.de [84.175.31.165]) by mail.messagingengine.com (Postfix) with ESMTPA id A164B8C3F; Fri, 17 Jul 2009 14:51:55 -0400 (EDT) From: Tassilo Horn To: emacs-devel@gnu.org Cc: 3865@debbugs.gnu.org Mail-Copies-To: never Date: Fri, 17 Jul 2009 20:51:58 +0200 Message-ID: <87vdlr2ldd.fsf@thinkpad.tsdh.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi all, this patch fixes the inconveniences Reiner pointed out in #3865. Could somebody please commit it for me on branch and head? I'm to busy to read up how to merge between branches with CVS -- I'm going to marry tomorrow! :-) --8<---------------cut here---------------start------------->8--- 2009-07-16 Tassilo Horn * doc-view.el (doc-view-initiate-display): Add yes-or-no-p if rendering of pngs is not possible instead of messaging a long description. --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Index: lisp/doc-view.el =================================================================== RCS file: /sources/emacs/emacs/lisp/doc-view.el,v retrieving revision 1.87 diff -u -r1.87 doc-view.el --- lisp/doc-view.el 2 Apr 2009 21:12:56 -0000 1.87 +++ lisp/doc-view.el 17 Jul 2009 18:44:18 -0000 @@ -1078,15 +1078,12 @@ "editing or viewing the document.")))) (message "%s" - (substitute-command-keys - (concat "No PNG support available or some conversion utility for " - (file-name-extension doc-view-buffer-file-name)" files is missing. " - "Type \\[doc-view-toggle-display] to switch to " - (if (eq doc-view-doc-type 'ps) - "ps-mode" - "fundamental-mode") - ", \\[doc-view-open-text] to show the doc as text in a separate buffer " - " or \\[doc-view-kill-proc-and-buffer] to kill this buffer."))))) + (concat "No PNG support available or some conversion utility for " + (file-name-extension doc-view-buffer-file-name) " files is missing.")) + (if (and (executable-find doc-view-pdftotext-program) + (yes-or-no-p "Cannot render file. View extracted text instead? ")) + (doc-view-open-text) + (doc-view-toggle-display)))) (defvar bookmark-make-record-function) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo From unknown Sun Jun 22 07:39:56 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3865: Patch for #3865: Would somebody please commit on HEAD and branch? Reply-To: Bastien , 3865@debbugs.gnu.org Resent-From: Bastien Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Jul 2009 19:25:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3865-submit@emacsbugs.donarmstrong.com id=B3865.124785826421650 (code B ref 3865); Fri, 17 Jul 2009 19:25:05 +0000 Received: (at 3865) by emacsbugs.donarmstrong.com; 17 Jul 2009 19:17:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-px0-f199.google.com (mail-px0-f199.google.com [209.85.216.199]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6HJHeI1021645 for <3865@emacsbugs.donarmstrong.com>; Fri, 17 Jul 2009 12:17:41 -0700 Received: by pxi37 with SMTP id 37so610504pxi.19 for <3865@emacsbugs.donarmstrong.com>; Fri, 17 Jul 2009 12:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type; bh=zQt55rzF3wUr8eCQFw0I6wKgZtfZx0quFw2EMsLoRSg=; b=IJperZ9laKtEGvpGN9LSWx0qTiUF17Rpx5lRtpaAHuK9KKLNI16UxyIHS6Ue/lVjj6 eoFT57d2jmc+KULMi8mg/OzifxYwuX+nzFU11fK+f1mcd82SaUB/TBg/iiIW+LJGQOfW 1M+RD1EYP8Q5iiB8cJ/3feV2h36KqPqgiY+js= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=flste1MD/tfoLpHFH2UQ7sc8cFKG9Dk1fWbsEZpHA04r5Mz3nPbL/mVegeMJB0dc3i rjPEI71PTx8mZkcujZEKBiLdGKWVcRZWXn7iqc6MMmt4LonT9n+hso8ghD+u5LbluKu3 a3EwgZ4nLfO8+OaTSjg90v1P0Gvg4VR+bOIYw= Received: by 10.141.3.12 with SMTP id f12mr1115073rvi.12.1247858255274; Fri, 17 Jul 2009 12:17:35 -0700 (PDT) Received: from bzg.ath.cx ([222.29.50.13]) by mx.google.com with ESMTPS id c20sm8451788rvf.1.2009.07.17.12.17.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 17 Jul 2009 12:17:34 -0700 (PDT) From: Bastien To: emacs-devel@gnu.org Cc: 3865@debbugs.gnu.org In-Reply-To: <87vdlr2ldd.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 17 Jul 2009 20:51:58 +0200") References: <87vdlr2ldd.fsf@thinkpad.tsdh.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Date: Fri, 17 Jul 2009 21:17:28 +0200 Message-ID: <87r5wfazlj.fsf@bzg.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Tassilo Horn writes: > this patch fixes the inconveniences Reiner pointed out in #3865. Could > somebody please commit it for me on branch and head? I'm willing to do this. > I'm to busy to read up how to merge between branches with CVS -- I'm > going to marry tomorrow! :-) I also need to learn how to do this. Pointers anyone? -- Bastien From unknown Sun Jun 22 07:39:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: reiner.steib@gmx.de Subject: bug#3865 closed by Chong Yidong (Re: Patch for #3865: Would somebody please commit on HEAD and branch?) Message-ID: References: <87fxcvnlg8.fsf@stupidchicken.com> <20090716110143.d83eb84miog84csg@imap.uni-ulm.de> X-Emacs-PR-Message: they-closed 3865 X-Emacs-PR-Package: emacs Reply-To: 3865@debbugs.gnu.org Date: Fri, 17 Jul 2009 19:50:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1247860204-26659-1" This is a multi-part message in MIME format... ------------=_1247860204-26659-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #3865: 23.0.95; doc-view-mode with PDF without PNG support It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 3865: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D3865 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1247860204-26659-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 3865-done) by emacsbugs.donarmstrong.com; 17 Jul 2009 19:44:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po30.its.yale.edu (pantheon-po30.its.yale.edu [130.132.50.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6HJij6a025786 for <3865-done@emacsbugs.donarmstrong.com>; Fri, 17 Jul 2009 12:44:46 -0700 Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po30.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n6HJid9R016982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Jul 2009 15:44:39 -0400 Received: by furry (Postfix, from userid 1000) id 3B2B1C09B; Fri, 17 Jul 2009 15:44:39 -0400 (EDT) From: Chong Yidong To: emacs-devel@gnu.org Cc: 3865-done@debbugs.gnu.org Subject: Re: Patch for #3865: Would somebody please commit on HEAD and branch? References: <87vdlr2ldd.fsf@thinkpad.tsdh.de> Date: Fri, 17 Jul 2009 15:44:39 -0400 In-Reply-To: <87vdlr2ldd.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 17 Jul 2009 20:51:58 +0200") Message-ID: <87fxcvnlg8.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) Tassilo Horn writes: > this patch fixes the inconveniences Reiner pointed out in #3865. Could > somebody please commit it for me on branch and head? I've checked it into the trunk. I don't think this is serious enough to commit to the branch. ------------=_1247860204-26659-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jul 2009 09:02:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6G923PZ027182 for ; Thu, 16 Jul 2009 02:02:05 -0700 Received: from mx10.gnu.org ([199.232.76.166]:42300) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MRMqn-0000N5-Sz for emacs-pretest-bug@gnu.org; Thu, 16 Jul 2009 05:02:03 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MRMqk-0007vS-BV for emacs-pretest-bug@gnu.org; Thu, 16 Jul 2009 05:02:00 -0400 Received: from mail.uni-ulm.de ([134.60.1.11]:56692) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRMqi-0007tW-VY for emacs-pretest-bug@gnu.org; Thu, 16 Jul 2009 05:01:57 -0400 Received: from poseidon.rz.uni-ulm.de (localhost [127.0.0.1]) by smtp.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n6G91iC5002326; Thu, 16 Jul 2009 11:01:44 +0200 (MEST) Received: (from cyrus@localhost) by poseidon.rz.uni-ulm.de (8.14.2/8.14.1/Submit) id n6G91i9a002321; Thu, 16 Jul 2009 11:01:44 +0200 (MEST) Received: from gate-6.ruv.de (gate-6.ruv.de [195.145.180.106]) by imap.uni-ulm.de (Horde MIME library) with HTTP; Thu, 16 Jul 2009 11:01:43 +0200 Message-ID: <20090716110143.d83eb84miog84csg@imap.uni-ulm.de> Date: Thu, 16 Jul 2009 11:01:43 +0200 From: Reiner Steib Reply-to: reiner.steib@gmx.de To: emacs-pretest-bug@gnu.org Subject: 23.0.95; doc-view-mode with PDF without PNG support MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: To reproduce: M-x toggle-debug-on-error RET M-x toggle-debug-on-quit RET C-x C-f some-pdf-file.pdf I get the message: No PNG support available or some conversion utility for pdf files is missing. Type C-c C-c to switch to fundamental-mode, C-c C-t to show the doc as text in a separate buffer or k to kill this buffer. I don't have the png-DLL installed: (image-type-available-p 'png) -> nil Maybe also some of the conversion programs are not installed. But I =20 just wanted to view/edit the PDF file. Problems: - The message is too long to be read in the echo area. - When pressing some key (e.g. `down'), I get "image-next-line: Invalid image specification". So the first message disappears as soon as the user does a movement. This hit me several times. I didn't realize the message so I killed the buffer and used `find-file-literally'. I think the right behavior would be either... (1) Switch to fundamental-mode automatically if doc-view-mode cannot do anything useful and just display a message. (2) Instead of telling about `C-c C-c', `C-c C-t' and `k', use a (y-or-n-p) dialog. In GNU Emacs 23.0.95.1 (i386-mingw-nt6.0.6001) of 2009-06-20 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: show-paren-mode: t savehist-mode: t recentf-mode: t msb-mode: t iswitchb-mode: t desktop-save-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f C-g M-x t o g g d e e M-x q C-x C-f M-x r e p o r t - e m Recent messages: Cleaning up the recentf list...done (0 removed) No desktop file. For information about GNU Emacs and the GNU system, type C-h C-a. Quit Debug on Error enabled globally Debug on Quit enabled globally No PNG support available or some conversion utility for pdf files is =20 missing. Type C-c C-c to switch to fundamental-mode, C-c C-t to show =20 the doc as text in a separate buffer or k to kill this buffer. Error during redisplay: (wrong-type-argument numberp nil) Entering debugger... Error during redisplay: (wrong-type-argument numberp nil) [4 times] *Backtrace*: Debugger entered--Lisp error: (error "Invalid image specification") image-size(nil) image-next-line(1) call-interactively(image-next-line nil nil) Bye, Reiner ------------=_1247860204-26659-1-- From unknown Sun Jun 22 07:39:56 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3865: Patch for #3865: Would somebody please commit on HEAD and branch? Reply-To: Stefan Monnier , 3865@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 19 Jul 2009 05:40:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3865-submit@emacsbugs.donarmstrong.com id=B3865.12479817048507 (code B ref 3865); Sun, 19 Jul 2009 05:40:05 +0000 Received: (at 3865) by emacsbugs.donarmstrong.com; 19 Jul 2009 05:35:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.8 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6J5YrZk008438 for <3865@emacsbugs.donarmstrong.com>; Sat, 18 Jul 2009 22:34:55 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsEAGNNYkpFpYWY/2dsb2JhbACBUcoShAwFhwI X-IronPort-AV: E=Sophos;i="4.43,229,1246852800"; d="scan'208";a="41857976" Received: from 69-165-133-152.dsl.teksavvy.com (HELO pastel.home) ([69.165.133.152]) by ironport2-out.teksavvy.com with ESMTP; 19 Jul 2009 01:34:47 -0400 Received: by pastel.home (Postfix, from userid 20848) id E9D3A80B0; Sun, 19 Jul 2009 01:34:46 -0400 (EDT) From: Stefan Monnier To: emacs-devel@gnu.org Cc: 3865@debbugs.gnu.org Message-ID: References: <87vdlr2ldd.fsf@thinkpad.tsdh.de> Date: Sun, 19 Jul 2009 01:34:46 -0400 In-Reply-To: <87vdlr2ldd.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 17 Jul 2009 20:51:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > + (if (and (executable-find doc-view-pdftotext-program) > + (yes-or-no-p "Cannot render file. View extracted text instead? ")) > + (doc-view-open-text) > + (doc-view-toggle-display)))) Please avoid modal UIs wherever possible. E.g. rather than ask with yes-or-no-p, just choose one of the two branches (maybe based on a config var) and output a message explaining how to get the other branch. Stefan