GNU bug report logs -
#5590
23.1; Add optional cmd arguments to mm pipe
Previous Next
Reported by: Julien Danjou <julien <at> danjou.info>
Date: Wed, 17 Feb 2010 17:50:03 UTC
Severity: wishlist
Tags: patch
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5590 in the body.
You can then email your comments to 5590 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5590
; Package
emacs
.
(Wed, 17 Feb 2010 17:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Julien Danjou <julien <at> danjou.info>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 17 Feb 2010 17:50:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Attached is a patch to add optional command argument to mime part piping functions.
[gnus-mime-pipe.patch (text/x-diff, inline)]
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: julien <at> danjou.info-20100217163450-8uxnn22svu8y6v8p
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk/
# testament_sha1: c69df82004749958febdc3c978f83c8274857efa
# timestamp: 2010-02-17 17:37:22 +0100
# base_revision_id: lekktu <at> gmail.com-20100214173409-8wkin7zb3gijhq8g
#
# Begin patch
=== modified file 'lisp/gnus/gnus-art.el'
--- lisp/gnus/gnus-art.el 2010-01-13 08:35:10 +0000
+++ lisp/gnus/gnus-art.el 2010-02-17 16:34:50 +0000
@@ -4974,13 +4974,14 @@
(when data
(mm-save-part data))))
-(defun gnus-mime-pipe-part ()
- "Pipe the MIME part under point to a process."
+(defun gnus-mime-pipe-part (&optional cmd)
+ "Pipe the MIME part under point to a process.
+Use CMD as the process."
(interactive)
(gnus-article-check-buffer)
(let ((data (get-text-property (point) 'gnus-data)))
(when data
- (mm-pipe-part data))))
+ (mm-pipe-part data cmd))))
(defun gnus-mime-view-part ()
"Interactively choose a viewing method for the MIME part under point."
=== modified file 'lisp/gnus/mm-decode.el'
--- lisp/gnus/mm-decode.el 2010-01-13 08:35:10 +0000
+++ lisp/gnus/mm-decode.el 2010-02-17 16:34:12 +0000
@@ -1292,12 +1292,13 @@
(mm-write-region (point-min) (point-max) file nil nil nil 'binary t)
(set-default-file-modes current-file-modes)))))
-(defun mm-pipe-part (handle)
- "Pipe HANDLE to a process."
+(defun mm-pipe-part (handle &optional cmd)
+ "Pipe HANDLE to a process.
+Use CMD as the process."
(let* ((name (mail-content-type-get (mm-handle-type handle) 'name))
- (command
- (gnus-read-shell-command
- "Shell command on MIME part: " mm-last-shell-command)))
+ (command (or cmd
+ (gnus-read-shell-command
+ "Shell command on MIME part: " mm-last-shell-command))))
(mm-with-unibyte-buffer
(mm-insert-part handle)
(mm-add-meta-html-tag handle)
# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWfrwwj0AAxffgFgwUWP/935n
SgC////wUAX48HFKENV0FAA4SVTQaaNAZGagADQAAAACShMFPVPekmIp4oMmTQAAAZABKIEak9Q8
UeptNTymgB6mnqNpAGmgBzAATJgATCYJhDAEYAEkQpjQCaABPU0aI1NMhpoHkgyRIJAgLgUUVcJN
kYMZ611fB7llhY+k3BgNcObWUIBsGkJ5XjovUmcWvqQKnKpc01TPWGWo1GcUVQVTX6IUyvJRaloU
ncrGOZIjaXuKV3pwmrJzrNms+jLGk9fsVTnshByCm58R6yoiA3cSrDmY9eT7MTYazOvDR6CjGo7R
EP5sdTycZvEmXODn+CmXh6n9rikskGkWaooNH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JdFtXALICYrTgWgQHA59UHTQKxfFAVULcQPggmcls
RggzKRlAXejIHLSwrLSAYEjXmu64W2LkyoKoTGDcKCcvQDCmUARS0PEgILCCA+4sRRpBMwsRDi65
gySpFkGSaB8DOKRfSC/EoX2ImytLsVonAXRBl5IDuRxJ7xhhaUOQDBKVBJEp7nCkkG8XNPw3VDBB
LabyMhFJ0JhQQIlPfFFoZQckIkSQOMXCyB6HIEj7klxGnaMFY5kA5MO9hu9BMVrFIHyFzCLbEzGD
hAgZg8RyZkExlIvpJhkEgqSmlJhXngszaKaAkeQrlp5oDodRi66kDoLyF8hQFuAkLMsNJSuSDoFc
DnFUW8UhcfSqqJmf8XckU4UJD68MI9A=
[Message part 3 (text/plain, inline)]
It's useful to pipe mime part in Gnus to subprocess without entering it
manually.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.
In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6)
of 2010-02-17 on cigue, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10704000
configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: fr_FR.UTF-8
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Group
Minor modes in effect:
gnus-undo-mode: t
iswitchb-mode: t
show-paren-mode: t
global-hl-line-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-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-s a w e s o m e <return> <return> <kp-2> <kp-0> <kp-enter>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <return> <down> <return>
<down> <down> <down> <down> <down> <up> <return> <S-down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> M-x j d : g n u <tab> <return> q ; <return>
<return> d <return> <return> <return> <return> <return>
n n ; <return> <return> n n <help-echo> <down-mouse-1>
<mouse-movement> <mouse-1> M-x r e p o r <tab> <re
turn>
Recent messages:
Retrieving newsgroup: nnimap+Naquadah:lists.freedesktop.xdg...
Opening nnimap server on Naquadah...done
nnimap: Updating info for nnimap+Naquadah:lists.freedesktop.xdg...done
Fetching headers for nnimap+Naquadah:lists.freedesktop.xdg...done
Generating summary...done
Unknown symbol: ,
Exiting summary buffer and applying spam rules
nnimap: Setting marks in lists.freedesktop.xdg...done
No more unread newsgroups
Auto-saving...
--
Julien Danjou
// ᐰ <julien <at> danjou.info> http://julien.danjou.info
[Message part 4 (application/pgp-signature, inline)]
bug reassigned from package 'emacs' to 'emacs,gnus'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 17 Feb 2010 21:00:03 GMT)
Full text and
rfc822 format available.
Severity set to 'wishlist' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 17 Feb 2010 21:00:03 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 17 Feb 2010 21:00:03 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Sat, 11 Sep 2010 00:36:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Julien Danjou <julien <at> danjou.info>
:
bug acknowledged by developer.
(Sat, 11 Sep 2010 00:36:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 5590-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
Looks like this was installed in Gnus 2010-05-07.
(It would be great if people could follow-up on Gnus issues reported
to bug-gnu-emacs if they get resolved, so that the reports can be closed.)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 09 Oct 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 257 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.