1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

304 Commits

Author SHA1 Message Date
Sam Steingold
ab60bd7403 (mouse-show-mark): Replace the last occurrence of
x-lost-selection-hooks with x-lost-selection-functions.
2004-10-29 14:31:34 +00:00
Stefan Monnier
b10c429fe3 (mouse-show-mark): Adjust to new name and don't assume
x-lost-selection-functions is bound.
2004-10-28 23:33:23 +00:00
Richard M. Stallman
d3d3d650ef (mouse-show-mark): Do most processing the same
regardless of transient-mark-mode.
2004-10-27 17:44:59 +00:00
David Ponce
7a892a8bff (mouse-drag-move-window-top): New function.
(mouse-drag-mode-line-1): Use it.
2004-10-18 09:29:59 +00:00
Richard M. Stallman
f9c8b7ae61 (mouse-yank-at-click, mouse-yank-secondary):
Use * to err if buffer is readonly.
2004-10-16 15:30:56 +00:00
Richard M. Stallman
cc47c660fa (mouse-set-region-1): If transient-mark-mode
is `identity', change it to `only'.
2004-07-09 16:54:04 +00:00
Richard M. Stallman
eb630d4b6b (mouse-set-region-1): Set transient-mark-mode to `only'. 2004-06-21 03:16:28 +00:00
Stefan Monnier
a5809dbd7f (mouse-set-region-1): Use temporary transient-mark-mode
after the user marked text with the mouse.
2004-05-28 21:06:26 +00:00
Kim F. Storm
b2dae92a19 (mouse-drag-copy-region): New defcustom.
(mouse-set-region, mouse-drag-region-1): Use it.
2004-04-30 21:37:43 +00:00
Stefan Monnier
541a44d22d (mouse-set-point): Use it. 2004-04-14 17:30:17 +00:00
Kim F. Storm
76693d1232 Bind mouse-1 on left-fringe and right-fringe to mouse-set-point so
that hscroll still works now that clicks on fringes generate specific
mouse events.
(mouse-set-point): Note that it now works in fringes and margins
too due to new semantics of posn-point in fringes and margins.
2003-11-23 00:27:27 +00:00
Dave Love
a7df580dc8 (mouse-popup-menubar, mouse-skip-word): Doc fix. 2003-09-01 18:47:29 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
8eb1dc02a1 (mouse-set-font): Avoid misleading error message if user makes no selection. 2002-05-29 16:36:55 +00:00
Richard M. Stallman
2d246c7162 (mouse-drag-region-1): Display region highlight only in the selected window. 2002-04-10 15:04:19 +00:00
Eli Zaretskii
f4b60fe635 (mouse-show-mark): Remove the no-highlight alternative:
all terminals now support highlighting of some kind.
2002-03-05 18:41:53 +00:00
Eli Zaretskii
88f20a3dd8 (mouse-region-delete-keys): Add deletechar. 2002-03-03 16:52:58 +00:00
Eli Zaretskii
7948c2483a (mouse-show-mark): Use display-mouse-p, not display-graphic-p,
to decide whether to move point or use the highlighting.
2002-03-01 11:43:39 +00:00
Richard M. Stallman
6454615cfa (mouse-drag-region-1): Renamed from mouse-drag-region.
(mouse-drag-region): New function.  For a click in the echo area,
show *Messages*.
2002-01-17 02:07:54 +00:00
Richard M. Stallman
4a4fa24d38 (mouse-drag-mode-line-1): When dragging a mode line upward,
shrink the windows above as necessary to get space.
(mouse-drag-move-window-bottom, mouse-drag-window-above): New fns.
2001-12-29 04:21:25 +00:00
Pavel Janík
231c4d1a90 Fix typo. 2001-12-18 17:43:09 +00:00
Pavel Janík
b70c3b0ed2 Fix typo. 2001-12-13 07:56:02 +00:00
Eli Zaretskii
381e32f064 (mouse-set-font): Make it a no-op if multiple fonts
aren't supported.  Print a message to that effect if invoked.
2001-11-28 17:15:33 +00:00
Sam Steingold
b2013aad9b Converted backquote to the new style (in comments). 2001-11-27 18:00:53 +00:00
Richard M. Stallman
02beb9365d (mouse-drag-region): Don't run the up-event
handler if window start changed due to the down-mouse event.
2001-11-14 02:49:26 +00:00
Richard M. Stallman
f134ad18de (mouse-show-mark): Either move point to the mark
or use highlighting, never both.
(mouse-buffer-menu): If WINDOW is a frame, select its selected window.
2001-11-14 02:48:17 +00:00
Richard M. Stallman
324cd97212 (popup-menu): If the user refuses to select
from a menu, don't try to invoke the menu.
2001-11-02 07:14:16 +00:00
Sam Steingold
c71a58a384 (mouse-buffer-menu-mode-groups): added SGML group 2001-10-27 16:32:35 +00:00
Sam Steingold
7b611de008 (mouse-buffer-menu-mode-groups): Added "Version Control" group. 2001-10-24 20:02:16 +00:00
Eli Zaretskii
4b4ea1dce7 (mouse-buffer-menu): If the buffer menu is split by
major modes, don't create panes for modes for which
mouse-buffer-menu-alist returns an empty alist.
2001-08-28 06:35:00 +00:00
Gerd Moellmann
6b48d742c0 (mouse-delete-window): Do nothing if frame has just
one window.
2001-08-09 14:57:30 +00:00
Gerd Moellmann
5925bb84c9 (mouse-delete-other-windows): Doc fix. 2001-05-15 13:16:59 +00:00
Gerd Moellmann
ed784c53bc (mouse-save-then-kill): If the distance from the new
point to the mark is equal to the distance of point from the new
point, move point instead of the mark.
2001-02-16 15:54:48 +00:00
Stefan Monnier
72596e2f24 (popup-menu): Stupid typo. 2000-11-22 16:46:52 +00:00
Eli Zaretskii
06a8c9f89b ([header-line mouse-1]): Bind to mouse-select-window. 2000-10-09 10:23:49 +00:00
Miles Bader
65b61266fd (popup-menu): Balance parens. 2000-10-09 00:27:48 +00:00
Stefan Monnier
0dd672a6b2 (popup-menu): Move the command call outside the loop
so that popup-menu returns whatever the command returns.
2000-10-08 20:16:56 +00:00
Eli Zaretskii
739e92a711 (mouse-drag-mode-line-1): Fix an off-by-one error in
computing growth when dragging the header line.
2000-10-08 06:16:42 +00:00
Gerd Moellmann
ee0e2bddb8 (mouse-drag-header-line): Don't allow window resizing
by dragging a header-line at the top of the frame because that
looks odd.
(mouse-drag-mode-line-1): Use event-* and posn-* functions
instead of treating the event as a list.  Some cleanup.
2000-10-06 11:43:39 +00:00
Dave Love
d32af6dd3d Fix last change. 2000-09-27 08:59:33 +00:00
Dave Love
b52a30d869 (popup-menu): If POSITION is nil, set it using
mouse-position.
2000-09-26 15:34:39 +00:00
Dave Love
179fc9ef03 (mouse-major-mode-menu, mouse-popup-menubar): Run
menu-bar-update-hook.
2000-09-04 21:23:51 +00:00
Eli Zaretskii
5983611033 (mouse-popup-menubar): Supply the prompt string for
minor-mode keymaps, if they don't have one.
2000-09-02 11:19:55 +00:00
Dave Love
25db2767fa (mouse-major-mode-menu): Use local-key-binding.
(mouse-popup-menubar): Add minor mode menus.
(popup-menu): Check for lookup-key returning number.
2000-08-29 11:10:48 +00:00
Dave Love
bcd010a058 (popup-menu): Set last-command-event.
(mouse-major-mode-menu-prefix): Declare.
2000-07-24 17:58:32 +00:00
Eli Zaretskii
7636d2a369 (popup-menu): Run the keymap through indirect-function,
in case it was defined with define-prefix-key.  If the menu is a
list of keymaps, look up the binding of user's choice in each one
of the keymaps.
(mouse-popup-menubar): If the global and local menu-bar keymaps
don't have a prompt string, create one and insert it into the
keymap.  Don't barf if current-local-map returns nil.
2000-07-24 15:19:02 +00:00
Dave Love
de420e8200 (popup-menu): Allow a list of keymaps for menu arg.
(mouse-popup-menubar, mouse-popup-menubar-stuff): New functions.
(global-map): Bind c-down-mouse-3 to mouse-popup-menubar-stuff.
2000-07-19 15:52:02 +00:00
Stefan Monnier
21ad0f7b2f (popup-menu): New function.
(mouse-major-mode-menu): Use it.
2000-07-18 23:43:41 +00:00
Stefan Monnier
a45423d8fa (mouse-major-mode-menu-1): get the submenu with lookup-key. 2000-07-16 17:16:28 +00:00
Stefan Monnier
f45aab653b (mouse-drag-region): Use functionp rather than fboundp. 2000-07-09 18:36:21 +00:00
Eli Zaretskii
d0d57043ae (mouse-show-mark, mouse-save-then-kill): Don't use window-system. 2000-06-28 15:33:59 +00:00
Stefan Monnier
342a1e7b20 Add a version to the obsoletions.
(mouse-show-mark): Don't quote lambda.
2000-06-01 05:04:28 +00:00
Dave Love
8faa97078b (mouse-save-then-kill-delete-region): Don't bind
before-change-function,  after-change-function.
2000-05-31 22:48:20 +00:00
Gerd Moellmann
0e57ab653e (mouse-yank-at-click): Doc fix. 2000-05-15 20:13:54 +00:00
Gerd Moellmann
1853aa6bc9 (mouse-drag-region): Don't run up-event handler
if hscroll has changed.
2000-03-09 20:08:49 +00:00
Dave Love
99d48056fa (mouse-drag-mode-line-1): Remove `growth =' message. 2000-02-23 22:20:44 +00:00
Gerd Moellmann
b0d22e20c3 (mouse-drag-mode-line-1): Extension of former
mouse-drag-mode-line that also drags the header line.
(mouse-drag-mode-line): Call it.
(mouse-drag-header-line): New.
(toplevel): Bind down-mouse-1 on header lines to
mouse-drage-header-line.
1999-09-09 14:54:25 +00:00
Richard M. Stallman
6b8e486e9e (font-menu-add-default): Simplify code. 1999-09-05 19:44:45 +00:00
Dave Love
2fe8522765 Provide `mldrag' for compatibility.
(mldrag-drag-mode-line, mldrag-drag-vertical-line): New aliases,
marked obsolete.
1999-08-16 15:47:41 +00:00
Dave Love
29a3028d04 (x-fixed-font-alist): Add lucidasanstypewriter. 1999-07-28 18:27:35 +00:00
Dave Love
2f9e343bed Copyright update. 1999-07-19 22:17:17 +00:00
Dave Love
b98e5762e6 (mouse-major-mode-menu): Default to menu-bar-edit-menu
for modes which don't define menus.
1999-07-19 21:49:13 +00:00
Karl Heuer
4e363e7e63 (mouse-drag-vertical-line):
If WHICH-SIDE is not `right', then scroll bars are on the left.
1998-12-10 03:26:25 +00:00
Andreas Schwab
ce8c28097d (mouse-drag-region): Fix typo. 1998-11-03 10:25:56 +00:00
Richard M. Stallman
2e3329a537 (mouse-drag-region): Fake up a mouse-motion event
if we did not get one for the final move.
1998-11-01 18:17:40 +00:00
Kenichi Handa
258e329529 (mouse-skip-word): If point is at word constituent
characters, pay attention to word-separating-categories by using
forward-word instead of skip-syntax-forward/backward.
1998-07-30 01:34:38 +00:00
Richard M. Stallman
a926a0fab5 (mouse-delete-window): If the frame has just one window,
bury the current buffer instead.
1998-07-29 05:41:04 +00:00
Richard M. Stallman
25f9b4bf39 (mouse-major-mode-menu): Run activate-menubar-hook here. 1998-05-05 21:47:53 +00:00
Richard M. Stallman
3ca87c7b46 (mouse-buffer-menu-mode-mult): New variable.
(mouse-buffer-menu): Obey mouse-buffer-menu-mode-mult.
Also avoid some consing.
1998-04-20 20:45:25 +00:00
Richard M. Stallman
53016bead4 (mouse-save-then-kill): Get point-before-scroll
from the right buffer.
1998-04-08 07:22:05 +00:00
Richard M. Stallman
1fa01bcdd7 (mouse-drag-region): Bind deactivate-mark
around call to copy-region-as-kill.
(mouse-set-region): Likewise.
(mouse-secondary-save-then-kill): Likewise.
1998-03-16 08:05:58 +00:00
Richard M. Stallman
0320e66f47 (mouse-scroll-subr): Handle if window-end returns nil. 1998-03-14 08:20:37 +00:00
Richard M. Stallman
0d9be91c37 (mouse-buffer-menu-maxlen): Renamed from mouse-menu-buffer-maxlen. 1998-03-12 23:11:57 +00:00
Richard M. Stallman
5d6a85e05f (mouse-drag-vertical-line): Properly determine which
side the scroll bar or vertical line is on.
1998-01-19 23:11:18 +00:00
Karl Heuer
b0ea497faf (mouse-drag-vertical-line): Handle left-side scroll bars. 1997-10-23 06:29:35 +00:00
Richard M. Stallman
3bb846b871 (mouse-undouble-last-event): Fix gross bugs:
use modifiers, not old-modifiers.
1997-07-09 02:47:07 +00:00
Richard M. Stallman
4e2aade124 (mouse-show-mark): Handle switch-frame events in the loop. 1997-07-08 09:47:23 +00:00
Richard M. Stallman
7132500bad (mouse-undouble-last-event): Use reverse, not nreverse. 1997-07-01 04:33:22 +00:00
Richard M. Stallman
bb3aa8352f (mouse-drag-region): For a click (not a drag),
let the up-event run normally.
1997-06-27 04:23:52 +00:00
Richard M. Stallman
397a88f3c9 (mouse-undouble-last-event): Return nil if the event
is not double or triple to start with.
(mouse-show-mark): Handle scroll-bar events here.
1997-05-27 22:52:31 +00:00
Richard M. Stallman
3b558d418c Use defcustom. 1997-05-03 22:19:10 +00:00
Karl Heuer
51a02226c2 (mouse-set-font): Handle fontset. 1997-02-20 05:47:42 +00:00
Richard M. Stallman
284a88a318 (mouse-buffer-menu): Group buffers by major modes if that seems to be useful.
(mouse-buffer-menu-mode-groups): New variable.
(mouse-buffer-menu-alist, mouse-buffer-menu-split): New subroutines
broken out of mouse-buffer-menu.
1997-02-10 00:10:16 +00:00
Richard M. Stallman
f1017d552a (mouse-start-end): Put values in proper order,
in the doublequote case.
1996-12-26 20:48:46 +00:00
Richard M. Stallman
951e042711 (mouse-drag-mode-line): Don't get error
about sole window, if we don't actually try to change the size.
1996-12-07 22:19:50 +00:00
Richard M. Stallman
6a16c4cb00 (mouse-major-mode-menu): Propagate prefix arg
to the command that is run.
1996-12-07 20:32:35 +00:00
Geoff Voelker
b86b9918dd Use w32 instead of ms-windows for window-system symbol 1996-11-19 06:59:17 +00:00
Richard M. Stallman
efc10c970d (mouse-drag-secondary): Make sure to return nil
if we don't make a selection.
1996-09-25 03:27:04 +00:00
Richard M. Stallman
3617aa76fc (mouse-drag-region): Ignore event end-point if it is not a number. 1996-09-23 17:44:50 +00:00
Richard M. Stallman
1917b9694a (mouse-set-region):
Test for ms-windows instead of win32, and use memq.
1996-09-15 02:17:49 +00:00
Richard M. Stallman
e1877477ee (mouse-select-window): Don't call unfocus-frame. 1996-09-03 21:37:35 +00:00
Richard M. Stallman
33d79bad63 (mouse-show-mark): Detect loss of selection
while we are showing it highlighted.
1996-09-01 02:42:04 +00:00
Richard M. Stallman
7aeb7370f3 (mouse-region-delete-keys): New variable.
(mouse-show-mark): If one of those keys is next, delete the region.
1996-08-27 01:03:35 +00:00
Richard M. Stallman
1c9df23f8c (mouse-drag-region): Don't call mouse-set-region-1
if mark is gone or no longer active or if we changed buffers.
1996-08-17 16:56:19 +00:00
Karl Heuer
d3e458b053 (mouse-major-mode-menu-1): No need to copy the top
levels of structure.
1996-07-13 00:55:05 +00:00
Karl Heuer
d5c847bb69 (mouse-drag-region): Cope if stop-point is nil.
(mouse-major-mode-menu-compute-equiv-keys): Deleted.
(mouse-major-mode-menu-1): Copy the top levels of structure,
if we use all of MENUBAR.
Set mouse-major-mode-menu-prefix.
(mouse-major-mode-menu): Total rewrite.
1996-07-11 23:35:37 +00:00
Karl Heuer
639829447f (mouse-major-mode-menu-1): Always return just a keymap;
never (STRING . KEYMAP).
(mouse-major-mode-menu): Discard the `keymap' from the front of
the keymap we get from mouse-major-mode-menu-1.
Construct the menu name string from major-mode.
1996-07-08 00:17:35 +00:00
Miles Bader
98aac09d3a (mouse-show-mark): In transient mark mode, delete mouse-drag-overlay.
(mouse-undouble-last-event): New function.
(mouse-show-mark): Call mouse-undouble-last-event.
1996-07-07 01:59:10 +00:00
Richard M. Stallman
5377087736 (mouse-start-end): Support selecting strings by double
clicking on a character with quote syntax.
1996-06-29 01:02:59 +00:00
Richard M. Stallman
6ce2992945 (mouse-drag-region): Be smart about which end
gets point and which end gets the mark.
1996-06-21 16:15:21 +00:00