comparison lisp/register.el @ 89909:68c22ea6027c

Sync to HEAD
author Kenichi Handa <handa@m17n.org>
date Fri, 16 Apr 2004 12:51:06 +0000
parents 375f2633d815
children e4694597cbf4
comparison
equal deleted inserted replaced
89908:ee1402f7b568 89909:68c22ea6027c
302 (get-register register))) 302 (get-register register)))
303 (if delete-flag (delete-region start end))) 303 (if delete-flag (delete-region start end)))
304 304
305 (defun copy-rectangle-to-register (register start end &optional delete-flag) 305 (defun copy-rectangle-to-register (register start end &optional delete-flag)
306 "Copy rectangular region into register REGISTER. 306 "Copy rectangular region into register REGISTER.
307 With prefix arg, delete as well. 307 With prefix arg, delete as well. To insert this register
308 Called from program, takes four args: REGISTER, START, END and DELETE-FLAG. 308 in the buffer, use \\[insert-register].
309
310 Called from a program, takes four args: REGISTER, START, END and DELETE-FLAG.
309 START and END are buffer positions giving two corners of rectangle." 311 START and END are buffer positions giving two corners of rectangle."
310 (interactive "cCopy rectangle to register: \nr\nP") 312 (interactive "cCopy rectangle to register: \nr\nP")
311 (set-register register 313 (set-register register
312 (if delete-flag 314 (if delete-flag
313 (delete-extract-rectangle start end) 315 (delete-extract-rectangle start end)
314 (extract-rectangle start end)))) 316 (extract-rectangle start end))))
315 317
318 (provide 'register)
319 ;;; arch-tag: ce14dd68-8265-475f-9341-5d4ec5a53035
316 ;;; register.el ends here 320 ;;; register.el ends here