all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Parrone <marc0@autistici.org>
Subject: Re: power-reader-mode
Date: Fri, 13 Feb 2004 02:26:09 +0100	[thread overview]
Message-ID: <87bro3epn2.fsf@marc0.dyndns.org> (raw)
In-Reply-To: 87lln7esdo.fsf@marc0.dyndns.org

I wrote:

> This should work.

(setq flash-training-sit-for-seconds 0)
(setq flash-training-sit-for-milliseconds 15)

(defun flash-training (begin end)
  "Reading exercise."
  (interactive "r")
  (get-buffer-create "*flash-training-temp*")
  (get-buffer-create "*flash-training*")
  (let ((string (buffer-substring begin end)))
    (with-current-buffer "*flash-training-temp*"
      (kill-region (point-min) (point-max))
      (insert string)
      (beginning-of-buffer)
      (set-mark (point))))
  (with-current-buffer "*flash-training*"
    (kill-region (point-min) (point-max))
    (switch-to-buffer "*flash-training*")
    (while (with-current-buffer "*flash-training-temp*"
	     (forward-word 1))
      (with-current-buffer "*flash-training-temp*"
	(kill-region (region-beginning) (region-end)))
      (yank)
      (sit-for flash-training-sit-for-seconds
	       flash-training-sit-for-milliseconds)))
  (kill-buffer "*flash-training-temp*")
  (message "Type C-x b RET to restore this window."))

-- 
Marco Parrone - marc0@autistici.org - 0x45070AD6

  reply	other threads:[~2004-02-13  1:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-12 12:41 power-reader-mode Fabian Braennstroem
2004-02-12 18:12 ` power-reader-mode Kevin Rodgers
2004-02-12 22:43   ` power-reader-mode Fabian Braennstroem
2004-02-12 23:22     ` power-reader-mode Kevin Rodgers
2004-02-13  0:26       ` power-reader-mode Marco Parrone
2004-02-13  1:26         ` Marco Parrone [this message]
2004-02-13 11:07           ` power-reader-mode Fabian Braennstroem
2004-02-13 11:19             ` power-reader-mode Marco Parrone
2004-02-14 16:49               ` power-reader-mode Fabian Braennstroem
2006-02-10  9:37 ` power-reader-mode Joakim Verona
     [not found] ` <mailman.88.1139564272.2885.help-gnu-emacs@gnu.org>
2006-02-11 14:28   ` power-reader-mode Tim X

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=87bro3epn2.fsf@marc0.dyndns.org \
    --to=marc0@autistici.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.