diff options
| author | Richard M. Stallman | 1995-10-03 09:14:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-03 09:14:54 +0000 |
| commit | e05169e2ea8280a89a6833c8868a8be081954e6a (patch) | |
| tree | 5ba1cc2d0389fb1a0f95896485e25d8214a7db09 /src | |
| parent | 1c78509be74ec16a9c04cb64e466af5028664cf9 (diff) | |
| download | emacs-e05169e2ea8280a89a6833c8868a8be081954e6a.tar.gz emacs-e05169e2ea8280a89a6833c8868a8be081954e6a.zip | |
(Qmouse_leave_buffer_hook): New variable.
(syms_of_frame_1): Initialize it.
(Fhandle_switch_frame): Run the hooks.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 304fe8a879a..857f0eb1332 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -81,6 +81,8 @@ Lisp_Object Qbuffer_predicate; | |||
| 81 | 81 | ||
| 82 | Lisp_Object Vterminal_frame; | 82 | Lisp_Object Vterminal_frame; |
| 83 | 83 | ||
| 84 | Lisp_Object Qmouse_leave_buffer_hook; | ||
| 85 | |||
| 84 | static void | 86 | static void |
| 85 | syms_of_frame_1 () | 87 | syms_of_frame_1 () |
| 86 | { | 88 | { |
| @@ -113,6 +115,9 @@ syms_of_frame_1 () | |||
| 113 | staticpro (&Qvisible); | 115 | staticpro (&Qvisible); |
| 114 | Qbuffer_predicate = intern ("buffer-predicate"); | 116 | Qbuffer_predicate = intern ("buffer-predicate"); |
| 115 | staticpro (&Qbuffer_predicate); | 117 | staticpro (&Qbuffer_predicate); |
| 118 | |||
| 119 | Qmouse_leave_buffer_hook = intern ("mouse-leave-buffer-hook"); | ||
| 120 | staticpro (&Qmouse_leave_buffer_hook); | ||
| 116 | } | 121 | } |
| 117 | 122 | ||
| 118 | static void | 123 | static void |
| @@ -602,6 +607,7 @@ to that frame.") | |||
| 602 | { | 607 | { |
| 603 | /* Preserve prefix arg that the command loop just cleared. */ | 608 | /* Preserve prefix arg that the command loop just cleared. */ |
| 604 | current_kboard->Vprefix_arg = Vcurrent_prefix_arg; | 609 | current_kboard->Vprefix_arg = Vcurrent_prefix_arg; |
| 610 | call1 (Vrun_hooks, Qmouse_leave_buffer_hook); | ||
| 605 | return do_switch_frame (frame, no_enter, 0); | 611 | return do_switch_frame (frame, no_enter, 0); |
| 606 | } | 612 | } |
| 607 | 613 | ||