From: Eric Schulte <eric.schulte@gmx.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, "Jose E. Marchesi" <jemarch@gnu.org>
Subject: Re: This is what happens when your cat uses your Emacs
Date: Sun, 15 Jan 2012 15:15:54 -0700 [thread overview]
Message-ID: <87pqekpq79.fsf@gmx.com> (raw)
In-Reply-To: <jwv8vl8vrus.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 15 Jan 2012 11:44:10 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> C-M-S-s-z is undefined.
>
> A proof if ever that Emacs users need cats.
> BTW, we should probably bind it to some cat command.
>
how about,
(defun cat-command ()
"A command for cats."
(interactive)
(require 'animate)
(let ((mouse "
___00
~~/____'>
\" \"")
(h-pos (floor (/ (window-height) 2)))
(contents (buffer-string))
(mouse-buffer (generate-new-buffer "*mouse*")))
(save-excursion
(switch-to-buffer mouse-buffer)
(insert contents)
(setq truncate-lines t)
(animate-string mouse h-pos 0)
(dotimes (_ (window-width))
(sit-for 0.01)
(dotimes (n 3)
(goto-line (+ h-pos n 2))
(move-to-column 0)
(insert " "))))
(kill-buffer mouse-buffer)))
--
Eric Schulte
http://cs.unm.edu/~eschulte/
next prev parent reply other threads:[~2012-01-15 22:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 19:43 This is what happens when your cat uses your Emacs Jose E. Marchesi
2012-01-14 19:47 ` Lennart Borgman
2012-01-14 19:54 ` Jose E. Marchesi
2012-01-15 8:50 ` Harald Hanche-Olsen
2012-01-14 19:59 ` Jose E. Marchesi
2012-01-15 16:44 ` Stefan Monnier
2012-01-15 17:08 ` Drew Adams
2012-01-15 17:28 ` Bastien
2012-01-15 22:15 ` Eric Schulte [this message]
2012-01-15 22:27 ` Lennart Borgman
2012-01-15 23:52 ` Jambunathan K
2012-01-16 5:12 ` Jambunathan K
2012-01-16 9:32 ` Leo
2012-01-16 5:45 ` Richard Stallman
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=87pqekpq79.fsf@gmx.com \
--to=eric.schulte@gmx.com \
--cc=emacs-devel@gnu.org \
--cc=jemarch@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.