1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00
Commit Graph

67 Commits

Author SHA1 Message Date
Richard M. Stallman
dd524dbd68 (mouse-save-then-kill-delete-region): Take args BEG and END.
Update the undo list properly.
(mouse-save-then-kill): Pass those args.
When we kill, clear mouse-save-then-kill-posn
and mouse-selection-click-count.
(mouse-secondary-save-then-kill): Likewise.
Delete the overlay after deleting the selection text.
(mouse-selection-click-count): Initialize to 0.
(mouse-save-then-kill-delete-region): Handle buffers with no undo list.
Handle empty regions.  Handle end < beg.
1993-11-15 09:56:05 +00:00
Richard M. Stallman
26d280b955 (mouse-save-then-kill-delete-region): Take args BEG and END.
Update the undo list properly.
(mouse-save-then-kill): Pass those args.
(mouse-secondary-save-then-kll): Pass those args.
Delete the overlay after deleting the selection text.
1993-11-14 06:26:02 +00:00
Richard M. Stallman
3544cfc9b9 (mouse-drag-region): Set this-command to mouse-set-point
if not setting the mark.
(mouse-save-then-kill): Consider mark-active only in transient mark md.
1993-11-03 00:50:06 +00:00
Richard M. Stallman
d89a4a47bf (mouse-delete-max-match): New function.
(mouse-choose-completion): Use that.  Now supports buffers
other than minibuffer.

(mouse-drag-region): Put the text on the kill ring.
Don't set mark if region is empty.
(mouse-yank-at-click): Set this-command.
(mouse-start-end): Fix double-click-on-closeparen case.
(mouse-save-then-kill): When used repeatedly at different places,
alter the nearer end of the region.  This applies regardless of how
the previous selection was made.
(mouse-drag-secondary, mouse-secondary-save-then-kill):
Rewrite for xterm-style dragging and extending.
1993-09-27 01:02:43 +00:00
Richard M. Stallman
eb6ff46fa1 (mouse-save-then-kill): If follows a multi-click selection,
extend the selection.
(mouse-save-then-kill-delete-region): New subroutine.
(mouse-selection-click-count): New variable.
(mouse-drag-region): Set it.
1993-09-20 17:36:49 +00:00
Richard M. Stallman
e37de1206a (mouse-set-region): Put region in kill ring.
(mouse-drag-region): Handle double and triple clicks
when displaying region and when setting it.
(mouse-skip-word, mouse-start-end): New functions.
1993-09-17 21:26:18 +00:00
Richard M. Stallman
324710caf5 (mouse-choose-completion): Really go to minibuffer; no save-excursion. 1993-08-12 22:21:12 +00:00
Richard M. Stallman
1e49aa290a (mouse-drag-region): Mouse in menu bar means scroll up. 1993-08-11 21:29:51 +00:00
Richard M. Stallman
0d94f5ca29 (font-menu-add-default): Use list, not cons, for new elt.
Don't get confused if no Misc entry.
1993-08-11 19:22:35 +00:00
Richard M. Stallman
3d64d15b2e (font-menu-add-default): Fix previous change. 1993-08-11 19:20:22 +00:00
Richard M. Stallman
2a5fa27beb (mouse-set-point): Use event-end, not event-start. 1993-08-11 06:17:43 +00:00
Richard M. Stallman
78210c952b (mouse-drag-region): Doc fix. 1993-08-10 17:03:06 +00:00
Richard M. Stallman
b80f19281d (mouse-set-point): Error if click in inactive minibuffer.
(mouse-drag-region): Use mouse-set-point.
Don't set a mark if final event wasn't suitable for setting point.
1993-08-08 19:16:42 +00:00
Richard M. Stallman
c4fc9e31aa (mouse-save-then-kill): Fix paren error in last change. 1993-08-06 22:11:20 +00:00
Richard M. Stallman
8b213da760 (help-admin-map): Fix menu item text. 1993-08-05 21:53:02 +00:00
Richard M. Stallman
a2d24e958a (mouse-save-then-kill): Don't discard all the normal
undo info; just replace the deletion entry.
1993-08-04 04:37:11 +00:00
Richard M. Stallman
49e61c4267 (mouse-choose-completion): Actually choose that alternative,
don't just insert its name.
1993-07-31 05:31:58 +00:00
Richard M. Stallman
0eb9fef353 (font-menu-add-default): New function. 1993-07-26 20:04:19 +00:00
Richard M. Stallman
fa21fdecc7 (x-fixed-font-alist): Give some fonts long patterns.
Delete 9x15 bold and 8x13 and 8x13 bold.  Add some fonts.
1993-07-25 20:46:18 +00:00
Richard M. Stallman
367ee8f4d0 (mouse-secondary-save-then-kill): When making the undo item,
use an integer, not a marker, for the position.
1993-07-22 07:15:49 +00:00
Richard M. Stallman
26d86f19f9 (mouse-set-font): Update faces bold, italic and bold-italic. 1993-07-22 06:20:40 +00:00
Richard M. Stallman
f767385c90 (mouse-drag-region): Use deactivate-mark. 1993-07-21 07:40:12 +00:00
Richard M. Stallman
f936ae0677 (mouse-choose-completion): New function. 1993-07-13 21:33:17 +00:00
Jim Blandy
b846d0394a * mouse.el (mouse-drag-region): Correctly handle drags which enter
other frames.
1993-07-02 23:05:25 +00:00
Jim Blandy
600c6e3ad0 * mouse.el (mouse-drag-region-1): Commented out.
(mouse-drag-region): Commented out, and replaced with new version,
	which highlights the region as we drag.
	(mouse-scroll-delay, mouse-drag-overlay): New variables.
	(mouse-scroll-subr): New function.
1993-06-30 04:47:37 +00:00
Richard M. Stallman
af2a85fe39 (mouse-buffer-menu): Include % and * in each item.
Calculate amount of space needed for longest buffer name.
1993-06-25 22:33:57 +00:00
Richard M. Stallman
230aaa738f (mouse-secondary-save-then-kill): Don't switch windows.
Just set-buffer, and put save-excursion around it.
(mouse-set-secondary, mouse-start-secondary): Likewise.
(mouse-drag-secondary): Switch windows and move point just temporarily.
1993-06-18 17:59:02 +00:00
Richard M. Stallman
e66feb07ed (mouse-start-secondary): New function.
(mouse-set-secondary, mouse-drag-secondary): New functions.
(mouse-kill-secondary, mouse-secondary-save-then-kill): New functions.
1993-06-17 18:17:32 +00:00
Richard M. Stallman
3f26b32a5f (mouse-set-mark-fast): New function.
(mouse-show-mark): New function.
(mouse-kill-ring-save, mouse-save-then-kill): Use them.
(mouse-save-then-kill): Don't let kill-region alter this-command.
Check last-command accordingly.
(mouse-split-window-vertically): Handle scroll bar events.
1993-06-13 04:18:43 +00:00
Richard M. Stallman
bcd5aef107 (mouse-drag-region-1): Un-comment-out this function. 1993-06-08 05:16:47 +00:00
Richard M. Stallman
c0bb9f3b6d (mouse-buffer-menu): Don't select the event's window,
if event has frame instead.
1993-06-01 22:19:16 +00:00
Richard M. Stallman
82c048a919 (x-fixed-font-alist): Specify field 7, not field 6. 1993-05-29 04:34:00 +00:00
Richard M. Stallman
897897e32b (mouse-set-mark): Activate the mark.
Don't bounce the cursor if Transient Mark mode.
(mouse-save-then-kill): Pass explicit args to kill-ring-save.
(mouse-kill-ring-save): Likewise.
1993-05-26 18:09:52 +00:00
Richard M. Stallman
1cc8a3f41a (mouse-set-region): Call set-mark to activate mark. 1993-05-15 20:32:23 +00:00
Richard M. Stallman
fcfc3c6379 (mouse-drag-region): New command, on down-mouse-1. 1993-05-15 19:52:01 +00:00
Jim Blandy
1a786d291b * mouse.el (mouse-buffer-menu): Don't right-justify the buffer
name; this doesn't look nice if we use a proportional font.
1993-05-03 03:38:36 +00:00
Eric S. Raymond
edbd2f74bc Added or corrected Commentary sections 1993-03-22 05:42:35 +00:00
Eric S. Raymond
aae56ea7ca Add standard library headers. 1993-03-17 16:56:02 +00:00
Richard M. Stallman
9a408b1d63 (posn-timestamp, posn-col-row, posn-point, posn-window):
(event-end, event-start, mouse-movement-p): Moved to subr.el.
1993-03-08 08:09:54 +00:00
Jim Blandy
5ba2dc3fd3 * mouse.el (mouse-split-window-vertically): If the user clicks too
close to the top or bottom of a window, split at the closest
	reasonable line.  Give a helpful error message if the window is
	too small to be split anywhere.
	(mouse-split-window-horizontally): Similar changes.
1993-03-02 07:29:05 +00:00
Jim Blandy
dbc4e1c129 JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
Richard M. Stallman
40a45a9f94 (mouse-save-then-kill): When deleting, avoid delay
and don't set the mark.  Replace obsolete fn event-point.
(mouse-kill): Replace obsolete fn event-point.
1993-01-13 01:31:45 +00:00
Richard M. Stallman
2d82f7b90d (mouse-buffer-menu): Select the window clicked on. 1992-12-29 21:06:51 +00:00
Jim Blandy
b0f3a26ba8 * mouse.el (mouse-tear-off-window): New function. 1992-10-17 21:57:45 +00:00
Richard M. Stallman
652ccd357d (mouse-set-region): New command. Bind drag-mouse-1 to it. 1992-10-17 07:07:39 +00:00
Jim Blandy
b5370f0363 * mouse.el: Begin adapting this to the new event format.
(event-window, event-point, mouse-coords, mouse-timestamp):
	Removed.
	(event-start, event-end, posn-window, posn-point, posn-col-row,
	posn-timestamp): New accessors; these are defsubsts.
	(mouse-delete-window, mouse-delete-other-windows,
	mouse-split-window-vertically, mouse-set-point): Rewritten to use
	the new accessors.

	* mouse.el: Remove hack of binding down-mouse-1.

	* mouse.el (mouse-movement-p): Add docstring for this.
1992-10-07 20:46:31 +00:00
Richard M. Stallman
947da0c4ce (mouse-split-window-vertically): Use @.
(mouse-split-window-horizontally): New command.
Use S-mouse-2 for them.
(mouse-delete-window): Put on mode-line mouse-3.
(mouse-save-then-kill): New command, on mouse-3.
(mouse-delete-other-windows): Use @.  Now on mode-line mouse-1.
(mouse-scroll-down, mouse-scroll-up): Use e, get line from event.
(mouse-scroll-move-cursor): Likewise.
(mouse-scroll-left, mouse-scroll-right): Likewise for column.
(mouse-scroll-move-cursor-horizontally): Likewise.
1992-09-26 08:15:35 +00:00
Jim Blandy
ec558adcce entered into RCS 1992-09-13 11:44:06 +00:00
Richard M. Stallman
07a784100e *** empty log message *** 1992-09-12 01:37:46 +00:00
Richard M. Stallman
6ec3899e16 *** empty log message *** 1992-08-31 21:42:28 +00:00