diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-01-02 01:20:14 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2005-01-02 01:20:14 +0000 |
commit | 4c759a327f3216d5c514e818d779d9678876ed43 (patch) | |
tree | 2946361e3db7984c7c2b650e65639057f27ae1d0 /lisp/ses.el | |
parent | f42a241b8e49696ac5b6512a43244f1680a9ea56 (diff) | |
download | emacs-4c759a327f3216d5c514e818d779d9678876ed43.tar.gz |
(copy-region-as-kill): Deactivate mark.
Diffstat (limited to 'lisp/ses.el')
-rw-r--r-- | lisp/ses.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ses.el b/lisp/ses.el index e10d8c6360e..2a952aab286 100644 --- a/lisp/ses.el +++ b/lisp/ses.el @@ -1,6 +1,6 @@ ;;; ses.el -- Simple Emacs Spreadsheet -*- coding: utf-8 -*- -;; Copyright (C) 2002,03,04 Free Software Foundation, Inc. +;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. ;; Author: Jonathan Yavner <jyavner@member.fsf.org> ;; Maintainer: Jonathan Yavner <jyavner@member.fsf.org> @@ -2331,7 +2331,10 @@ hard to override how mouse-1 works." (eq (get-text-property beg 'read-only) 'ses) (eq (get-text-property (1- end) 'read-only) 'ses))) ad-do-it ;Normal copy-region-as-kill - (kill-new (ses-copy-region beg end)))) + (kill-new (ses-copy-region beg end)) + (if transient-mark-mode + (setq deactivate-mark t)) + nil)) (defun ses-copy-region (beg end) "Treat the region as rectangular. Convert the intangible attributes to |