Subject: bug#52973: Adding a few context-menu-mode commands

From: Philip Kaludercic <[email-masked]>
Date: Sat, 08 Jan 2022 19:01:46 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Juri Linkov <[email-masked]>
>> Cc: Philip Kaludercic <[email-masked]>,  [email-masked],
>>   [email-masked]
>> Date: Sat, 08 Jan 2022 20:30:06 +0200
>> 
>> None of the proposed functions is specific to a mode.
>
> The way I see it, the functions in man.el are for Man-mode, and those
> in hi-lock.el are for hi-lock-mode.

No, the Man functions can be used anywhere you want to read a man page.
It checks if the user clicked on something like "emacs(1)", then inserts
a entry into the context menu to open the man page at point.

The hi-lock functions can be used to highlight a symbol, just like with
`M-s h .'.  Requiring hi-lock-mode to be enabled beforehand would be
counterproductive.

>> When the global value of context-menu-functions
>> contains one of the proposed functions, right-clicking anywhere
>> will autoload every package where such context functions are defined.
>
> This is over-engineered, IMO.  There should be no need for such
> complexity.

What would you suggest to simplify this?

-- 
	Philip Kaludercic