From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Mao Newsgroups: gmane.emacs.help Subject: Re: PDF breaks emacs (PDF-Tools) Date: Wed, 4 Feb 2015 08:49:02 -0800 Message-ID: References: <87k2zxdhp1.fsf@gmail.com> <87lhkddguk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1423071654 31779 80.91.229.3 (4 Feb 2015 17:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2015 17:40:54 +0000 (UTC) To: "Tory S. Anderson" , emacs list , Peter Mao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 18:40:53 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJ3wa-0004lh-PW for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2015 18:40:52 +0100 Original-Received: from localhost ([::1]:37709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ3wZ-0007nx-TB for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2015 12:40:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ38T-0000D2-7M for help-gnu-emacs@gnu.org; Wed, 04 Feb 2015 11:49:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ38R-0003tZ-Ki for help-gnu-emacs@gnu.org; Wed, 04 Feb 2015 11:49:05 -0500 Original-Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:62125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ38R-0003tH-AQ for help-gnu-emacs@gnu.org; Wed, 04 Feb 2015 11:49:03 -0500 Original-Received: by mail-ie0-f169.google.com with SMTP id rl12so3455952iec.0 for ; Wed, 04 Feb 2015 08:49:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Yogq4iw+Aj9bDZ2iQgo8SmFUu1CiUMRUQdryRftPmEg=; b=knCF21vnt5VAsICwQcekjrreUxQnN0j0I4fEMM0UBOk2vzsYK+0AhE3Ez4a1LP+qYB SL1y6dKFubAb68deYBFY0WB5Vzoayydavs/o//Ptkf8YDSQOCaO7CYU8ZPlTdFO0+xI8 +4jee8vXUWYU3y8BUuycavA9zT7FwepiePU4uAbJZsKGblD0kVDH331Caz8BI3wUQwtE jURbVu+8S2R+RI2N4k7NL3CWXyH8o9MKGVw0a4+qo4VG65AyS/d4JEhSpppgfKVz5Dbr pgi9eycAPoR932Ow5GFNwozwg284t+DTIycnd0eDt+Ws7KeH6WYfw45OfwMc9sBj4o4r J1Ww== X-Received: by 10.107.129.140 with SMTP id l12mr3502237ioi.17.1423068542207; Wed, 04 Feb 2015 08:49:02 -0800 (PST) Original-Received: by 10.64.120.193 with HTTP; Wed, 4 Feb 2015 08:49:02 -0800 (PST) In-Reply-To: <87lhkddguk.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::229 X-Mailman-Approved-At: Wed, 04 Feb 2015 12:40:30 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102478 Archived-At: Hi Tory, Tassilo covered everything I would have said anyways. I was also able to open your pdf with doc-view under Emacs 24.4 on mac osx system. "Pdf Tools" only generates pdf's from buffers or regions. I can't take any credit for the rest of the magic in Emacs! Peter On Wed, Feb 4, 2015 at 4:02 AM, Tassilo Horn wrote: > torys.anderson@gmail.com (Tory S. Anderson) writes: > > Hi Tory, > > > I've been giving emacs PDF-Tools (very poorly documented here: > > http://www.emacswiki.org/emacs/PdfTools) a try and have been > > thoroughly impressed. For the majority of my needs I'm even willing > > to switch from the system pdf viewer (the excellent Okular) to this > > one. > > Huh? The pdftools.el you've linked has no support for viewing PDFs. > What it can do is save a buffer or region as a PDF file. That's all. > > So is it possible that you are actually opening PDF files from within > emacs and then view them using Emacs' built-in `doc-view-mode'? > > > But then, just when life is getting rosy, my faith is completely > > undermined by a PDF that not only refuses to open, but causes all of > > emacs to crash terribly. The daring user of PDF-Tools can try such a > > file here: http://orys.us/breaksemacspdf > > I've just downloaded and opened that file with Emacs (current Git > version and also 24.4) and it worked without any problem. > > > I have not identified what causes the problem; other PDFs with image > > components or side-runners don't seem to be problematic, nor are PDFs > > of hundreds (even thousands) of pages in length. But if emacs crashes > > here, I'm not sure where else it may fail. Any suggestions? Otherwise, > > be warned. > > > > Note: by "crash" I mean, utterly and indefinitely freezes without > > warning or complaint. > > Well, then that's no crash. ;-) > > I guess you did try to hit `C-g' repeatedly to see if that breaks the > freeze, right? > > Otherwise, it's a bit hard to debug from my side. I see you use Emacs > 24.3. I don't have that available right now but you could try upgrading > to 24.4 and check if the freeze occurs there, too. > > Bye, > Tassilo >