From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: why is this function not instantaneous?
Date: Tue, 19 Mar 2013 15:04:35 -0500 [thread overview]
Message-ID: <kiagc10sh0@news7.newsguy.com> (raw)
A few months ago I somehow misplaced the original of this function:
(defun copy-to-other-window (beg end) ;; bind to f8
"Copy region text to buffer in other window\n"
(interactive "r")
(if (not (use-region-p))
(progn
(backward-word)
(let ((beg (point))) (forward-word) (copy-region-as-kill \
beg (point)))
))
(other-window 1)
(yank)
)
The earlier version worked with no extraneous disk activity going on.
This version bogs down for 2, 3, or 4 seconds while showing the Windows
7 whirly disk. If transient mark mode is inactive, the "if" form makes a
region out of the word where the cursor is at or inside of. Does any of
you know what this little function would look like if I knew what I were
doing?
Thanks,
Ed
next reply other threads:[~2013-03-19 20:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 20:04 B. T. Raven [this message]
2013-03-20 1:30 ` why is this function not instantaneous? Eric Abrahamsen
[not found] ` <mailman.22508.1363742738.855.help-gnu-emacs@gnu.org>
2013-03-21 19:38 ` B. T. Raven
2013-03-22 6:08 ` Eric Abrahamsen
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=kiagc10sh0@news7.newsguy.com \
--to=btraven@nihilo.net \
--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.
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).