Mercurial > emacs
comparison lisp/emulation/cua-rect.el @ 87020:52abd10af81e
(top-level): Move provide to end.
Don't require cua-gmrk when compiling.
(cua--cut-rectangle-to-global-mark)
(cua--copy-rectangle-to-global-mark): Declare as functions.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 04 Dec 2007 03:48:27 +0000 |
parents | 47928cf63c6c |
children | 107ccd98fa12 53108e6cea98 |
comparison
equal
deleted
inserted
replaced
87019:e460f7bcfb6d | 87020:52abd10af81e |
---|---|
31 | 31 |
32 ;;; Commentary: | 32 ;;; Commentary: |
33 | 33 |
34 ;;; Code: | 34 ;;; Code: |
35 | 35 |
36 (provide 'cua-rect) | |
37 | |
38 (eval-when-compile | 36 (eval-when-compile |
39 (require 'cua-base) | 37 (require 'cua-base)) |
40 (require 'cua-gmrk) | |
41 ) | |
42 | 38 |
43 ;;; Rectangle support | 39 ;;; Rectangle support |
44 | 40 |
45 (require 'rect) | 41 (require 'rect) |
46 | 42 |
1059 '(lambda (l r) | 1055 '(lambda (l r) |
1060 (move-to-column l) | 1056 (move-to-column l) |
1061 ;; (setq cua-save-point (point)) | 1057 ;; (setq cua-save-point (point)) |
1062 )))) | 1058 )))) |
1063 | 1059 |
1060 (declare-function cua--cut-rectangle-to-global-mark "cua-gmrk" (as-text)) | |
1061 (declare-function cua--copy-rectangle-to-global-mark "cua-gmrk" (as-text)) | |
1062 | |
1064 (defun cua-copy-rectangle-as-text (&optional arg delete) | 1063 (defun cua-copy-rectangle-as-text (&optional arg delete) |
1065 "Copy rectangle, but store as normal text." | 1064 "Copy rectangle, but store as normal text." |
1066 (interactive "P") | 1065 (interactive "P") |
1067 (if cua--global-mark-active | 1066 (if cua--global-mark-active |
1068 (if delete | 1067 (if delete |
1489 (cua--rect-M/H-key ?' 'cua-restrict-prefix-rectangle) | 1488 (cua--rect-M/H-key ?' 'cua-restrict-prefix-rectangle) |
1490 (cua--rect-M/H-key ?/ 'cua-restrict-regexp-rectangle) | 1489 (cua--rect-M/H-key ?/ 'cua-restrict-regexp-rectangle) |
1491 | 1490 |
1492 (setq cua--rectangle-initialized t)) | 1491 (setq cua--rectangle-initialized t)) |
1493 | 1492 |
1493 (provide 'cua-rect) | |
1494 | |
1494 ;;; arch-tag: b730df53-17b9-4a89-bd63-4a71ec196731 | 1495 ;;; arch-tag: b730df53-17b9-4a89-bd63-4a71ec196731 |
1495 ;;; cua-rect.el ends here | 1496 ;;; cua-rect.el ends here |