[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add a tooltip and a mouse binding to the VC mode-line entry
From: |
Dan Nicolaescu |
Subject: |
Re: add a tooltip and a mouse binding to the VC mode-line entry |
Date: |
Mon, 09 Jul 2007 10:48:14 -0700 |
Masatake YAMATO <address@hidden> writes:
> > Here's a little patch that adds a tooltip to the VC entry on the
> > mode line and it also makes mouse-1 on that entry to pop up the VC
> > operations menu.
> >
> > It would be good if people would try it and say if it useful based on
> > _actual usage experience_, not just speculation. After that we can
> > change the text for the tooltip, add more mouse bindings or even
> > decide not to install the whole thing.
>
> Looks good. Now I can hide the menu bar:-P.
>
> @@ -291,7 +303,10 @@
> 'mode-line-buffer-identification
> (propertize " " 'help-echo help-echo)
> 'mode-line-position
> - '(vc-mode vc-mode)
> + (list
> + `(:propertize ("" vc-mode) help-echo "Version Control
mouse-1: VC menu"
> + mouse-face mode-line-highlight
> + local-map ,mode-line-vc-mode-keymap))
> (propertize " " 'help-echo help-echo)
> 'mode-line-modes
> `(which-func-mode ("" which-func-format ,dashes))
>
> I think this should be done in `vc-mode-line'.
> Look at `vc-default-mode-line-string'.
> Telling the meaning of `:' or `-' in the tooltip string may help users.
Can you please OK a change along these lines? All the comments on
adding this feature were positive.
Re: add a tooltip and a mouse binding to the VC mode-line entry, Masatake YAMATO, 2007/07/04