From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69003 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: mm view PDF MIME part doesn't work, just exits Date: Mon, 14 Sep 2009 16:19:34 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ocpd1axl.fsf@lifelogs.com> References: <87vdk9e6tf.fsf@lifelogs.com> <200908291745.n7THjfGi034673@shell.rawbw.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252963242 10409 80.91.229.12 (14 Sep 2009 21:20:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 21:20:42 +0000 (UTC) Cc: Stefan Monnier , Reiner Steib , Katsumi Yamaoka To: ding@gnus.org Original-X-From: ding-owner+M17420@lists.math.uh.edu Mon Sep 14 23:20:34 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MnIyP-000387-UR for ding-account@gmane.org; Mon, 14 Sep 2009 23:20:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MnIxt-0003rx-Ep; Mon, 14 Sep 2009 16:20:01 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MnIxr-0003re-Fq for ding@lists.math.uh.edu; Mon, 14 Sep 2009 16:19:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MnIxq-0001dx-3k for ding@lists.math.uh.edu; Mon, 14 Sep 2009 16:19:58 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MnIyS-0004gC-00 for ; Mon, 14 Sep 2009 23:20:36 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MnIxp-0002x7-03 for ding@gnus.org; Mon, 14 Sep 2009 23:19:57 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Sep 2009 23:19:56 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Sep 2009 23:19:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:MNnzBNIMfy7fjDghRy2/I8XTpuA= X-Spam-Score: -0.8 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69003 Archived-At: On Sat, 29 Aug 2009 10:46:18 -0700 Mike Kupfer wrote: >>>>>> "Ted" == Ted Zlatanov writes: Ted> I see "Displaying xpdf /tmp/emm.../file.pdf...done" and that's it. Ted> xpdf doesn't come up as it should. Ted> I customized the mailcap and mailcap-mime-data to ensure the right Ted> thing is called, but no luck. What should I do to debug this? MK> The first thing I'd try is saving the attachment to a file, and then MK> starting xpdf from a shell to view it. That's what I've been using as a workaround. The file is OK. MK> If that works, I'd create a wrapper script and use it instead of the MK> system xpdf. For example, something like MK> echo $* > $HOME/xpdf.args MK> /usr/bin/xpdf $* MK> could verify that the command-line arguments are correct. That does not work. MK> I recall seeing a thread not too long ago about problems that happen if MK> a viewer daemonizes itself. The parent (Emacs in this case) thinks that MK> the viewer has finished, so it deletes the temp file, before the viewer MK> has actually read in the temp file. I'd be surprised if xpdf were doing MK> that, but I suppose it's something you could check. I debugged this down to mm-decode.el:mm-display-external which is a pretty complicated process invoker. The process sentinel gets process status 'exit as soon as the process starts, and the `state' variable says: Displaying xpdf /tmp/emm.32715eef/KR090831.pdf...done (exited abnormally with code 1 ) (I changed the notification message to also display the state). >From the command line, all this works, e.g.: zsh -c 'xpdf /tmp/emm.32715eef/KR090831.pdf' which xpdf => /usr/bin/xpdf Changing to explicitly launch /usr/bin/xpdf didn't make a difference, as expected (/usr/bin is in PATH no matter what). I'm really puzzled at this point. I've CC-ed the people who have touched mm-decode.el recently, hoping they can enlighten me. FWIW this used to work and I'm sure I haven't changed any settings that may have changed its behavior. This affects both RET and `e' on an external MIME part so I'm surprised no one else has noticed it. Ted