Commit graph

324 commits

Author SHA1 Message Date
Glenn Morris
7e4e9c6618 (mouse-minor-mode-menu, minor-mode-menu-from-indicator):
Move here from bindings.el
2007-10-19 02:14:58 +00:00
Sam Steingold
cc2ee8ec1e (mouse-buffer-menu): Pass mode-name through format-mode-line because it
may be a list, e.g., (sgml-xml-mode "XML" "SGML"), and not a string.
2007-08-06 17:19:26 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Richard M. Stallman
b3709a5323 (mouse-yank-secondary): Better error message if no secondary selection. 2007-07-16 04:42:24 +00:00
Martin Rudalics
1d16d0504b (mouse-drag-track): Reset transient-mark-mode to nil
when handling the terminating event.
2007-07-15 08:31:26 +00:00
Martin Rudalics
177ffe92bf (mouse-drag-track): Reset transient-mark-mode to nil
when handling the terminating event.
2007-07-08 08:21:13 +00:00
Martin Rudalics
20a65989fe (mouse-drag-mode-line-1): Quit mouse tracking when
event is not a cons cell.  Do not unread drag-mouse-1 events.
Select right window in check whether space was stolen from
window above.
2007-07-02 05:40:12 +00:00
Martin Rudalics
c291e34415 (mouse-drag-mode-line-1): Quit mouse tracking when
event is not a cons cell.  Do not unread drag-mouse-1 events.
Select right window in check whether space was stolen from
window above.
2007-06-20 07:55:25 +00:00
Chong Yidong
3e4f866be3 (mouse-set-secondary): Update mouse-secondary-overlay. 2007-04-01 17:45:20 +00:00
Chong Yidong
c2841cde5f (mouse-drag-track): Remove spurious input-pending-p test. Suggested
by Johan Bockgård.
2007-03-19 15:52:04 +00:00
Richard M. Stallman
35da1e4830 (mouse-drag-mode-line-1, mouse-drag-vertical-line):
Don't select the window -- pass it to primitives instead.
2007-03-04 17:46:23 +00:00
Kim F. Storm
760a2050ca (mouse-show-mark): Run hooks and perform command
remapping for mouse-region-delete-keys.
2007-02-26 10:11:34 +00:00
Eli Zaretskii
84e42e60e1 <left-fringe mouse-2, right-fringe mouse-3, left-fringe mouse-3>: New bindings. 2007-02-02 14:42:38 +00:00
Eli Zaretskii
05b531f695 Fix whitespace and indentation. 2007-01-27 17:38:14 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Chong Yidong
a9d0154753 (mouse-drag-track): Suppress automatic hscrolling for initial down
event.
2006-12-02 21:47:02 +00:00
Juanma Barranquero
66564ab0df (mouse-popup-menubar, mouse-buffer-menu-alist): "?\ " -> "?\s". 2006-11-27 14:00:53 +00:00
Chong Yidong
d97c13b212 (global-map): Change 2006-08-16 fix to call mouse-yank-at-click
explicitly, since mouse events are not carried over into keyboard
macros.
2006-11-16 15:47:30 +00:00
Juanma Barranquero
624c972dcf (mouse-set-font): Fix typo in docstring. 2006-11-06 02:43:53 +00:00
David Kastrup
89bf250ee6 (mouse-posn-property): Fix typo for `event-start' in
doc string.
2006-09-21 18:02:47 +00:00
David Kastrup
9ed38a849d (mouse-posn-property): Improve doc string.
(mouse-on-link-p): Change buffers for function calls on links.
2006-09-20 04:56:58 +00:00
Stefan Monnier
e9ae308cb4 (mouse-on-link-p): Tentatively fix last change.
(mouse-drag-vertical-line): Remove unused var `wconfig'.
2006-09-19 16:33:30 +00:00
David Kastrup
91a2acb229 * mouse-sel.el (mouse-sel-follow-link-p): Use event position
instead of buffer position for `mouse-on-link-p'.

* mouse.el (mouse-posn-property): New function looking up the
properties at a click position in overlays and text properties in
either buffer or strings.
(mouse-on-link-p): Use `mouse-posn-property' to streamline lookup
of both `follow-link' as well as `mouse-face' properties.
(mouse-drag-track): Check `mouse-on-link-p' on event position, not
buffer position.

* help.el (describe-key-briefly): When reading a down-event on
mode lines or scroll bar, swallow the following up event, too.
Use the new mouse sensitity of `key-binding' for lookup.
(describe-key): The same here.
2006-09-15 08:53:18 +00:00
Stefan Monnier
3e9323d603 (global-map): Allow yanking with mouse-2 at a spot whose
cursor would normally be drawn in the fringe.
2006-08-17 03:36:17 +00:00
Thien-Thi Nguyen
23eb76c4f7 (mouse-on-link-p): Doc fix. 2006-07-23 21:13:13 +00:00
Richard M. Stallman
73c8f64c94 (mouse-drag-vertical-line-rightward-window): New function.
(mouse-drag-vertical-line): Call it.
2006-06-19 21:47:23 +00:00
Chong Yidong
89a94f1e3d * mouse.el (mouse-drag-vertical-line): Use window-inside-edges
when checking for attempt to drag leftmost or rightmost scrollbar.
2006-03-16 15:14:57 +00:00
Richard M. Stallman
ad64cd77b0 (mouse-drag-mode-line-1): Use mouse-drag-move-window-bottom
for the minibuffer too, but not if resize-mini-windows will interfere.
2006-02-13 18:47:18 +00:00
Chong Yidong
745cfc5705 2006-02-08 Chong Yidong <cyd@stupidchicken.com>
* mouse.el (mouse-drag-track): Don't change window if we rebind to
	some other event.
2006-02-08 20:47:24 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
J.D. Smith
f1c4f757fd (mouse-drag-track): Renamed, from `mouse-drag-region-1'. Includes
optional argument required to enable post-drag event processing
(e.g. delete region keys).  Can be used without this argument to track
a mouse region and operate on it as soon as the drag completes.
(mouse-drag-region): Use `mouse-drag-track'.
2006-01-03 17:08:51 +00:00
Richard M. Stallman
cbf090c459 (mouse-drag-region-1): When following link via mouse-2,
put on event-kind property.
2006-01-01 07:55:21 +00:00
Eli Zaretskii
5915523a25 (mouse-drag-window-above): Verify that the found window overlaps with the
given window in the horizontal dimension.
2005-12-31 11:47:05 +00:00
Richard M. Stallman
18e980c2ae (mouse-drag-region-1): When remapping mouse-1 to mouse-2, go back to
previously selected window, so it's selected when mouse-2 command runs.
2005-12-28 03:19:29 +00:00
Juri Linkov
8a30a619e2 (mouse-choose-completion): Replace `buffer-substring' with
`buffer-substring-no-properties' to remove common substring highlighting.
2005-12-23 21:53:29 +00:00
Richard M. Stallman
4199d5be3e (mouse-drag-vertical-line): Use adjust-window-trailing-edge. 2005-12-12 05:21:33 +00:00
Richard M. Stallman
91d99be6a8 (mouse-drag-move-window-bottom): Use adjust-window-trailing-edge. 2005-11-27 19:28:58 +00:00
Richard M. Stallman
c3bb6d703f Fix special handling of DEL after dragging a region:
(mouse-drag-region-1): Treat mouse-set-region like mouse-set-point.
(mouse-region-delete-keys): Add [backspace].
2005-11-03 21:37:21 +00:00
Romain Francoise
4bdce43863 2005-10-23 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
* mouse.el (mouse-drag-region): If the *Messages* buffer doesn't
	exist, create it.
2005-10-23 09:19:37 +00:00
YAMAMOTO Mitsuharu
1405937493 (mouse-set-region): Don't do sit-for on a mac frame. 2005-10-18 08:04:11 +00:00
Romain Francoise
97b1270c38 (mouse-1-click-follows-link): Doc fix. 2005-10-16 16:50:00 +00:00
Chong Yidong
f28e9cbd37 * mouse.el (mouse-drag-region-1): Handle the case where a
double-click event is bound to an arbitrary function.
2005-10-14 13:15:05 +00:00
Chong Yidong
592b0a3b6d (mouse-drag-region-1): Don't try to catch a
double-click when doing follow-link (it's overridden anyway).
2005-10-11 15:30:31 +00:00
Stefan Monnier
39739f21c6 (mouse-move-drag-overlay): Fix last change. 2005-09-22 21:30:58 +00:00
Stefan Monnier
aaf15b8b6f (mouse-move-drag-overlay): New function.
(mouse-drag-region-1): Use it.
Try to simplify a bit the state handling.  Handle clicks on links
inside intangible areas.
(mouse-save-then-kill): Minor simplification.
(mouse-secondary-overlay): Make it always non-nil instead of
recreating it each time.
(mouse-start-secondary, mouse-set-secondary, mouse-drag-secondary)
(mouse-kill-secondary, mouse-secondary-save-then-kill):
Simplify accordingly.
2005-09-21 20:26:49 +00:00
Stefan Monnier
f002506f6e (mouse-drag-mode-line-1, mouse-drag-vertical-line):
Delete unused var `old-selected-window'.
(mouse-drag-region-1): Delete unused vars `start-frame' `end-of-range'.
(mouse-drag-secondary): Delete unused var `start-frame'.
2005-09-19 18:51:54 +00:00
Chong Yidong
40cfe0d8bc 2005-09-14 Chong Yidong <cyd@stupidchicken.com>
* mouse.el (mouse-major-mode-menu): Make `prefix' optional.
	Delete unused local var.
2005-09-13 20:13:31 +00:00
Chong Yidong
efe4e5af8a *** empty log message *** 2005-09-06 19:10:06 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00