From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49466: 28.0.50; C- is undefined Date: Fri, 09 Jul 2021 09:39:14 -0400 Message-ID: References: <877di026c1.fsf@mail.linkov.net> <83tul4d31f.fsf@gnu.org> <83k0lzd85s.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35787"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49466@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 09 15:41:05 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 1m1qka-000997-25 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jul 2021 15:41:04 +0200 Original-Received: from localhost ([::1]:33188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1qkZ-0004JP-4l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jul 2021 09:41:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1qja-0002s5-Mn for bug-gnu-emacs@gnu.org; Fri, 09 Jul 2021 09:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1qja-0007AJ-DT for bug-gnu-emacs@gnu.org; Fri, 09 Jul 2021 09:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1qja-0006RN-AP for bug-gnu-emacs@gnu.org; Fri, 09 Jul 2021 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jul 2021 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49466 X-GNU-PR-Package: emacs Original-Received: via spool by 49466-submit@debbugs.gnu.org id=B49466.162583796624612 (code B ref 49466); Fri, 09 Jul 2021 13:40:02 +0000 Original-Received: (at 49466) by debbugs.gnu.org; 9 Jul 2021 13:39:26 +0000 Original-Received: from localhost ([127.0.0.1]:58544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1qj0-0006Ou-L2 for submit@debbugs.gnu.org; Fri, 09 Jul 2021 09:39:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1qiv-0006Oc-UA for 49466@debbugs.gnu.org; Fri, 09 Jul 2021 09:39:24 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 555EA440C3B; Fri, 9 Jul 2021 09:39:16 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 23C5044032F; Fri, 9 Jul 2021 09:39:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1625837955; bh=HBy9n1Xw5z2QcSNvBM1T16d3n6T5M3yqPDBaeIvoQIE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gSyTv/ik9S4C24oeSVoaerbDDTKBkznR9wUFJF25PxvSfb6D0Xym2tqwDSDOwCFo8 +TA/I7eCy60QxDm65UnXTc8We7Skmjc6TNCScszcTjED32lvtJ8msaPUghIiE+mHlk ZcYiREVhbBd+6OpMtGb2w7n1CiQUoKKhI02MRaq2EHVRSUMEf2eyWmdu5onKjNF6aF QHYtnXVBByi3clMZw503PZigYsG5u5MTvDWrsbW+qbOGRXKQ6odG0Q5dHbMdeP9TR6 ZJgiTY9EWM+AKRafIh2Rs8tIlmegtmr9KAYlqK3PtuoPf7ijGZjxhOdhjjPEsQVb2Y /6bp10NgtjLQg== Original-Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E8B49120590; Fri, 9 Jul 2021 09:39:14 -0400 (EDT) In-Reply-To: <83k0lzd85s.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Jul 2021 14:43:43 +0300") 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:209724 Archived-At: > Stefan, is there some way to make this auto-loaded? That is, whenever > the user presses C-mouse-2, automatically load facemenu and show the > drop-down menu in facemenu-menu? I tried autoloading the > facemenu-menu keymap like ispell and pcvs do, but that doesn't seem to > work, in the sense that pressing C-mouse-2 complains that the binding > is not a command. The patch below works for me, should I push it? Stefan "who hasn't followed this discussion" diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 9d75302a97..8631be917a 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el @@ -244,6 +244,8 @@ facemenu-menu (define-key map [fc] (cons "Face" 'facemenu-face-menu))) (defalias 'facemenu-menu facemenu-menu) +;;;###autoload (autoload 'facemenu-menu "facemenu" nil nil 'keymap) +;;;###autoload (define-key global-map [C-down-mouse-2] 'facemenu-menu) (easy-menu-add-item