emacs-devel
[Top][All Lists]
Advanced

[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: Masatake YAMATO
Subject: Re: add a tooltip and a mouse binding to the VC mode-line entry
Date: Fri, 06 Jul 2007 14:06:07 +0900 (JST)

> 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.

Masatake




reply via email to

[Prev in Thread] Current Thread [Next in Thread]