>> * flyspell menu >> >> It is handy to show 'flyspell-correct-word when click on typo word. >> However, menu is embedded inside of pre existing >> 'flyspell-correct-word and it is hard to collect menu. Since >> popup-menu interface can accept both menu and function with `e', it's >> good to utilize 'flyspell-correct-word. >> >> How about something like below to interrupt evaluation of >> context-menu-functions in the middle when one of >> context-menu-functions returns symbol instead of menu? > > Thanks, adapting flyspell to use the context menu is our next priority. > But it seems interrupting evaluation is too hackish solution, and it still > uses x-popup-menu. Would it be possible for flyspell to put its context > function to the end of context-menu-functions, and then replace all > previously added menus with own menu that contains word corrections? Here is the first step that adds support for overlay-local context-menu, and removes the recently added 'flyspell-use-mouse-3-for-menu'. But 'flyspell-context-menu' still returns 'flyspell-correct-word'. I invite you or anyone else to refactor 'flyspell-correct-word' and related functions to return a keymap menu where every menu item is bound to a function that calls flyspell-do-correct with an argument that is a correct word.