1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-14 10:00:25 -08:00
Commit graph

93 commits

Author SHA1 Message Date
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
ed0f493f0a Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:28:01 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88 Add 2008 to copyright years. 2008-01-07 01:14:52 +00:00
Glenn Morris
2c0f856464 (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.
2007-12-04 03:48:27 +00:00
Juanma Barranquero
026056a4c8 (cua--deactivate-rectangle, cua--highlight-rectangle,
cua--rectangle-post-command): Use `mapc' rather than `mapcar'.
2007-09-26 00:16:39 +00:00
Glenn Morris
e0085d62fa Switch license to GPLv3 or later. 2007-07-25 04:14:29 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Kim F. Storm
a452073597 (cua-help-for-rectangle): Add `alt' modifier. 2006-07-14 22:14:17 +00:00
Kim F. Storm
15ac4d5825 (cua--extract-rectangle)
(cua-incr-rectangle, cua--rectangle-aux-replace):
Use filter-buffer-substring.
2006-04-09 23:04:22 +00:00
Kim F. Storm
27366995b7 (cua--init-rectangles): Use
cua-rectangle-mark-key instead of fixed C-return.
2006-03-25 00:55:09 +00:00
Kim F. Storm
b53b41baa1 (cua--highlight-rectangle): Set overlay
cursor property value to 2 (to align with C level change).
2006-03-19 19:59:33 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
Kim F. Storm
5592022932 (cua--extract-rectangle): Undo recent change re. \s in strings. 2005-12-09 09:10:10 +00:00
Kim F. Storm
e87aa62061 (cua--rectangle-aux-replace): Fix
indention of text on right side of replaced rectangle.
2005-12-08 22:52:50 +00:00
Kim F. Storm
1638bf546d * emulation/cua-base.el (cua-use-hyper-key): Replaced by ...
(cua-rectangle-modifier-key): ... this.	 New defcustom.	 Can now
select either meta, hyper, or super modifier for rectangle commands.
(cua--rectangle-modifier-key): New defvar.
(cua--M/H-key): Use it.	 Remove special case for 'space.
(cua--init-keymaps): Initialize it from cua-rectangle-modifier-key
on X, to meta otherwise.  Always bind C-return to toggle
rectangle.  Pass ?\s instead of 'space to cua--M/H-key.

* emulation/cua-rect.el (cua-help-for-rectangle): Use
cua--rectangle-modifier-key.  Handle super modifier too.
(cua--init-rectangles): Always bind C-return to toggle rectangle.
Pass ?\s instead of 'space to cua--M/H-key and cua--rect-M/H-key.
2005-12-08 22:24:35 +00:00
Kim F. Storm
ea707ec6a0 (cua--extract-rectangle): Don't use \s in strings. 2005-12-08 20:56:35 +00:00
Kim F. Storm
c0e4cc1987 (cua--rectangle-overlays): Make permanent-local.
(cua--rectangle-post-command): Cleanup overlays and deactivate mark
after revert-buffer (or anything else which kills all local variables).
2005-11-29 23:58:20 +00:00
Kim F. Storm
98faed9f39 (cua--highlight-rectangle): Preserve
existing face when partially highlighting a TAB in a rectangle.
2005-11-26 23:30:43 +00:00
Kim F. Storm
f28564957e (cua--highlight-rectangle): Only show
rectangle overlay in selected window.
2005-08-01 22:06:42 +00:00
Thien-Thi Nguyen
5fd6d89f46 Update years in copyright notice; nfc. 2005-08-01 15:47:19 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
8482d727c3 (cua-do-rectangle-padding): Remove period from end of messages.
(cua--rectangle-seq-format): Fix typo in docstring.
(cua-sequence-rectangle, cua-fill-char-rectangle): Improve argument/docstring
consistency.
2005-06-30 01:15:52 +00:00
Kim F. Storm
1e98d199cc * emulation/cua-base.el (cua-rectangle, cua-rectangle-noselect)
(cua-global-mark): Remove -face suffix from face names.

* emulation/cua-gmrk.el (cua--init-global-mark): Remove
cua-global-mark face setup.
2005-06-06 13:19:15 +00:00
Kim F. Storm
541d6c0271 (cua--init-rectangles): Bind C-return instead of S-return to
toggle/clear rectangle mark.
2005-05-17 22:39:30 +00:00
Thien-Thi Nguyen
7f1c31c9d4 Update years in copyright notice; nfc. 2005-05-17 17:29:06 +00:00
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