From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Wed, 25 Aug 2021 20:45:20 +0300 Organization: LINKOV.NET Message-ID: <87v93ts9jd.fsf@mail.linkov.net> References: <87wnociu41.fsf@mail.linkov.net> <20210824.191259.1858282353329289005.tkk@misasa.okayama-u.ac.jp> <877dgalpsr.fsf@mail.linkov.net> <20210825.084329.2103284747365062473.tkk@misasa.okayama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10781"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 50067@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 25 19:49:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIx1R-0002eK-Dh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 19:49:09 +0200 Original-Received: from localhost ([::1]:49826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIx1Q-0003No-9s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 13:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIx1K-0003NR-8R for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 13:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIx1J-00080X-RW for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 13:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIx1J-0002Hs-Kn for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 13:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 17:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 50067-submit@debbugs.gnu.org id=B50067.16299137328777 (code B ref 50067); Wed, 25 Aug 2021 17:49:01 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 25 Aug 2021 17:48:52 +0000 Original-Received: from localhost ([127.0.0.1]:47562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIx1A-0002HU-L5 for submit@debbugs.gnu.org; Wed, 25 Aug 2021 13:48:52 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIx16-0002HE-OK for 50067@debbugs.gnu.org; Wed, 25 Aug 2021 13:48:51 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id A59341BF208; Wed, 25 Aug 2021 17:48:39 +0000 (UTC) In-Reply-To: <20210825.084329.2103284747365062473.tkk@misasa.okayama-u.ac.jp> (Tak Kunihiro's message of "Wed, 25 Aug 2021 08:43:29 +0900 (JST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212666 Archived-At: > * 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?