Re: [patch] Add support for hooking prefix commands

Eli Zaretskii
2011-03-09T14:01:20Z

> Date: Wed, 09 Mar 2011 15:54:41 +0200
> From: Sorin Otescu <sorinu@gmail.com>
>
> I see some problems with that approach, even if it works. What happens
> if two or more commands
> have the same second word ? Which one would be used ?

I see no problem. For hooking "target remote" you'd say

define target hook-remote

and for hooking "foo remote" you'd say

define foo hook-remote

This is what the manual says.