Commit graph

538 commits

Author SHA1 Message Date
Richard M. Stallman
ced6cb7112 Use eval-buffer, not eval-current-buffer. 2005-05-30 06:49:59 +00:00
Lute Kamstra
b98d046765 (wordstar-mode): Use run-mode-hooks. 2005-05-26 15:14:51 +00:00
Lute Kamstra
ec965cd42b (vi-mode-setup): Use run-mode-hooks. 2005-05-26 15:14:23 +00:00
Richard M. Stallman
e07ff07849 (viper-ex-work-buf, viper-ex-print-buf): Use defvar, not defconst. 2005-05-22 13:38:39 +00:00
Richard M. Stallman
90d5ea0499 Use write-file-functions instead of write-file-hooks. 2005-05-22 13:31:22 +00:00
Kim F. Storm
34e99b2e36 (crisp-home, crisp-end): Put CUA property. 2005-05-19 08:06:59 +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
Kim F. Storm
c9ee062db9 (cua-use-hyper-key): Doc fix.
(cua--init-keymaps): Bind C-return instead of S-return to set rectangle mark.
2005-05-17 22:39:06 +00:00
Thien-Thi Nguyen
7f1c31c9d4 Update years in copyright notice; nfc. 2005-05-17 17:29:06 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Kim F. Storm
6a350b06e2 (cua-copy-region, cua-cut-region)
(cua-paste): Handle clipboard action.
(cua--init-keymaps): Remap clipboard-kill-region and
clipboard-kill-ring-save.
2005-05-08 22:29:20 +00:00
Kim F. Storm
8736f4c222 Rework last fix. 2005-05-02 10:07:38 +00:00
Kim F. Storm
1934f52999 Fix check for CUA-mode if no init file. 2005-05-01 22:33:57 +00:00
Kim F. Storm
1338947ca0 (cua--pre-command-handler): Add more
elaborate check for shift modifier on non-window systems.
2005-04-18 19:50:07 +00:00
Dan Nicolaescu
fbcaad36b8 (cua-global-mark-face): Add special case
for displays supporting a high number of colors.
2005-04-16 16:03:29 +00:00
Kim F. Storm
0362261406 (cua-rectangle-face)
(cua-rectangle-noselect-face): Define face attributes here.
2005-04-12 20:39:35 +00:00
Kim F. Storm
786aac0f63 (cua--init-rectangles): Remove face setup. 2005-04-12 20:39:08 +00:00
Lute Kamstra
ca0f8d34cc (cua-mode): Specify :group. 2005-04-04 09:13:04 +00:00
Kim F. Storm
ec503c284c (cua-scroll-down): Add CUA property. 2005-03-30 22:20:24 +00:00
Werner LEMBERG
d00fa0a4b3 * emulation/vip.el: Replace illegal' with invalid'. 2005-03-25 08:30:01 +00:00
Stefan Monnier
ffc30f4fa1 find-file-hooks -> find-file-hook. 2005-03-24 22:17:43 +00:00
Kim F. Storm
bab88420b1 Put CUA move property on move-end-of-line
and move-beginning-of-line.
2005-03-07 11:12:58 +00:00
Michael Kifer
3f9526a371 * viper-cmd.el (viper-prefix-commands): make into a defconst.
(viper-exec-buffer-search): use regexp-quote to quote the buffer
	string.
	(viper-minibuffer-setup-sentinel): make some variables buffer-local.
	(viper-skip-separators): bug fix.
	(viper-set-searchstyle-toggling-macros): allow to unset macros in a
	particular major mode.
	(viper-del-backward-char-in-replace): don't put deleted char on the
	kill ring.

	* viper-ex.el (viper-color-display-p): new function.
	(viper-has-face-support-p): use viper-color-display-p.

	* viper-keym.el (viper-gnus-modifier-map): new keymap.

	* viper-macs.el (viper-unrecord-kbd-macro): bug fix.

	* viper-util.el (viper-glob-unix-files): fix shell status check.
	(viper-file-remote-p): make equivalent to file-remote-p.

	* viper.el (viper-major-mode-modifier-list): use
	viper-gnus-modifier-map.
2005-02-19 19:32:47 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +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
4905133fd7 (cua-max-undo, cua-undo): Remove.
(cua--standard-movement-commands): Remove list.
Instead, set CUA property value to move for movement commands.
(cua-movement-commands): Remove.  Users must set CUA prop instead.
(cua--pre-command-handler): Check CUA property.
(cua--init-keymaps): Don't remap undo commands.
(cua-mode): Don't call cua--rectangle-on-off.
2005-02-07 11:44:40 +00:00
Kim F. Storm
5acfef08ad (cua--preserve-mark-commands): Remove.
(cua--undo-push-mark): Remove.
(cua--pre-command-handler, cua--post-command-handler): Don't
fiddle with inhibit-mark-movement.
2004-12-14 12:18:30 +00:00
Luc Teirlinck
d55f9265dd (tpu-help-keypad-map, tpu-help-text)
(tpu-word-separator-list, tpu-skip-chars): defconst->defvar.
2004-11-29 23:26:08 +00:00
Kim F. Storm
162acfa765 (group cua): Add :version keyword.
(cua-mode): Remove :version keyword.
2004-10-30 22:38:12 +00:00
Kim F. Storm
abca72d738 Fix copyright. 2004-10-28 14:28:40 +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
85d392cbe0 (cua-auto-expand-rectangles): Remove
automatic rectangle padding feature; replace by non-destructive
virtual rectangle edges feature.
(cua-virtual-rectangle-edges): New defcustom.
(cua-auto-tabify-rectangles): New defcustom.
(cua-paste): If paste into a marked rectangle, insert rectangle at
current column, even if virtual; also paste exactly as many lines
as has been marked (ignore additional lines or add empty lines),
but paste whole source if only one line is marked.
(cua--update-indications): No longer use overwrite-cursor to
indicate rectangle padding
2004-08-29 20:57:42 +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
ff99642792 (cua--preserve-mark-commands): New defvar.
Init to beginning-of-buffer and end-of-buffer.
(cua--undo-push-mark): New defvar.
(cua--pre-command-handler): Set inhibit-mark-movement if mark is
already active and command is in cua--preserve-mark-commands.
Also fix check for shift modifier on non-window systems.
(cua--post-command-handler): Clear inhibit-mark-movement if set.
2004-07-16 10:42:26 +00:00
Richard M. Stallman
e873bbf926 Doc fixes: say "PC Selection mode", not "`pc-selection-mode'". 2004-06-13 22:02:49 +00:00
Kim F. Storm
ef2887a290 (cua-mode): Deactivate mark when cua-mode is enabled. 2004-05-03 14:26:23 +00:00
Kim F. Storm
6aa06cd8d2 (cua--update-indications): Fix last change. 2004-05-03 13:39:24 +00:00
Kim F. Storm
b1227a169f Change cursor-type block to hollow. 2004-04-30 22:54:57 +00:00
Kim F. Storm
2ed2415d6d * emulation/cua-base.el: Add support for changing cursor types;
based on patch from Michael Mauger.
(cua-normal-cursor-color, cua-read-only-cursor-color)
(cua-overwrite-cursor-color, cua-global-mark-cursor-color):
Customization cursor type and/or cursor color.
(cua--update-indications): Handle cursor type changes.
(cua-mode): Update cursor indications if enabled.
2004-04-30 22:47:38 +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
Kim F. Storm
82851d10ad (cua--standard-movement-commands):
Add cua-scroll-up and cua-scroll-down.
(cua-scroll-up, cua-scroll-down): New commands.
(cua--init-keymaps): Remap scroll-up and scroll-down.
2004-04-30 21:38:44 +00:00
Kim F. Storm
3ffc8a8a0d (cua-read-only-cursor-color)
(cua-overwrite-cursor-color, cua-global-mark-cursor-color): Doc fix.
2004-04-13 21:46:30 +00:00
Juanma Barranquero
bf9ac69bcf (tpu-set-mark): Fix typo. 2004-02-29 23:10:58 +00:00
Andreas Schwab
0b762d9a53 (ex-mark): Remove extra format string
argument.
2004-02-08 22:41:18 +00:00
Andreas Schwab
6d255ee3cc (vi-mode): Remove extra format string argument.
(vi-repeat-last-search): Likewise.
(vi-reverse-last-search): Likewise.
(vi-goto-mark): Likewise.
(vi-reverse-last-find-char): Likewise.
(vi-repeat-last-find-char): Likewise.
(vi-locate-def): Likewise.
2004-02-08 22:37:34 +00:00
Eli Zaretskii
1550204223 * progmodes/idlwave.el (idlwave-make-tags):
* textmodes/flyspell.el (flyspell-large-region):.
* progmodes/make-mode.el (makefile-query-by-make-minus-q):
* emulation/viper-util.el (viper-glob-unix-files):
* emacs-lisp/shadow.el (shadow-same-file-or-nonexistent):
* man.el (Man-init-defvars):
* jka-compr.el (jka-compr-call-process):
* files.el (get-free-disk-space,insert-directory):
* ediff-ptch.el (ediff-test-patch-utility):
* ediff-diff.el (ediff-test-utility):
* dired-aux.el (dired-check-process):
* mail/sendmail.el (sendmail-send-it): Don't use = or zerop to
test the return value of call-process, because it can be a string.
2004-01-03 12:12:01 +00:00
Kim F. Storm
c7cc2f9e9a (cua--standard-movement-commands): Add forward-sentence and backward-sentence. 2003-11-25 22:10:52 +00:00