Commit graph

16 commits

Author SHA1 Message Date
Kim F. Storm
786aac0f63 (cua--init-rectangles): Remove face setup. 2005-04-12 20:39:08 +00:00
Kim F. Storm
e4907bbe3b (cua--undo-list, cua--tidy-undo-counter)
(cua--rect-undo, cua--tidy-undo-lists, cua--rectangle-on-off): Remove.
(cua--rect-undo-set-point): New var.
(cua--rectangle-undo-boundary): Setup undo apply entry.
(cua--rect-undo-handler): New function for rectangle undo.
(cua--rect-start-position, cua--rect-end-position): Add.
(cua--rectangle-post-command): Call cua--rectangle-set-corners
for restored rectangle.  Set point if cua--rect-undo-set-point.
2005-02-07 11:44:57 +00:00
Kim F. Storm
4e687447ad (cua--rectangle-operation): Let bind
inhibit-field-text-motion to t so rectangles work in comint buffers.
2004-09-12 20:26:39 +00:00
Kim F. Storm
5e0cb17bad (cua--highlight-rectangle): Fix last change.
Use zero width overlays when necessary.
2004-09-08 13:07:50 +00:00
Kim F. Storm
1e71278bd3 * emulation/cua-rect.el (cua--overlay-keymap): New keymap for
highlight overlays; allow using RET when cursor is over a button.
(cua--highlight-rectangle): Use it.
(cua--rectangle-set-corners): Don't move backwards at eol.
(cua--forward-line): Don't move into void after eob.
2004-09-03 12:33:54 +00:00
Kim F. Storm
e2ea72e9dd (cua--rectangle-set-corners): Ensure that
point is set (and displayed) inside rectangle.
(cua--rectangle-operation): Fix for highlight of empty lines.
(cua--highlight-rectangle): Fix highlight for tabs.
Position cursor at left/right edge of rectangle using new `cursor'
property on overlay strings.
(cua--indent-rectangle): Don't tabify.
(cua-rotate-rectangle): Ignore that point has moved.
2004-09-02 22:56:22 +00:00
Kim F. Storm
7279710840 (cua--rectangle-padding): Remove.
(cua--rectangle-virtual-edges): New defun.
(cua--rectangle-get-corners): Remove optional PAD arg.
(cua--rectangle-set-corners): Never do padding.
(cua--forward-line): Remove optional PAD arg.  Simplify.
(cua-resize-rectangle-right, cua-resize-rectangle-left)
(cua-resize-rectangle-down, cua-resize-rectangle-up):
(cua-resize-rectangle-bot, cua-resize-rectangle-top)
(cua-resize-rectangle-page-up, cua-resize-rectangle-page-down)
(cua--rectangle-move): Never do padding.  Simplify.
(cua--tabify-start): New defun.
(cua--rectangle-operation): Add tabify arg.  All callers changed.
(cua--pad-rectangle): Remove.
(cua--delete-rectangle): Handle delete with virtual edges.
(cua--extract-rectangle): Add spaces if rectangle has virtual edges.
(cua--insert-rectangle): Handle insert at virtual column.
Perform auto-tabify if necessary.
(cua--activate-rectangle): Remove optional FORCE arg.
Never do padding.  Simplify.
(cua--highlight-rectangle): Enhance for virtual edges.
(cua-toggle-rectangle-padding): Remove command.
(cua-toggle-rectangle-virtual-edges): New command.
(cua-sequence-rectangle): Add optional TABIFY arg.  Callers changed.
(cua--rectangle-post-command): Don't force rectangle padding.
(cua--init-rectangles): Bind M-p to cua-toggle-rectangle-virtual-edges.
2004-08-29 20:57:19 +00:00
Kim F. Storm
3b365de3ad (cua--convert-rectangle-as): New defmacro.
(cua-upcase-rectangle, cua-downcase-rectangle): Use it.
(cua-upcase-initials-rectangle, cua-capitalize-rectangle):
New commands (suggested by Jordan Breeding)..
2004-04-30 21:43:36 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Kim F. Storm
42cc3428ed (cua--rectangle-operation): Don't call
FCT if current column is outside rectangle.
(cua--delete-rectangle): Do nothing if zero width or out of bounds.
2002-07-04 22:20:26 +00:00
Kim F. Storm
e3f01f3086 (cua--init-rectangles): Install default
binding in cua--rectangle-keymap using cua--self-insert-char-p
to handle all global self inserting characters in rectangle mode.
2002-05-25 00:08:36 +00:00
Juanma Barranquero
aa87aafcde Fix typo. 2002-05-16 12:00:33 +00:00
Kim F. Storm
af1a014016 (cua--rectangle-operation):
Don't highlight empty lines in rectangles.
2002-05-14 21:11:10 +00:00
Pavel Janík
307645975c Follow coding conventions. 2002-05-02 05:41:46 +00:00
Kim F. Storm
72cc582e69 Added cua-mode based files [split from original cua.el]:
cua-base.el, cua-rect.el, cua-gmrk.el, and keypad.el
2002-04-28 21:48:39 +00:00