[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A valid example of kbd macros - take that, Emanuel! ;-)
From: |
Emanuel Berg |
Subject: |
Re: A valid example of kbd macros - take that, Emanuel! ;-) |
Date: |
Wed, 29 Jul 2015 04:04:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Marcin Borkowski <mbork@mbork.pl> writes:
> The last exchange ... reminded me that you wanted an
> example of valid kbd macro usage, not easily
> accomplished by writing Elisp. ... Some time ago
> I had to send 15 emails to 15 different people. (You
> can imagine 150 instead of 15.) ... You could find
> the Elisp functions related to ... Gnus
You better believe it.
(require 'cl-macs)
(require 'gnus-msg)
(require 'message)
(cl-dolist (to '("Emanuel Berg <embe8573@student.uu.se>"
"Manny <embe8573@student.uu.se>") )
(gnus-post-news 'post "")
(message-goto-to) (insert to)
(message-goto-subject) (insert "Get ready for a surprise")
(message-goto-body) (insert "You are not you. You are me!")
(message-send-and-exit) )
So better luck next time. However, the master is
pleased that you take this so seriously.
:)
--
underground experts united
http://user.it.uu.se/~embe8573