unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* why is this function not instantaneous?
@ 2013-03-19 20:04 B. T. Raven
  2013-03-20  1:30 ` Eric Abrahamsen
       [not found] ` <mailman.22508.1363742738.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: B. T. Raven @ 2013-03-19 20:04 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-22  6:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 20:04 why is this function not instantaneous? B. T. Raven
2013-03-20  1:30 ` 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

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).