From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Naoya Yamashita Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Sat, 28 Aug 2021 18:08:39 +0900 Message-ID: References: <87pmufb3u0.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004610e605ca9af1eb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50067@debbugs.gnu.org, juri@linkov.net To: tkk@misasa.okayama-u.ac.jp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 28 11:09: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 1mJuKs-0001c1-PQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Aug 2021 11:09:10 +0200 Original-Received: from localhost ([::1]:51414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJuKr-0000y9-2U for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Aug 2021 05:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJuKk-0000xj-9K for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 05:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJuKk-0001Bs-26 for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 05:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJuKj-0000Q9-Rx for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 05:09:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87pmufb3u0.fsf@mail.linkov.net> Resent-From: Naoya Yamashita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 09:09: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.16301417151581 (code B ref 50067); Sat, 28 Aug 2021 09:09:01 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 28 Aug 2021 09:08:35 +0000 Original-Received: from localhost ([127.0.0.1]:53381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJuKI-0000PR-UV for submit@debbugs.gnu.org; Sat, 28 Aug 2021 05:08:35 -0400 Original-Received: from mail-pg1-f182.google.com ([209.85.215.182]:36418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJuKF-0000PC-9R for 50067@debbugs.gnu.org; Sat, 28 Aug 2021 05:08:33 -0400 Original-Received: by mail-pg1-f182.google.com with SMTP id t1so8307915pgv.3 for <50067@debbugs.gnu.org>; Sat, 28 Aug 2021 02:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=QWpnY35pZWL4qboAh0XN1Crpwawe1IZRHUob4ypBcWQ=; b=VN/YAQZ6RE5p2pq608EC4VsWvaq+vlFzzRy2WqiED948hWHktvzUxm0pIzspuw26lK pp7nCqlqYFA1ZLvwRmP4pycOOVGLagMSZCSnqMvI0mXVtCK0K6kgD23+iZsy0hDlyP7Z +LkUfA4MQy9/X4zx1EiERfB03gjKguVlbx2RwUXMy8z6pk+WcMzWPJIkmSpVUpMHQsgf NHWNSMIFm58vCpv2baHlNBf4FviCpS97bPL0e5KASJEKiOlxWYt3Wm5K6doLEhNtbIKw uikMIX56XlNP2n77j7NhSd8LxbmLB8pECzbzetdb9M9KshdwUZ3+qpHdMexvyPsSisxu ypYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=QWpnY35pZWL4qboAh0XN1Crpwawe1IZRHUob4ypBcWQ=; b=qXU89Z6zyn8MZtCoMRRS33HT68gMUzuth/ETIJEFzTqi5wf0g0cFLrJFvY8oJq5ZLs e+eW4i8F3Yg8x72V5iZKKygzgDk2lcm12TEubVB7UxE7E0k8apeXaudEX5QVqg5H7BvB 5/52x5BdnBXqmxKRzXHL3uiWpD4Oh6L3LVynHjw7CdDVkhfkgMhlB58rsNmZi84cdOxI uZtPNPbBQKks9FSYtvE0O5P87vn7rjUmh6I1hlXyMNkogPn4Hms6PAAdpPHjEiSGKGCt rul+G5SoqJGI9Kg5gZH9kyd35z1dNcuBW/0vdARX4AIoc3XzgN7q+wF/PDY/ueAzKr40 rROw== X-Gm-Message-State: AOAM531YQQ1Ue1hgQl/yVw4JQLWrcZMXNicf4R/w1eLuM3V5FqeC0k1G wdooGOwiDOdhm5HR4GmcZXDsM+olcLgkVk84+Sc= X-Google-Smtp-Source: ABdhPJzAI4+Er85jHlH+A/6nlqlADrEiN+MYsRCJZXUq++4a2mrwngLkQL9tHcj/C3f0wJhpk3LczdDfOzqy6AnN7Qs= X-Received: by 2002:a62:1593:0:b0:3f1:d6c7:9cca with SMTP id 141-20020a621593000000b003f1d6c79ccamr13169304pfv.39.1630141705227; Sat, 28 Aug 2021 02:08:25 -0700 (PDT) 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:212860 Archived-At: --0000000000004610e605ca9af1eb Content-Type: text/plain; charset="UTF-8" Hi. I'm one of the users of Emacs-jp. Tak introduced us to this thread and it got me interested, I'm sending this Email. This mail thread is huge and I haven't read all of it, so I'm sorry if I misread the context. I've created a context menu for ispell (referencing `context-menu-ffap`). You may find some inspiration from this. (defun context-menu-ispell (menu) "Ispell at point menu." (when t ;; (ffap-guess-file-name-at-point) (define-key menu [ispell-separator] menu-bar-separator) (define-key menu [ispell-at-mouse] '(menu-item "Check spelling of word" ispell-word :help "Check spelling of word under or before the cursor."))) menu) Regards, Naoya. --0000000000004610e605ca9af1eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi.=C2=A0 I'm one of the users of Emacs-jp.=C2=A0 Tak = introduced us to this
thread and it got me interested, I'm sending t= his Email.=C2=A0 This
mail thread is huge and I haven't read all of = it, so I'm sorry if
I misread the context.

I've created a= context menu for ispell (referencing `context-menu-ffap`).
You may find= some inspiration from this.

=C2=A0 =C2=A0 (defun context-menu-ispel= l (menu)
=C2=A0 =C2=A0 =C2=A0 "Ispell at point menu."
=C2= =A0 =C2=A0 =C2=A0 (when t ;; (ffap-guess-file-name-at-point)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 (define-key menu [ispell-separator] menu-bar-separator)=C2=A0 =C2=A0 =C2=A0 =C2=A0 (define-key menu [ispell-at-mouse]
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(menu-item "Check spelling of word&qu= ot; ispell-word
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 :help "Check spelling of word under or before the= cursor.")))
=C2=A0 =C2=A0 =C2=A0 menu)

Regards,=
Naoya.

--0000000000004610e605ca9af1eb--