From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Wed, 1 Sep 2021 22:03:13 +0300 Message-ID: <4e2b37da-eab1-5d23-80d3-629eab6092f9@yandex.ru> References: <83sfz639lh.fsf@gnu.org> <83eeanyrm5.fsf@gnu.org> <4BC1074D-DE75-4303-8385-B70BAACFCDA0@acm.org> <83czq7youc.fsf@gnu.org> <32ef6b91-107c-d7e5-b103-0ff062bf8ebd@yandex.ru> <83y28twahy.fsf@gnu.org> <7af845e0-1f19-61fc-65e0-b23fac3927aa@yandex.ru> <83v93wx5ny.fsf@gnu.org> <83r1ekwfrd.fsf@gnu.org> <871r6ki6aw.fsf@mail.linkov.net> <838s0otl6b.fsf@gnu.org> <0273902a-1f93-c643-da26-ab314d6d2db4@yandex.ru> <8335qvs8re.fsf@gnu.org> <835yvnkuwb.fsf@gnu.org> <87wno26qlo.fsf@mail.linkov.net> <87fsupr1rv.fsf@mail.linkov.net> <3656c47f-49e2-1a90-ce2f-12b8899742aa@yandex.ru> <87czps95tt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: alan@idiocy.org, mattiase@acm.org, homeros.misasa@gmail.com, tkk@misasa.okayama-u.ac.jp, larsi@gnus.org, 50067@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 01 21:04:19 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 1mLVX1-0007JS-Fa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 21:04:19 +0200 Original-Received: from localhost ([::1]:34232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLVWz-0007RO-HX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 15:04:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLVWk-0007R2-K9 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 15:04:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLVWk-0006Uh-1q for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 15:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLVWj-0008A9-NV for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 15:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Sep 2021 19:04: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.163052300431330 (code B ref 50067); Wed, 01 Sep 2021 19:04:01 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 1 Sep 2021 19:03:24 +0000 Original-Received: from localhost ([127.0.0.1]:39013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLVW8-00089G-DB for submit@debbugs.gnu.org; Wed, 01 Sep 2021 15:03:24 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:39852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLVW6-00088v-Q4 for 50067@debbugs.gnu.org; Wed, 01 Sep 2021 15:03:23 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id z4so1136917wrr.6 for <50067@debbugs.gnu.org>; Wed, 01 Sep 2021 12:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=icV6W6ywvnLhIFEfjWLkBaokg58Klhg84jtdbNtIeNg=; b=af8Bw381lJ8wOLkMyP/pVMQn1SFA1N5aM88yWt+1AbE6vEIA8BZhFW2P/p1AibWnSy NjOaRUIS3zxPfoV5KXjD6t1dzvlAeNRSIJhuI6G2E4Vksc+OrC7JtwGpGHvKn4u9u21J V19is4zT9B+5SrDQkFqqSDsdPirmknd5kBziwn048ltMVEgYV6i4jLO/L3JFLvA6s6kD 7bYAnb0SMpyyve1v/Smb4mAerd3va5HpDpQR4Ppt1lVrZ4Z4pak2ZLoljhiBNr0JnYUv p/Y/9khON6nN6bOfHjOTvaEQP3s6RxXH6zqB3W+kL9qH1WDlQ2pnc0VUW2zDDMC9bL7/ u1vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=icV6W6ywvnLhIFEfjWLkBaokg58Klhg84jtdbNtIeNg=; b=H46GII3kZ6n5IbkEV1KGenbUDcRUYPXU0QD3PJ1KikqzcczEOipV28bb6P0UQfmM55 /LZk1aVL0iuKihFH+FV3nhwtXQIGs+eYnXZwzkRYWOgr73+5qK8IF6qtslf7Yqi8PSXZ 0aoxSqhCPXdYrv3udM9HTT2WnqFszb3T2RV3rz4O/pMg97Zveu2fIOxA5Y9mhWsYw+AD HPoQRK2gE181+mmXba/uqTKbY9zNcqSGXP3hcvrpzeuyDYx+IKtON6WtV2mZC4oMjJjc SgebpHHtm9C/PH9RNEMezX00aZq6zc5M7JWm1/gUm1Hi0uJdEDtNNPkXVYkNeZif++Hx BKyw== X-Gm-Message-State: AOAM530kJoI1y9MGivguKwhTajW0b4LH5hq0bbkLq8UW/lWqpM9ctyMx jKjxq+IWgCLto+vLl7Fuk9WjGSO6r+o= X-Google-Smtp-Source: ABdhPJxyqkq+opIijj1iIkKCt/OZ5p7o21JJNn6CiyZwh5xjxdJRiENpMOpF0mBSQUocJR10MugLVg== X-Received: by 2002:adf:f4ca:: with SMTP id h10mr960350wrp.351.1630522996821; Wed, 01 Sep 2021 12:03:16 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id x18sm396869wmj.36.2021.09.01.12.03.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Sep 2021 12:03:16 -0700 (PDT) In-Reply-To: <87czps95tt.fsf@mail.linkov.net> Content-Language: en-US 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:213219 Archived-At: On 01.09.2021 10:08, Juri Linkov wrote: > BTW, I'm testing compilation errors/warnings on xref context menu, > and it reposts this warning: > > prog-mode.el:60:12: Warning: the function `xref-backend-identifier-at-point' > is not known to be defined. > > on this code: > > (defun prog-context-menu (menu) > (require 'xref) > (define-key-after menu [prog-separator] menu-bar-separator > 'mark-whole-buffer) > (when (save-excursion > (mouse-set-point last-input-event) > (xref-backend-identifier-at-point > (xref-find-backend))) > (define-key-after menu [xref-find-def] > '(menu-item "Find Definition" xref-find-definitions-at-mouse > :help "Find definition of identifier") > 'prog-separator)) > > Maybe `xref-backend-identifier-at-point' should be autoloaded? I don't know. What are the rules? There is no risk to call it before xref.el is loaded because xref-find-backend itself is autoloaded. But the lack of autoloading can cause byte-compilation warnings. They can be dealt with by other means too, though.