Mercurial > emacs
comparison lisp/emulation/cua-base.el @ 85074:16efb39cdb2e
(cua-paste): Check if mouse-region-match is fbound
to not fail on mouseless tty.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Sat, 06 Oct 2007 22:19:49 +0000 |
parents | 27d11c1d4e46 |
children | 27ff4954e2a0 bdb3fe0ba9fa |
comparison
equal
deleted
inserted
replaced
85073:6ae29c2dfff0 | 85074:16efb39cdb2e |
---|---|
909 ;; head of the kill-ring that really comes from the | 909 ;; head of the kill-ring that really comes from the |
910 ;; currently active region we are going to delete. | 910 ;; currently active region we are going to delete. |
911 ;; That would make yank a no-op. | 911 ;; That would make yank a no-op. |
912 (if (and (string= (filter-buffer-substring (point) (mark)) | 912 (if (and (string= (filter-buffer-substring (point) (mark)) |
913 (car kill-ring)) | 913 (car kill-ring)) |
914 (fboundp 'mouse-region-match) | |
914 (mouse-region-match)) | 915 (mouse-region-match)) |
915 (current-kill 1)) | 916 (current-kill 1)) |
916 (cua-delete-region))) | 917 (cua-delete-region))) |
917 (cond | 918 (cond |
918 (regtxt | 919 (regtxt |