From: Emanuel Berg <moasenwood@zoho.eu>
To: help-gnu-emacs@gnu.org
Cc: erc-discuss@gnu.org, emacs-devel@gnu.org
Subject: ERC custom ERC command reloaded
Date: Wed, 20 Mar 2019 06:21:41 +0100 [thread overview]
Message-ID: <86bm266ryy.fsf@zoho.eu> (raw)
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
reply other threads:[~2019-03-20 5:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86bm266ryy.fsf@zoho.eu \
--to=moasenwood@zoho.eu \
--cc=emacs-devel@gnu.org \
--cc=erc-discuss@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).