* ERC custom ERC command reloaded
@ 2019-03-20 5:21 Emanuel Berg
0 siblings, 0 replies; only message in thread
From: Emanuel Berg @ 2019-03-20 5:21 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: erc-discuss, emacs-devel
On gnu.emacs.help, Felix Dietrich wrote:
> Anyway, here is my take on your “erc-cmd-R” function:
>
> (defun erc-cmd-R ()
> "Repeat the last message or command."
> (if (and erc-input-ring
> ; >1 because the /r command will have been put on the
> ; ring.
> (> (ring-length erc-input-ring) 1))
> (progn
> (ring-remove erc-input-ring 0) ; Remove the /r command
> (erc-send-input (ring-ref erc-input-ring 0))
> ; Do not put the command just send on ERC's input ring
> ; again.
> (ring-remove erc-input-ring 0))
> (message "ERC: No previous command or message to repeat")))
Great, only now it is as much your function as
it is/was mine. I now use this version in my
source as well [1].
You are perhaps unaware of this (because of the
br0ken gateway between the listbot and the
Usenet newsgroup), but ERC custom commands was
recently discussed on gmane.emacs.help and
gmane.emacs.erc.general and I think even on
gmane.emacs.devel, and they deserve to hear
about your much improved version of
my prototype.
So I will send a copy of this post to them
newsgroups as well.
BTW this should enter ERC!
[1] line 10 @ http://user.it.uu.se/~embe8573/emacs-init/erc-my.el
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-20 5:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-20 5:21 ERC custom ERC command reloaded Emanuel Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).