[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11698: [PATCH] Enable mouse-face on the mode-line area of which-func
From: |
Masatake YAMATO |
Subject: |
bug#11698: [PATCH] Enable mouse-face on the mode-line area of which-func |
Date: |
Thu, 14 Jun 2012 12:01:21 +0900 (JST) |
Glenn Morris wrote:
> Masatake YAMATO wrote:
>
>> ! mouse-face highlight
>
> Is this really desirable? Many other parts of the mode line can be
> clicked on, but do not have a mouse-face. Isn't the change in cursor
> sufficient?
It seems that mode-line-highlight is used for mouse-face.
How do you think to use it in which-func for keeping consistency
between other area on the mode line?
I think sometimes cursor is not sufficient. It doesn't tells just the
pixel under the cursor is something clickable. The feed-back with
mouse-face can tell the area under the cursor is something
clickable. Sometimes it is obvious that the area even without mouse
face. However, it may be a bit difficult to recognize one-character
area like area for buffer-coding system.
=== modified file 'lisp/progmodes/which-func.el'
*** lisp/progmodes/which-func.el 2012-06-03 11:10:44 +0000
--- lisp/progmodes/which-func.el 2012-06-14 02:55:51 +0000
***************
*** 144,150 ****
(:propertize which-func-current
local-map ,which-func-keymap
face which-func
! ;;mouse-face highlight ; currently not evaluated :-(
help-echo "mouse-1: go to beginning\n\
mouse-2: toggle rest visibility\n\
mouse-3: go to end")
--- 144,150 ----
(:propertize which-func-current
local-map ,which-func-keymap
face which-func
! mouse-face mode-line-highlight
help-echo "mouse-1: go to beginning\n\
mouse-2: toggle rest visibility\n\
mouse-3: go to end")