emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mode-line under vc


From: Nick Roberts
Subject: Re: mode-line under vc
Date: Tue, 17 Jul 2007 16:11:04 +1200

>  > 2) Do we really need to explain that "CVS" in the mode-line means
>  >   "under the CVS version control system" in the help-echo?  It's kind of
>  >   long and seems a bit repetitive, unlike explaining the difference between
>  >   ":" and "-" which _is_ obscure.

> The reason I added it is that it can happen that people are not
> familiar with some of the (now many) version control systems... Inside
> a company different projects can use different version control
> systems. It would be nice if we had the "pretty" name available: 
> SVN is actually Subversion
> HG is Mercurial
> (bzr is Bazaar?)

If the user has previously checked these files out, he is likely to know about
the version control system in question.  If he doesn't know what SVN stands
for, then Subversion may not mean much either.  I think that tooltips should
just provide hints, not documentation.  If absolutely necessary the user can
Google for more information.

 >   > 3) Its not clear what VC is in "mouse-1: VC Menu".  Replacing it with
 >   >  "mouse-1: version control" would be self-explanatory and help
 >   >  compensate for the proposed change in 2).
 > 
 > IMO the "menu" should appear there, to make it very obvious what you
 > get, if you use mouse-1

When the mouse is over the mode-name clicking mouse-1 pops up a menu, yet the
tooltip just says "mouse-1: major mode".

In any case this binding (VC Menu) doesn't work if the window isn't already
selected. You need to do something like mouse-major-mode-menu:

(defun mouse-major-mode-menu (event &optional prefix)
  "Pop up a mode-specific menu of mouse commands.
Default to the Edit menu if the major mode doesn't define a menu."
  ;; Switch to the window clicked on, because otherwise
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ;; the mode's commands may not make sense.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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