Package: reportbug Version: 7.5.2 Severity: normal Tags: patch Dear Maintainer,
When I run "reportbug -G" ("-G" to use the Gnus MUA), it starts up emacs with a buffer containing the message, but it is in text-mode and not in message-mode as one would expect. Here is the relevant part of the *Messages* buffer: Loading /usr/share/reportbug/reportbug.el (source)...done Starting new Ispell process aspell with default dictionary... let: Symbol’s function definition is void: message-fetch-field As you can see, there is no function "message-fetch-field". It should instead be "mail-fetch-field". A workaround is to put (defalias 'message-fetch-field 'mail-fetch-field "Compatibility with reportbug(1)") in your ~/.emacs which is what I did, and I am sending this with Gnus now. However, the problem should really be corrected in /usr/share/reportbug/reportbug.el as in the following patch:
--- share/reportbug.el~ 2019-01-31 20:57:49.000000000 -0500 +++ share/reportbug.el 2019-05-07 00:24:08.944752814 -0400 @@ -28,8 +28,8 @@ (interactive) (require 'gnus) (find-file reportbug-template) - (let ((subject (message-fetch-field "Subject")) - (toaddr (or (message-fetch-field "To") "sub...@bugs.debian.org"))) + (let ((subject (mail-fetch-field "Subject")) + (toaddr (or (mail-fetch-field "To") "sub...@bugs.debian.org"))) (gnus-narrow-to-body) (let ((body (or (buffer-string) ""))) (gnus-summary-mail-other-window)
Thanks, Asher -- Real computer scientists don't program in assembler. They don't write in anything less portable than a number two pencil. -- Package-specific info: ** Environment settings: EDITOR="emacs" PAGER="less" INTERFACE="text" ** /home/asher/.reportbugrc: reportbug_version "7.5.2" mode standard ui text email "asd...@posteo.net" smtphost "posteo.de" smtpuser "asd...@posteo.net" smtppasswd <omitted> smtptls http_proxy "socks5://localhost:9050" -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-4-amd64 (SMP w/2 CPU cores) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages reportbug depends on: ii apt 1.8.0 ii python3 3.7.2-1 ii python3-reportbug 7.5.2 ii sensible-utils 0.0.12 reportbug recommends no packages. Versions of packages reportbug suggests: pn claws-mail <none> pn debconf-utils <none> pn debsums <none> pn dlocate <none> pn emacs24-bin-common | emacs25-bin-common <none> ii exim4-daemon-light [mail-transport-agent] 4.92-2 ii file 1:5.35-4 ii gnupg 2.2.12-1 pn python3-urwid <none> pn reportbug-gtk <none> ii xdg-utils 1.1.3-1 Versions of packages python3-reportbug depends on: ii apt 1.8.0 ii file 1:5.35-4 ii python3 3.7.2-1 ii python3-apt 1.8.4 ii python3-debian 0.1.34 ii python3-debianbts 2.8.2 ii python3-requests 2.21.0-1 python3-reportbug suggests no packages. -- no debconf information
signature.asc
Description: PGP signature