From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87341 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: writing a function that pipes the html mime part to an external script Date: Fri, 20 Jan 2017 10:07:24 -0800 Message-ID: <87vat9zjtv.fsf@ericabrahamsen.net> References: <877f5qi5df.fsf@b79.net> <87efzy9fnw.fsf@linux-m68k.org> <87r33xhgic.fsf@b79.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484935717 23086 195.159.176.226 (20 Jan 2017 18:08:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 18:08:37 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M35561@lists.math.uh.edu Fri Jan 20 19:08:31 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUdbd-0003mf-9e for ding-account@gmane.org; Fri, 20 Jan 2017 19:08:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cUdbS-0006yG-3H; Fri, 20 Jan 2017 12:07:58 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cUdbQ-0006xY-Bu for ding@lists.math.uh.edu; Fri, 20 Jan 2017 12:07:56 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cUdbP-00013b-AG for ding@lists.math.uh.edu; Fri, 20 Jan 2017 12:07:56 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cUdbN-00021Q-Sc for ding@gnus.org; Fri, 20 Jan 2017 19:07:53 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cUdaz-0000l3-0B for ding@gnus.org; Fri, 20 Jan 2017 19:07:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:0x7E90sxB2WiJUviTnunqxuVr1s= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87341 Archived-At: John Magolske writes: > Andreas Schwab writes: >> On Jan 19 2017, John Magolske wrote: >> >>> and everything works as intended. But I'd like to do away with that last >>> step of having to manually enter the shell command, somehow placing that >>> "~/bin/pipe_to_tmp" directly into a function that could be mapped to a >>> key binding. I've been messing around with mm-pipe-part but haven't >>> found a way to do this. Any suggestions? >> >> Write a function that calls mm-pipe-part directly. > > This is where I'm stuck... I believe there should be something like > > (mm-pipe-part HANDLE "~/bin/pipe_to_tmp") > > in the function, but I can't figure out exactly what should go in the > place of HANDLE here. > > John You can get the various article part handles with `gnus-article-mime-handles', is that what you were looking for? Eric