diff options
| author | Richard M. Stallman | 1994-09-19 05:51:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-19 05:51:16 +0000 |
| commit | 2ee658c39eaff040f264642ee0fdd49467a3ee86 (patch) | |
| tree | 37cd628861405f76bf8dbc37a6cd8e073c333752 | |
| parent | 7bbe1dea3b53faffed4683fd1f399e7be68e8162 (diff) | |
| download | emacs-2ee658c39eaff040f264642ee0fdd49467a3ee86.tar.gz emacs-2ee658c39eaff040f264642ee0fdd49467a3ee86.zip | |
(picture-yank-at-click): New function.
| -rw-r--r-- | lisp/textmodes/picture.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el index 9063212a1c6..c781be48a2e 100644 --- a/lisp/textmodes/picture.el +++ b/lisp/textmodes/picture.el | |||
| @@ -432,6 +432,16 @@ point at the other (diagonally opposed) corner." | |||
| 432 | (error "No rectangle saved.") | 432 | (error "No rectangle saved.") |
| 433 | (picture-insert-rectangle picture-killed-rectangle insertp))) | 433 | (picture-insert-rectangle picture-killed-rectangle insertp))) |
| 434 | 434 | ||
| 435 | (defun picture-yank-at-click (click arg) | ||
| 436 | "Insert the last killed rectangle at the position clicked on. | ||
| 437 | Also move point to one end of the text thus inserted (normally the end). | ||
| 438 | Prefix arguments are interpreted as with \\[yank]. | ||
| 439 | If `mouse-yank-at-point' is non-nil, insert at point | ||
| 440 | regardless of where you click." | ||
| 441 | (interactive "e\nP") | ||
| 442 | (or mouse-yank-at-point (mouse-set-point click)) | ||
| 443 | (picture-yank-rectangle arg)) | ||
| 444 | |||
| 435 | (defun picture-yank-rectangle-from-register (register &optional insertp) | 445 | (defun picture-yank-rectangle-from-register (register &optional insertp) |
| 436 | "Overlay rectangle saved in REGISTER. | 446 | "Overlay rectangle saved in REGISTER. |
| 437 | The rectangle is positioned with upper left corner at point, overwriting | 447 | The rectangle is positioned with upper left corner at point, overwriting |