Mercurial > emacs
comparison lisp/simple.el @ 40069:bd85ab6cffed
Don't let kill-ring-save show extent if transient-mark-mode and region
fully visible.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Fri, 19 Oct 2001 23:24:26 +0000 |
parents | 3f454d4a2b7c |
children | a0dc24114eee |
comparison
equal
deleted
inserted
replaced
40068:3a269250182d | 40069:bd85ab6cffed |
---|---|
1795 (opoint (point)) | 1795 (opoint (point)) |
1796 ;; Inhibit quitting so we can make a quit here | 1796 ;; Inhibit quitting so we can make a quit here |
1797 ;; look like a C-g typed as a command. | 1797 ;; look like a C-g typed as a command. |
1798 (inhibit-quit t)) | 1798 (inhibit-quit t)) |
1799 (if (pos-visible-in-window-p other-end (selected-window)) | 1799 (if (pos-visible-in-window-p other-end (selected-window)) |
1800 (progn | 1800 (unless transient-mark-mode |
1801 ;; Swap point and mark. | 1801 ;; Swap point and mark. |
1802 (set-marker (mark-marker) (point) (current-buffer)) | 1802 (set-marker (mark-marker) (point) (current-buffer)) |
1803 (goto-char other-end) | 1803 (goto-char other-end) |
1804 (sit-for 1) | 1804 (sit-for 1) |
1805 ;; Swap back. | 1805 ;; Swap back. |