all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: help-gnu-emacs@gnu.org
Subject: Re: A valid example of kbd macros - take that, Emanuel! ;-)
Date: Wed, 29 Jul 2015 09:12:07 +0200	[thread overview]
Message-ID: <871tfrtp2w.fsf@mbork.pl> (raw)
In-Reply-To: <87r3nrbtx1.fsf@nl106-137-147.student.uu.se>


On 2015-07-29, at 04:04, Emanuel Berg <embe8573@student.uu.se> wrote:

> 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.
>
> :)

:-) :-) :-)

Well, I /know/ it can be done, obviously.  The question is: how much
time does it take to find all these Elisp functions?  (Unless you /know/
them already.  (And you cheated a bit: I didn't have my data in a Lisp
list, but in an Org table.  Next level of function-searching.)  And more
importantly: /why/ do it if you don't have to?  ("Fun", "learning" and
"this I may need in the future" are legitimiate responses, of course,
but "No need to" is, too.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



  reply	other threads:[~2015-07-29  7:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28  8:42 A valid example of kbd macros - take that, Emanuel! ;-) Marcin Borkowski
2015-07-29  2:04 ` Emanuel Berg
2015-07-29  7:12   ` Marcin Borkowski [this message]
2015-07-29 22:34     ` Emanuel Berg

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=871tfrtp2w.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@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.