1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00
Commit Graph

371 Commits

Author SHA1 Message Date
Juanma Barranquero
79ef886b1d (top-level): Fix typo. 2002-10-18 08:59:10 +00:00
Kim F. Storm
496c17d61b (cua-normal-cursor-color): Fixed
initialization to make "Erase Customization" work.
2002-10-06 21:34:07 +00:00
Michael Kifer
f3eabcdf40 2002-09-18 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff-hooks.el: Put back the autoloads (for compatibility with XEmacs).

	* ediff-init.el: Use defalias instead of fset.

	* ediff-util.el: Use defalias instead of fset.

	* viper-util.el (viper-chars-in-region): simplification.

	* viper.el (viper-emacs-state-mode-list): added modes.
2002-09-18 04:23:27 +00:00
Kim F. Storm
f31023f990 (keypad-setup, keypad-shifted-setup)
(keypad-numlock-setup, keypad-numlock-shifted-setup):
Change `Remove Binding' option to `Unspecified/User-defined'.
(keypad-setup): Enhance explanation of setup type `none'.
2002-09-14 20:54:07 +00:00
Juanma Barranquero
c760d04023 (ex-compile-command): Fix typo. 2002-08-30 11:02:10 +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
Juanma Barranquero
5ec2752af6 (tpu-delete-to-eol): Fix typo.
(tpu-delete-to-bol): Likewise.
2002-07-03 14:32:01 +00:00
Kim F. Storm
3efa11935a Added :require 'keypad to defcustoms. 2002-06-24 08:30:09 +00:00
Kim F. Storm
5632c006df Corrected last fix. 2002-06-21 13:56:13 +00:00
Kim F. Storm
2fe7c8dd91 Handle kp-begin like kp-space. 2002-06-21 13:51:26 +00:00
Kim F. Storm
1c62c12fbf (cua--prefix-arg): Make register prefixes
work again. Corrected error in check for C-u initiated prefix.
2002-06-21 13:51:05 +00:00
Juanma Barranquero
669858fb0b (edt-substitute): Fix typo. 2002-06-18 14:35:28 +00:00
Richard M. Stallman
37ce10ea26 Undo previous change. 2002-06-10 08:50:02 +00:00
Richard M. Stallman
8a0c77f5dc (viper-insert-prev-from-insertion-ring)
(viper-prev-destructive-command): Use copy-sequence.
2002-06-10 08:33:32 +00:00
Kim F. Storm
5834ac9207 (cua--last-deleted-region-pos)
(cua--last-deleted-region-text): New aux variables.
(cua-delete-region): Set them.
(cua-repeat-replace-region): Use them to find the replacement text.
2002-05-31 12:19:57 +00:00
Juanma Barranquero
d82fb2adeb (viper-smart-suffix-list, viper-ask-level): Fix typos. 2002-05-31 09:26:18 +00:00
Kim F. Storm
fc803e8d1a (cua-set-mark): Align pop to marko
behaviour with standard set-mark-command.
(cua--pre-command-handler): Use push-mark-command.
(cua-repeat-replace-region): Improve functionality when
repeated after moving point or changing buffer.
2002-05-27 12:14:52 +00:00
Kim F. Storm
34a63289a6 (cua--repeat-replace-text): New variable.
(cua-repeat-replace-region): New command.
(cua--init-keymaps): Bind it to M-v in cua--cua-keys-keymap.
Misc improvements to the commantary.
2002-05-26 00:54:10 +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
Kim F. Storm
f8b38495a5 (cua--init-global-mark): Install default
binding in cua--global-mark-keymap using cua--self-insert-char-p
to handle all global self inserting characters in gmark mode.
2002-05-25 00:07:26 +00:00
Kim F. Storm
20023b9cb4 (cua--self-insert-char-p): New function. 2002-05-25 00:06:56 +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
Kim F. Storm
6df44fac4b Improved commentary.
(keypad-setup, keypad-shifted-setup): Added choice to setup
Numeric keypad with decimal key; value is selected character.
(keypad-decimal-key, keypad-shifted-decimal-key): Removed options.
(keypad-numlock-setup, keypad-numlock-shifted-setup): New options.
(keypad-setup):  Arg list changed to support the new options.
2002-05-14 20:30:55 +00:00
Kim F. Storm
cadc926b47 (cua-enable-cursor-indications): Default off.
(cua-mode): Print Enabled/Disabled messages if interactive.
Disable delete-selection-mode and pc-selection-mode when cua-mode
is enabled; reenable if cua-mode is turned off.
Remember setting of transient-mark-mode when cua-mode is enabled;
restore if cua-mode is disabled.
2002-05-13 20:35:30 +00:00
Kim F. Storm
c1cdea1a79 (cua-enable-cua-keys)
(cua-enable-register-prefix): Added value for `other' choice.
2002-05-10 11:21:10 +00:00
Kim F. Storm
a23a8440c7 (cua-mode): Misc. changes to use
emulation-mode-map-alists instead of minor-mode-map-alist.
2002-05-10 08:28:51 +00:00
Pavel Janík
307645975c Follow coding conventions. 2002-05-02 05:41:46 +00:00
Kim F. Storm
63e6f5b3f9 (cua-inhibit-cua-keys): New buffer-local variable. 2002-05-01 22:04:47 +00:00
Kim F. Storm
e75d337c0a (cua--pre-command-handler): Only interpret delete-selection property if mark-active. 2002-05-01 14:22:06 +00:00
Kim F. Storm
bed8e829ec Fixed require for cua-mode variable 2002-04-30 13:12:33 +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
Michael Kifer
241d963df0 * viper-ex.el: Patch by Samuel Padgett. Copyright papers received.
(viper-ex-print-buf-name): New variable.
	(viper-ex-print-buf): New variable.
	(ex-token-alist): Invoke ex-print on ":print" Ex commands.
	(ex-g-marks): New variable.
	(ex-print): New function.
	(ex-print-display-lines): New function.

	* viper.el (viper-set-hooks): add window-setup-hook, which sets
	the cursor color.

	* ediff-util.el (ediff-cleanup-mess): delete ctl window on exit
	when the window is not in its own frame.
	(ediff-clone-buffer-for-region-comparison): more robust window
	arrangement while prompting for regions to compare.
	(ediff-make-cloned-buffer): use generate-new-buffer-name.
	(ediff-inferior-compare-regions): deleted unused vars
	ctl-buf and quit-now.
2002-04-16 05:49:11 +00:00
Richard M. Stallman
93e92186be (pc-selection-mode): Alter the existing global map, don't replace it. 2002-03-18 04:31:36 +00:00
Michael Kifer
8bdd0bf785 2002-02-10 Michael Kifer <kifer@cs.stonybrook.edu>
* viper-util.el (viper-read-key-sequence): fixed so it'll read
	fast key sequences in emacs native mode
	(viper-events-to-keys): deleted

	* viper.el (describe-key, describe-key-briefly): get rid of
	viper-events-to-keys.

	* ediff-init.el (ediff-has-gutter-support): Steven Turnbull's patch.

	* ediff-wind.el (ediff-setup-control-frame): Use
	ediff-has-gutter-support.

	* ediff-util.el (ediff-dispose-of-variant-according-to-user):
	check if buff is alive.

	* ediff.el: typo in comment.
2002-02-10 06:46:12 +00:00
Richard M. Stallman
024ab5b504 (pc-select-save-and-set-mode): Properly use MODE-VAR. 2002-02-01 03:59:17 +00:00
Richard M. Stallman
cb96f0941a (pc-selection-mode-hook)
(pc-select-saved-settings-alist, pc-select-map)
(pc-select-saved-global-map, pc-select-key-bindings-alist)
(pc-select-default-key-bindings, pc-select-extra-key-bindings)
(pc-select-meta-moves-sexps-key-bindings)
(pc-select-tty-key-bindings, pc-select-old-M-delete-binding):
New variables.
(pc-select-define-keys, pc-select-restore-keys): New functions.
(pc-select-add-to-alist, pc-select-save-and-set-var)
(pc-select-save-and-set-mode, pc-select-restore-var)
(pc-select-restore-mode): New macros.

(pc-selection-mode): Completely rewrote the body of the function;
the main goal was to make pc-selection-mode "turn-off"-able, like
other minor modes.  Use define-minore-mode instead of just a
defun.  Store the key bindings into four alists:
pc-select-default-key-bindings, pc-select-extra-key-bindings,
pc-select-meta-moves-sexps-key-bindings, and
pc-select-tty-key-bindings; then have the pc-select-define-keys
function walk those alists instead of calling define-key
repeatedly.  When the mode is turned on, set the
keybindings in global-map and remember the old keybindings; when
the mode is turned off, restore the previously-saved keybindings.

(pc-selection-mode defcustom): Reflect the fact that the mode is
now "turn-off"-able.
2002-01-26 22:47:39 +00:00
Pavel Janík
b9d67a772d Fix typo. 2002-01-12 21:41:26 +00:00
Michael Kifer
b93e5ce229 2002-01-09 Michael Kifer <kifer@cs.stonybrook.edu>
* viper.el (viper-set-hooks): zap viper-unfriendly bindings in
	flyspell-mouse-map.
2002-01-09 17:33:15 +00:00
Michael Kifer
50a07e1856 2002-01-07 Michael Kifer <kifer@cs.stonybrook.edu>
* viper-init.el (viper-cond-compile-for-xemacs-or-emacs):
	new macro that replaces viper-emacs-p and viper-xemacs-p in many
	cases. Used to reduce the number of warnings.

	* viper-cmd.el: use viper-cond-compile-for-xemacs-or-emacs.
	(viper-standard-value): moved here from viper.el.
	(viper-set-unread-command-events): moved to viper-util.el
	(viper-check-minibuffer-overlay): make sure
	viper-minibuffer-overlay is moved to cover the entire input field.

	* viper-util.el:  use viper-cond-compile-for-xemacs-or-emacs.
	(viper-read-key-sequence, viper-set-unread-command-events,
	viper-char-symbol-sequence-p, viper-char-array-p): moved here.

	* viper-ex.el: use viper-cond-compile-for-xemacs-or-emacs.

	* viper-keym.el: use viper-cond-compile-for-xemacs-or-emacs.

	* viper-mous.el: use viper-cond-compile-for-xemacs-or-emacs.

	* viper-macs.el (viper-char-array-p, viper-char-symbol-sequence-p,
	viper-event-vector-p): moved to viper-util.el

	* viper.el (viper-standard-value): moved to viper-cmd.el.
	Use viper-cond-compile-for-xemacs-or-emacs.

	* ediff-help.el: use ediff-cond-compile-for-xemacs-or-emacs.

	* ediff-hook.el: use ediff-cond-compile-for-xemacs-or-emacs.

	* ediff-init.el (ediff-cond-compile-for-xemacs-or-emacs): new
	macro designed to be used in many places where ediff-emacs-p or
	ediff-xemacs-p was previously used. Reduces the number of
	warnings.
	Use ediff-cond-compile-for-xemacs-or-emacs in many places in lieue
	of ediff-xemacs-p.
	(ediff-make-current-diff-overlay, ediff-highlight-diff-in-one-buffer,
	ediff-convert-fine-diffs-to-overlays, ediff-empty-diff-region-p,
	ediff-whitespace-diff-region-p, ediff-get-region-contents):
	moved to ediff-util.el.
	(ediff-event-key): moved here.

	* ediff-merge.el: got rid of unreferenced variables.

	* ediff-mult.el: use ediff-cond-compile-for-xemacs-or-emacs.

	* ediff-util.el: use ediff-cond-compile-for-xemacs-or-emacs.
	(ediff-cleanup-mess): improved the way windows are set up after
	quitting ediff.
	(ediff-janitor): use ediff-dispose-of-variant-according-to-user.
	(ediff-dispose-of-variant-according-to-user): new function
	designed to be smarter and also understands indirect buffers.
	(ediff-highlight-diff-in-one-buffer,
	ediff-unhighlight-diff-in-one-buffer,
	ediff-unhighlight-diffs-totally-in-one-buffer,
	ediff-highlight-diff, ediff-highlight-diff,
	ediff-unhighlight-diff, ediff-unhighlight-diffs-totally,
	ediff-empty-diff-region-p, ediff-whitespace-diff-region-p,
	ediff-get-region-contents, ediff-make-current-diff-overlay):
	moved here.
	(ediff-format-bindings-of): new function by Hannu Koivisto
	<azure@iki.fi>.
	(ediff-setup): make sure the merge buffer is always widened and
	modifiable.
	(ediff-write-merge-buffer-and-maybe-kill): refuse to write the
	result of a merge into a file visited by another buffer.
	(ediff-arrange-autosave-in-merge-jobs): check if the merge file
	is visited by another buffer and ask to save/delete that buffer.
	(ediff-verify-file-merge-buffer): new function to do the above.

	* ediff-vers.el: load ediff-init.el at compile time.

	* ediff-wind.el: use ediff-cond-compile-for-xemacs-or-emacs.

	* ediff.el (ediff-windows, ediff-regions-wordwise,
	ediff-regions-linewise): use indirect buffers to improve
	robustness and make it possible to compare regions of the same
	buffer (even overlapping regions).
	(ediff-clone-buffer-for-region-comparison,
	ediff-clone-buffer-for-window-comparison): new functions.
	(ediff-files-internal): refuse to compare identical files.
	(ediff-regions-internal): get rid of the warning about comparing
	regions of the same buffer.

	* ediff-diff.el (ediff-convert-fine-diffs-to-overlays): moved here.
	Plus the following fixes courtesy of Dave Love:
	Doc fixes.
	(ediff-word-1): Use word class and move - to the
	front per regexp documentation.
	(ediff-wordify): Bind forward-word-function outside loop.
	(ediff-copy-to-buffer): Use insert-buffer-substring rather than
	consing buffer contents.
	(ediff-goto-word): Move syntax table setting outside loop.
2002-01-08 04:36:01 +00:00
Richard M. Stallman
e31c1fd5e4 (ps-font-lock-face-attributes): Use :weight and :slant. 2001-12-31 20:32:52 +00:00
Pavel Janík
04b7de794f (tpu-reset-screen-size): Use set-frame-height and set-frame-width instead
of set-screen-height and set-screen-width.
2001-12-25 11:22:35 +00:00
Michael Kifer
b9fe4732f6 2001-12-24 Michael Kifer <kifer@cs.sunysb.edu>
* viper-cmd.el (viper-change-state): Got rid of make-local-hook.
	(viper-special-read-and-insert-char): Make C-m work right in the r
	comand.
	(viper-buffer-search-enable): Fixed format string.

	* viper-ex.el (ex-token-alist): Use ex-set-visited-file-name
	instead of viper-info-on-file.
	(ex-set-visited-file-name): New function.

	* viper.el (viper-emacs-state-mode-list): Added mail-mode.

	* ediff-mult.el (ediff-meta-mark-equal-files): Added optional
	action argument.

	* ediff-init.el: Fixed some doc strings.

	* ediff-util.el (ediff-after-quit-hook-internal): New variable.
	Got rid of make-local-hook.

	* ediff-wind.el (ediff-setup-control-frame): Got rid of
	make-local-hook.
2001-12-24 05:50:31 +00:00
Pavel Janík
e32abc829f Files removed. 2001-12-22 14:13:11 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Stefan Monnier
fd4e5923fe Doc string fixes.
(pc-selection-mode): Don't treat macos as a tty.
2001-11-19 23:09:28 +00:00
Pavel Janík
8971f87bf6 Fix typo. 2001-11-16 18:37:52 +00:00
Michael Kifer
2d341681c8 2001-10-13 Michael Kifer <kifer@cs.sunysb.edu>
* viper-ex.el (ex-edit): make checks for modified buffer/file.
	(viper-get-ex-address-subr): more precise addr for the $ marker

	* viper-cmd.el: Fixed indentation.

	* viper.texi: Clarified that viper won't expand special symbols in
	search patterns.
2001-10-13 21:38:19 +00:00
Pavel Janík
744da4d88e use defalias instead of fset for user-visible commands. 2001-10-10 05:57:24 +00:00
Pavel Janík
cba04ae97e Make messages match original TPU/edt editor. 2001-10-03 19:44:55 +00:00