]> git.eshelyaron.com Git - emacs.git/commitdiff
(Vmouse_highlight): New variable.
authorKim F. Storm <storm@cua.dk>
Sat, 16 Feb 2002 23:53:22 +0000 (23:53 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 16 Feb 2002 23:53:22 +0000 (23:53 +0000)
(syms_of_frame): DEFVAR_LISP it.

src/frame.c

index 93c6838851370236ccfef1adb14dd7987dbcf76a..d6789065311fd9e14621c22247b70825372d9413 100644 (file)
@@ -79,6 +79,7 @@ Lisp_Object Qtty_color_mode;
 Lisp_Object Vterminal_frame;
 Lisp_Object Vdefault_frame_alist;
 Lisp_Object Vmouse_position_function;
+Lisp_Object Vmouse_highlight;
 \f
 static void
 set_menu_bar_lines_1 (window, n)
@@ -2535,6 +2536,14 @@ This abnormal hook exists for the benefit of packages like `xt-mouse.el'
 which need to do mouse handling at the Lisp level.  */);
   Vmouse_position_function = Qnil;
 
+  DEFVAR_LISP ("mouse-highlight", &Vmouse_highlight,
+              doc: /* If non-nil, clickable text is highlighted when mouse is over it.  
+If the value is an integer, highlighting is only shown after moving the
+mouse, while keyboard input turns off the highlight even when the mouse
+is over the clickable text.  However, the mouse shape still indicates
+when the mouse is over clickable text.  */);
+  Vmouse_highlight = make_number (1);
+
   DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame,
                 doc: /* Minibufferless frames use this frame's minibuffer.