GNU bug report logs - #4080
23.1.50; Message-mode doesn't handle YANK-ACTION argument of COMPOSE-MAIL

Previous Next

Package: emacs;

Reported by: Teemu Likonen <tlikonen <at> iki.fi>

Date: Sat, 8 Aug 2009 08:35:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 4080 in the body.
You can then email your comments to 4080 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4080; Package emacs. (Sat, 08 Aug 2009 08:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Teemu Likonen <tlikonen <at> iki.fi>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 08 Aug 2009 08:35:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; Message-mode doesn't handle YANK-ACTION argument of COMPOSE-MAIL
Date: Sat, 08 Aug 2009 11:29:02 +0300
Command compose-mail has an optional sixth argument YANK-ACTION which
defines what to do when user presses C-c C-y (mail-yank-original) in
mail-mode buffer. Here's a simple test suite:

    (let ((mail-user-agent 'sendmail-user-agent))
      (compose-mail user-mail-address "Test" nil nil nil
                    (list (lambda (&rest args)
                            (insert (format "%s\n" (car args))))
                          "Body")))

After evaluating the above code press C-c C-y in the mail-mode buffer to
see text "Body" appear. It should work nicely.

However, this does not work when mail-user-agent is "message-user-agent"
or "gnus-user-agent". Message-mode has C-c C-y (message-yank-original)
command but it does not do anything.

Here's the same test suite with message-user-agent as the
mail-user-agent:

    (let ((mail-user-agent 'message-user-agent))
      (compose-mail user-mail-address "Test" nil nil nil
                    (list (lambda (&rest args)
                            (insert (format "%s\n" (car args))))
                          "Body")))

C-c C-y doesn't do anything.


---------------
In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2009-08-08 on mithlond



Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4080; Package emacs. (Sun, 17 Jan 2010 23:37:02 GMT) Full text and rfc822 format available.

Message #8 received at 4080 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Teemu Likonen <tlikonen <at> iki.fi>
Cc: 4080 <at> debbugs.gnu.org
Subject: Re: 23.1.50;
	Message-mode doesn't handle YANK-ACTION argument of COMPOSE-MAIL
Date: Sun, 17 Jan 2010 18:36:07 -0500
> Command compose-mail has an optional sixth argument YANK-ACTION which
> defines what to do when user presses C-c C-y (mail-yank-original) in
> mail-mode buffer.
>
> However, this does not work when mail-user-agent is
> "message-user-agent" or "gnus-user-agent". Message-mode has C-c C-y
> (message-yank-original) command but it does not do anything.

Thanks for the report.  I've checked in a fix for this shortcoming of
message-mode.




bug closed, send any further explanations to Teemu Likonen <tlikonen <at> iki.fi> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sun, 17 Jan 2010 23:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 15 Feb 2010 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.