Peter S Galbraith <p...@debian.org> wrote: > > Also, please note the patch I suggested for bug #422506, which is > > supposed to let debian-bug use Emacs' term mode to run bug scripts and > > should therefore also work with interactive scripts. I just tested it, > > and it appears to work well with Emacs 23 and the latest version of > > debian-bug. > > I'm sorry that I didn't look into your patch a long time ago, since you > produced it two years ago. But it sure is relevant, and surely the way > to go. Plus, I like the idea of adding the script output as an attachment. > > I will look at your patch soon!
The patch applies fine, and queries interactively correctly with a bug report against the apt package, but the info is not entered as mime attachments for me using mh-e. The problem is two-fold. First, I would change: (when (and (boundp 'mml-mode) mml-mode) to: (when (boundp 'mml-mode) and " disposition=inline" to " disposition=attachment" e.g. don't limit to mml-mode, and use "attachment" instead of "inline". Any downside to that for other MUAs that you can think of? Second, the search for mml directives is too restrictive in mh-e in `mh-mml-tag-present-p'. I get: Debugger entered--Lisp error: (error "Stack overflow in regexp matcher") I think just finding the beginning should be enough, and I can patch mh-e for that. The alternative is saving the attachment in a tmp file and referencing that file in the mml construct. Peter -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org