From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69023 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: Wed, 16 Sep 2009 11:05:19 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87my4ux4cg.fsf@lifelogs.com> References: <87vdk9e6tf.fsf@lifelogs.com> <200908291745.n7THjfGi034673@shell.rawbw.com> <87ocpd1axl.fsf@lifelogs.com> <877hw01jg0.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253117225 28390 80.91.229.12 (16 Sep 2009 16:07:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 16:07:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17440@lists.math.uh.edu Wed Sep 16 18:06:57 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 1Mnx1r-0008K4-Ir for ding-account@gmane.org; Wed, 16 Sep 2009 18:06:47 +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 1Mnx0x-0006u2-8h; Wed, 16 Sep 2009 11:05:51 -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 1Mnx0v-0006tm-SN for ding@lists.math.uh.edu; Wed, 16 Sep 2009 11:05:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1Mnx0v-0002PJ-0K for ding@lists.math.uh.edu; Wed, 16 Sep 2009 11:05:49 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Mnx1X-0000ml-00 for ; Wed, 16 Sep 2009 18:06:27 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mnx0q-0007vU-16 for ding@gnus.org; Wed, 16 Sep 2009 18:05:44 +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 ; Wed, 16 Sep 2009 18:05:44 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Sep 2009 18:05:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 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:YrJhU9Pj/4VAo8CeZ1stqMVV7/U= X-Spam-Score: -0.8 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69023 Archived-At: On Wed, 16 Sep 2009 08:57:38 +0900 Katsumi Yamaoka wrote: >>>>>> Ted Zlatanov wrote: >> (start-process "*display*" >> (setq buffer >> (generate-new-buffer " *mm*")) >> shell-file-name >> shell-command-switch >> "/usr/bin/xpdf /home/tzz/work/gdb-refcard.pdf") >> which definitely works from the command line. It still failed the same >> way, "exited abnormally with code 1". Maybe zsh is doing something >> strange, but this was working fine until about a month ago so I'm not >> sure what's causing it to fail. Am I the only one seeing this problem? KY> Hm. No problem here. KY> uname -a KY> Linux pastis 2.6.30.5-43.fc11.i686.PAE #1 SMP Thu Aug 27 21:34:36 EDT 2009 i686 i686 i386 GNU/Linux KY> zsh --version KY> zsh 4.3.9 (i386-redhat-linux-gnu) KY> xpdf -v KY> xpdf version 3.02 Turns out a customization for MacOS X (disabling DISPLAY so w3m won't block) was leaking into my Linux setup. This was hard to debug because mm-display-external doesn't show much information about the process status. To debug I used the patch below, but the function should really capture STDOUT and STDERR of the process. Is that possible? Thanks Ted Index: mm-decode.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mm-decode.el,v retrieving revision 7.70 diff -c -r7.70 mm-decode.el *** mm-decode.el 23 Jun 2009 22:39:00 -0000 7.70 --- mm-decode.el 16 Sep 2009 16:03:34 -0000 *************** *** 930,936 **** (timer-set-function timer fn) (funcall fn)) (ignore-errors (eval fm)) ! (message "%s" done))))))) (mm-handle-set-external-undisplayer handle (cons file buffer))) (message "Displaying %s..." command)) --- 930,936 ---- (timer-set-function timer fn) (funcall fn)) (ignore-errors (eval fm)) ! (message "%s (%s)" done state))))))) (mm-handle-set-external-undisplayer handle (cons file buffer))) (message "Displaying %s..." command))