[PATCH] Improve default mouse menu for mode from modeline

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Improve default mouse menu for mode from modeline

Pierre Téchoueyres-2
Hello emacs's developpers,

I would submit an enhacement for when you use the mouse to display the
menu for a mode (major or minor) from the modeline.


For now, if the mode doesn't define a custom mouse menu, the menu title
simply display the mode indicator. But sometimes this indicator isn't
really obvious.

The attached patch try to improve this by appending the full mode name
after the indicator.

For example the Smartparens minor mode has 'SP' as indicator. So his
menu is look like:
---------------------
| SP
---------------------
| Turn off minor mode
| Help for minor mode
----------------------

Whit the attached patch the menu will look like:

------------------------
| SP - Smartparens Mode
------------------------
| Turn off minor mode
| Help for minor mode
------------------------

Hope this could help.

Pierre.


0001-minor-mode-menu-from-indicator-now-display-full-mino.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Improve default mouse menu for mode from modeline

Pierre Téchoueyres-2
Hello,
My proposal doesn't seem to have received any interest.
Should I submit a bug (as an enhancement request) report for this
instead ?

[hidden email] (Pierre Téchoueyres) writes:

> Hello emacs's developpers,
>
> I would submit an enhacement for when you use the mouse to display the
> menu for a mode (major or minor) from the modeline.
>
>
> For now, if the mode doesn't define a custom mouse menu, the menu title
> simply display the mode indicator. But sometimes this indicator isn't
> really obvious.
>
> The attached patch try to improve this by appending the full mode name
> after the indicator.
>
> For example the Smartparens minor mode has 'SP' as indicator. So his
> menu is look like:
> ---------------------
> | SP
> ---------------------
> | Turn off minor mode
> | Help for minor mode
> ----------------------
>
> Whit the attached patch the menu will look like:
>
> ------------------------
> | SP - Smartparens Mode
> ------------------------
> | Turn off minor mode
> | Help for minor mode
> ------------------------
>
> Hope this could help.
>
> Pierre.

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Improve default mouse menu for mode from modeline

Eli Zaretskii
> From: [hidden email] (Pierre Téchoueyres)
> Date: Sat, 27 Oct 2018 12:47:14 +0200
>
> My proposal doesn't seem to have received any interest.
> Should I submit a bug (as an enhancement request) report for this
> instead ?

Yes, submitting an enhancement request is always better.

Thanks.

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Improve default mouse menu for mode from modeline

Stefan Monnier
In reply to this post by Pierre Téchoueyres-2
> My proposal doesn't seem to have received any interest.

FWIW, I think it's a good idea.


        Stefan


Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Improve default mouse menu for mode from modeline

Pierre Téchoueyres-2
Hello Stefan,
Thanks for your support. I opened the bug #33188. Hope it will be
merged in some days.


Stefan Monnier <[hidden email]> writes:

>> My proposal doesn't seem to have received any interest.
>
> FWIW, I think it's a good idea.
>
>
>         Stefan