all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: emacs-pretest-bug@gnu.org
Subject: bug#4080: 23.1.50; Message-mode doesn't handle YANK-ACTION argument of COMPOSE-MAIL
Date: Sat, 08 Aug 2009 11:29:02 +0300	[thread overview]
Message-ID: <87tz0ir9o1.fsf@iki.fi> (raw)

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





             reply	other threads:[~2009-08-08  8:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-08  8:29 Teemu Likonen [this message]
2010-01-17 23:36 ` bug#4080: 23.1.50; Message-mode doesn't handle YANK-ACTION argument of COMPOSE-MAIL Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tz0ir9o1.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=4080@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.