Deactivate the mark on more copy operations, and indicate the copied region.
authorChong Yidong <cyd@gnu.org>
Sun, 29 Jul 2012 04:45:48 +0000 (12:45 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 29 Jul 2012 04:45:48 +0000 (12:45 +0800)
commit2549c068e14ab1ddfb1f1ea38ca7736c16db7296
treedd718a18c5ea030f16f373e4020049634274ea88
parentd8efda90aa36b6bea5cca9bd6765cbb76571d933
Deactivate the mark on more copy operations, and indicate the copied region.

* lisp/simple.el (indicate-copied-region): New function.
(kill-ring-save): Split off from here.

* lisp/rect.el (copy-rectangle-as-kill): Call indicate-copied-region.
(kill-rectangle): Set deactivate-mark to t on read-only error.

* lisp/register.el (copy-to-register, copy-rectangle-to-register):
Deactivate the mark, and use indicate-copied-region.
(append-to-register, prepend-to-register): Call

Fixes: debbugs:10056
lisp/ChangeLog
lisp/rect.el
lisp/register.el
lisp/simple.el